Skip to content

Commit e10bf9b

Browse files
committed
Add assembly test results
1 parent 134cfcb commit e10bf9b

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
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
.text
2+
.file "test_msg_send_zero_cost.3bbb906c-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+
pushq %r14
10+
.cfi_def_cfa_offset 16
11+
pushq %rbx
12+
.cfi_def_cfa_offset 24
13+
pushq %rax
14+
.cfi_def_cfa_offset 32
15+
.cfi_offset %rbx, -24
16+
.cfi_offset %r14, -16
17+
movq %rsi, %r14
18+
movq %rdi, %rbx
19+
callq *objc_msg_lookup@GOTPCREL(%rip)
20+
testq %rax, %rax
21+
je .LBB0_1
22+
movq %rbx, %rdi
23+
movq %r14, %rsi
24+
addq $8, %rsp
25+
.cfi_def_cfa_offset 24
26+
popq %rbx
27+
.cfi_def_cfa_offset 16
28+
popq %r14
29+
.cfi_def_cfa_offset 8
30+
jmpq *%rax
31+
.LBB0_1:
32+
.cfi_def_cfa_offset 32
33+
leaq .L__unnamed_1(%rip), %rdi
34+
leaq .L__unnamed_2(%rip), %rdx
35+
movl $8, %esi
36+
callq *_ZN4core6option13expect_failed17h9d79082a6872a2cfE@GOTPCREL(%rip)
37+
ud2
38+
.Lfunc_end0:
39+
.size handle, .Lfunc_end0-handle
40+
.cfi_endproc
41+
42+
.type .L__unnamed_3,@object
43+
.section .rodata..L__unnamed_3,"a",@progbits
44+
.L__unnamed_3:
45+
.ascii "$WORKSPACE/objc2/src/message/gnustep.rs"
46+
.size .L__unnamed_3, 66
47+
48+
.type .L__unnamed_1,@object
49+
.section .rodata.cst8,"aM",@progbits,8
50+
.L__unnamed_1:
51+
.ascii "Null IMP"
52+
.size .L__unnamed_1, 8
53+
54+
.type .L__unnamed_2,@object
55+
.section .data.rel.ro..L__unnamed_2,"aw",@progbits
56+
.p2align 3
57+
.L__unnamed_2:
58+
.quad .L__unnamed_3
59+
.asciz "B\000\000\000\000\000\000\000\034\000\000\000#\000\000"
60+
.size .L__unnamed_2, 24
61+
62+
.section ".note.GNU-stack","",@progbits

0 commit comments

Comments
 (0)