Skip to content

Commit e00879e

Browse files
committed
Add assembly test results
1 parent bf12438 commit e00879e

File tree

11 files changed

+292
-0
lines changed

11 files changed

+292
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.section __TEXT,__text,regular,pure_instructions
2+
.build_version macos, 11, 0
3+
.globl _handle
4+
.p2align 2
5+
_handle:
6+
.cfi_startproc
7+
b _objc_msgSend
8+
.cfi_endproc
9+
10+
.subsections_via_symbols
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.section __TEXT,__text,regular,pure_instructions
2+
.build_version iossimulator, 14, 0
3+
.globl _handle
4+
.p2align 2
5+
_handle:
6+
.cfi_startproc
7+
b _objc_msgSend
8+
.cfi_endproc
9+
10+
; Stripped __LLVM line
11+
; Stripped __LLVM line
12+
; Stripped __LLVM line
13+
; Stripped __LLVM line
14+
15+
; Stripped __LLVM line
16+
; Stripped __LLVM line
17+
; Stripped __LLVM line
18+
; Stripped __LLVM line
19+
20+
.subsections_via_symbols
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.section __TEXT,__text,regular,pure_instructions
2+
.ios_version_min 7, 0
3+
.globl _handle
4+
.p2align 2
5+
_handle:
6+
.cfi_startproc
7+
b _objc_msgSend
8+
.cfi_endproc
9+
10+
; Stripped __LLVM line
11+
; Stripped __LLVM line
12+
; Stripped __LLVM line
13+
; Stripped __LLVM line
14+
15+
; Stripped __LLVM line
16+
; Stripped __LLVM line
17+
; Stripped __LLVM line
18+
; Stripped __LLVM line
19+
20+
.subsections_via_symbols
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.section __TEXT,__text,regular,pure_instructions
2+
.ios_version_min 7, 0
3+
.syntax unified
4+
.globl _handle
5+
.p2align 2
6+
.code 32
7+
_handle:
8+
b _objc_msgSend
9+
10+
.subsections_via_symbols
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.section __TEXT,__text,regular,pure_instructions
2+
.syntax unified
3+
.globl _handle
4+
.p2align 2
5+
.code 32
6+
_handle:
7+
push {r7, lr}
8+
mov r7, sp
9+
bl _objc_msgSend
10+
pop {r7, pc}
11+
12+
.subsections_via_symbols
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.section __TEXT,__text,regular,pure_instructions
2+
.ios_version_min 7, 0
3+
.globl _handle
4+
.p2align 4, 0x90
5+
_handle:
6+
.cfi_startproc
7+
pushl %ebp
8+
.cfi_def_cfa_offset 8
9+
.cfi_offset %ebp, -8
10+
movl %esp, %ebp
11+
.cfi_def_cfa_register %ebp
12+
popl %ebp
13+
jmp _objc_msgSend
14+
.cfi_endproc
15+
16+
.subsections_via_symbols
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.section __TEXT,__text,regular,pure_instructions
2+
.macosx_version_min 10, 7
3+
.globl _handle
4+
.p2align 4, 0x90
5+
_handle:
6+
.cfi_startproc
7+
pushl %ebp
8+
.cfi_def_cfa_offset 8
9+
.cfi_offset %ebp, -8
10+
movl %esp, %ebp
11+
.cfi_def_cfa_register %ebp
12+
popl %ebp
13+
jmp _objc_msgSend
14+
.cfi_endproc
15+
16+
.subsections_via_symbols
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
.text
2+
.file "test_msg_send_zero_cost.840fa9aa-cgu.0"
3+
.section .text.handle,"ax",@progbits
4+
.globl handle
5+
.p2align 4, 0x90
6+
.type handle,@function
7+
handle:
8+
.cfi_startproc
9+
pushl %ebx
10+
.cfi_def_cfa_offset 8
11+
pushl %edi
12+
.cfi_def_cfa_offset 12
13+
pushl %esi
14+
.cfi_def_cfa_offset 16
15+
.cfi_offset %esi, -16
16+
.cfi_offset %edi, -12
17+
.cfi_offset %ebx, -8
18+
movl 20(%esp), %edi
19+
movl 16(%esp), %esi
20+
calll .L0$pb
21+
.cfi_adjust_cfa_offset 4
22+
.L0$pb:
23+
popl %ebx
24+
.cfi_adjust_cfa_offset -4
25+
.Ltmp0:
26+
addl $_GLOBAL_OFFSET_TABLE_+(.Ltmp0-.L0$pb), %ebx
27+
subl $8, %esp
28+
.cfi_adjust_cfa_offset 8
29+
pushl %edi
30+
.cfi_adjust_cfa_offset 4
31+
pushl %esi
32+
.cfi_adjust_cfa_offset 4
33+
calll objc_msg_lookup@PLT
34+
addl $16, %esp
35+
.cfi_adjust_cfa_offset -16
36+
testl %eax, %eax
37+
je .LBB0_1
38+
subl $8, %esp
39+
.cfi_adjust_cfa_offset 8
40+
pushl %edi
41+
.cfi_adjust_cfa_offset 4
42+
pushl %esi
43+
.cfi_adjust_cfa_offset 4
44+
calll *%eax
45+
addl $16, %esp
46+
.cfi_adjust_cfa_offset -16
47+
popl %esi
48+
.cfi_def_cfa_offset 12
49+
popl %edi
50+
.cfi_def_cfa_offset 8
51+
popl %ebx
52+
.cfi_def_cfa_offset 4
53+
retl
54+
.LBB0_1:
55+
.cfi_def_cfa_offset 16
56+
subl $4, %esp
57+
.cfi_adjust_cfa_offset 4
58+
leal .L__unnamed_1@GOTOFF(%ebx), %eax
59+
leal .L__unnamed_2@GOTOFF(%ebx), %ecx
60+
pushl %eax
61+
.cfi_adjust_cfa_offset 4
62+
pushl $8
63+
.cfi_adjust_cfa_offset 4
64+
pushl %ecx
65+
.cfi_adjust_cfa_offset 4
66+
calll _ZN4core6option13expect_failed17h82abf0144834fb64E@PLT
67+
addl $16, %esp
68+
.cfi_adjust_cfa_offset -16
69+
ud2
70+
.Lfunc_end0:
71+
.size handle, .Lfunc_end0-handle
72+
.cfi_endproc
73+
74+
.type .L__unnamed_3,@object
75+
.section .rodata..L__unnamed_3,"a",@progbits
76+
.L__unnamed_3:
77+
.ascii "$WORKSPACE/objc2/src/message/gnustep.rs"
78+
.size .L__unnamed_3, 66
79+
80+
.type .L__unnamed_2,@object
81+
.section .rodata.cst8,"aM",@progbits,8
82+
.L__unnamed_2:
83+
.ascii "Null IMP"
84+
.size .L__unnamed_2, 8
85+
86+
.type .L__unnamed_1,@object
87+
.section .data.rel.ro..L__unnamed_1,"aw",@progbits
88+
.p2align 2
89+
.L__unnamed_1:
90+
.long .L__unnamed_3
91+
.asciz "B\000\000\000\034\000\000\000#\000\000"
92+
.size .L__unnamed_1, 16
93+
94+
.section ".note.GNU-stack","",@progbits
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.section __TEXT,__text,regular,pure_instructions
2+
.macosx_version_min 10, 7
3+
.globl _handle
4+
.p2align 4, 0x90
5+
_handle:
6+
.cfi_startproc
7+
pushq %rbp
8+
.cfi_def_cfa_offset 16
9+
.cfi_offset %rbp, -16
10+
movq %rsp, %rbp
11+
.cfi_def_cfa_register %rbp
12+
popq %rbp
13+
jmp _objc_msgSend
14+
.cfi_endproc
15+
16+
.subsections_via_symbols
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.section __TEXT,__text,regular,pure_instructions
2+
.ios_version_min 7, 0
3+
.globl _handle
4+
.p2align 4, 0x90
5+
_handle:
6+
.cfi_startproc
7+
pushq %rbp
8+
.cfi_def_cfa_offset 16
9+
.cfi_offset %rbp, -16
10+
movq %rsp, %rbp
11+
.cfi_def_cfa_register %rbp
12+
popq %rbp
13+
jmp _objc_msgSend
14+
.cfi_endproc
15+
16+
.subsections_via_symbols

0 commit comments

Comments
 (0)