x86
stringlengths 122
3.84M
| arm
stringlengths 122
16.1M
| file
stringlengths 19
207
| source
stringclasses 2
values |
---|---|---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_label
_test_label: ## @test_label
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $8, %edi
movl $8, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_label
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_label
_test_label: ; @test_label
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #8
mov w1, #8
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_label
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_label.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_logor
_test_logor: ## @test_logor
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_logor
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_logor
_test_logor: ; @test_logor
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_logor
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_logor.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_while
_test_while: ## @test_while
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $5050, %edi ## imm = 0x13BA
movl $5050, %esi ## imm = 0x13BA
callq _expect
movl $5051, %edi ## imm = 0x13BB
movl $5051, %esi ## imm = 0x13BB
callq _expect
xorl %esi, %esi
xorl %eax, %eax
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_2 Depth 2
cmpl $9, %eax
movl $8, %ecx
cmovael %eax, %ecx
negl %ecx
leal 1(%rax), %edx
.p2align 4, 0x90
LBB0_2: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $5, %eax
jl LBB0_3
## %bb.4: ## in Loop: Header=BB0_2 Depth=2
addl %edx, %esi
leal (%rcx,%rdx), %edi
incl %edi
## kill: def $edx killed $edx killed $rdx
incl %edx
## kill: def $edx killed $edx def $rdx
cmpl $2, %edi
jne LBB0_2
jmp LBB0_5
.p2align 4, 0x90
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movl %edx, %eax
jmp LBB0_1
LBB0_5:
movl $30, %edi
callq _expect
movl $67, %edi
movl $67, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_while
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_while
_test_while: ; @test_while
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #5050
mov w1, #5050
bl _expect
mov w0, #5051
mov w1, #5051
bl _expect
mov w1, #0
mov w9, #0
mov w8, #8
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_2 Depth 2
cmp w9, #8
csel w10, w9, w8, hi
sub w11, w9, #1
LBB0_2: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
add w12, w11, #2
cmp w9, #5
b.lt LBB0_4
; %bb.3: ; in Loop: Header=BB0_2 Depth=2
add w1, w12, w1
add w11, w11, #1
cmp w10, w11
b.ne LBB0_2
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
mov x9, x12
b LBB0_1
LBB0_5:
mov w0, #30
bl _expect
mov w0, #67
mov w1, #67
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_while
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_while.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _test_if
xorl %eax, %eax
callq _test_for
xorl %eax, %eax
callq _test_while
xorl %eax, %eax
callq _test_do
xorl %eax, %eax
callq _test_switch
xorl %eax, %eax
callq _test_goto
xorl %eax, %eax
callq _test_label
xorl %eax, %eax
callq _test_computed_goto
xorl %eax, %eax
popq %rbp
jmp _test_logor ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "control flow"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _test_if
bl _test_for
bl _test_while
bl _test_do
bl _test_switch
bl _test_goto
bl _test_label
bl _test_computed_goto
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _test_logor
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "control flow"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function test_float
LCPI0_0:
.long 0x40800000 ## float 4
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_test_float: ## @test_float
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movl $4, %edi
popq %rbp
jmp _expectf ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_float
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_float
_test_float: ; @test_float
.cfi_startproc
; %bb.0:
fmov s0, #4.00000000
mov w0, #4
b _expectf
.cfi_endproc
; -- End function
.no_dead_strip _test_float
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_conversion.c_test_float.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _test_bool
xorl %eax, %eax
popq %rbp
jmp _test_float ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "type conversion"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _test_bool
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _test_float
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "type conversion"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_conversion.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t1
_t1: ## @t1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $3, %edi
movl $3, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t1
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t1
_t1: ; @t1
.cfi_startproc
; %bb.0:
mov w0, #3
mov w1, #3
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t1
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_decl.c_t1.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t2
_t2: ## @t2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $102, %edi
movl $102, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t2
_t2: ; @t2
.cfi_startproc
; %bb.0:
mov w0, #102
mov w1, #102
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t2
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_decl.c_t2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t3
_t3: ## @t3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $55, %edi
movl $55, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t3
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t3
_t3: ; @t3
.cfi_startproc
; %bb.0:
mov w0, #55
mov w1, #55
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t3
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_decl.c_t3.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t4
_t4: ## @t4
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $67, %edi
movl $67, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t4
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t4
_t4: ; @t4
.cfi_startproc
; %bb.0:
mov w0, #67
mov w1, #67
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t4
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_decl.c_t4.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t5
_t5: ## @t5
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $30, %edi
movl $30, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t5
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t5
_t5: ; @t5
.cfi_startproc
; %bb.0:
mov w0, #30
mov w1, #30
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t5
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_decl.c_t5.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t6
_t6: ## @t6
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $20, %edi
movl $20, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t6
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t6
_t6: ; @t6
.cfi_startproc
; %bb.0:
mov w0, #20
mov w1, #20
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t6
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_decl.c_t6.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _t1
xorl %eax, %eax
callq _t2
xorl %eax, %eax
callq _t3
xorl %eax, %eax
callq _t4
xorl %eax, %eax
callq _t5
xorl %eax, %eax
popq %rbp
jmp _t6 ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "declaration"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _t1
bl _t2
bl _t3
bl _t4
bl _t5
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _t6
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "declaration"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_decl.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
movq _g1@GOTPCREL(%rip), %rax
movl (%rax), %esi
xorl %edi, %edi
callq _expect
movq _g3@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $2, %edi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "enum"
.comm _g1,4,2 ## @g1
.comm _g3,4,2 ## @g3
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
Lloh2:
adrp x8, _g1@GOTPAGE
Lloh3:
ldr x8, [x8, _g1@GOTPAGEOFF]
Lloh4:
ldr w1, [x8]
mov w0, #0
bl _expect
Lloh5:
adrp x8, _g3@GOTPAGE
Lloh6:
ldr x8, [x8, _g3@GOTPAGEOFF]
Lloh7:
ldr w1, [x8]
mov w0, #2
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "enum"
.comm _g1,4,2 ; @g1
.comm _g3,4,2 ; @g3
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_enum.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
movq _externvar1@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $98, %edi
callq _expect
movq _externvar2@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $99, %edi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "extern"
.comm _externvar1,4,2 ## @externvar1
.comm _externvar2,4,2 ## @externvar2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
Lloh2:
adrp x8, _externvar1@GOTPAGE
Lloh3:
ldr x8, [x8, _externvar1@GOTPAGEOFF]
Lloh4:
ldr w1, [x8]
mov w0, #98
bl _expect
Lloh5:
adrp x8, _externvar2@GOTPAGE
Lloh6:
ldr x8, [x8, _externvar2@GOTPAGEOFF]
Lloh7:
ldr w1, [x8]
mov w0, #99
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "extern"
.comm _externvar1,4,2 ; @externvar1
.comm _externvar2,4,2 ; @externvar2
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_extern.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fmtdbl ## -- Begin function fmtdbl
.p2align 4, 0x90
_fmtdbl: ## @fmtdbl
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
popq %rbp
jmp _fmt ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%a"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fmtdbl ; -- Begin function fmtdbl
.p2align 2
_fmtdbl: ; @fmtdbl
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
b _fmt
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%a"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_float.c_fmtdbl.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fmtint ## -- Begin function fmtint
.p2align 4, 0x90
_fmtint: ## @fmtint
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, %esi
leaq L_.str(%rip), %rdi
popq %rbp
jmp _fmt ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fmtint ; -- Begin function fmtint
.p2align 2
_fmtint: ; @fmtint
.cfi_startproc
; %bb.0:
mov x1, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
b _fmt
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_float.c_fmtint.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function recursive
LCPI0_0:
.quad 0x4024000000000000 ## double 10
LCPI0_1:
.quad 0x400aa3d70a3d70a4 ## double 3.3300000000000001
.section __TEXT,__text,regular,pure_instructions
.globl _recursive
.p2align 4, 0x90
_recursive: ## @recursive
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movapd %xmm0, %xmm1
cmpltsd LCPI0_0(%rip), %xmm1
andpd %xmm1, %xmm0
movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero
andnpd %xmm2, %xmm1
orpd %xmm1, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _recursive ; -- Begin function recursive
.p2align 2
_recursive: ; @recursive
.cfi_startproc
; %bb.0:
fmov d1, #10.00000000
fcmp d0, d1
mov x8, #28836
movk x8, #2621, lsl #16
movk x8, #41943, lsl #32
movk x8, #16394, lsl #48
fmov d1, x8
fcsel d0, d0, d1, mi
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_float.c_recursive.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _td1 ## -- Begin function td1
.p2align 4, 0x90
_td1: ## @td1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cvtss2sd %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _td1 ; -- Begin function td1
.p2align 2
_td1: ; @td1
.cfi_startproc
; %bb.0:
fcvt d0, s0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_float.c_td1.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _td2 ## -- Begin function td2
.p2align 4, 0x90
_td2: ## @td2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _td2 ; -- Begin function td2
.p2align 2
_td2: ; @td2
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_float.c_td2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _td3 ## -- Begin function td3
.p2align 4, 0x90
_td3: ## @td3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cvtsi2sd %edi, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _td3 ; -- Begin function td3
.p2align 2
_td3: ; @td3
.cfi_startproc
; %bb.0:
scvtf d0, w0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_float.c_td3.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function testmain
LCPI0_0:
.quad 0x3fe6666666666666 ## double 0.69999999999999996
LCPI0_1:
.quad 0x4024000000000000 ## double 10
.section __TEXT,__text,regular,pure_instructions
.globl _testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _std
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movaps %xmm0, %xmm1
callq _expect
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movaps %xmm0, %xmm1
callq _expectf
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movaps %xmm0, %xmm1
popq %rbp
jmp _expectf ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "float"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _std
mov x8, #7378697629483820646
movk x8, #16358, lsl #48
fmov d0, x8
fmov d1, d0
bl _expect
fmov d0, #10.00000000
fmov d1, #10.00000000
bl _expectf
fmov d0, #10.00000000
fmov d1, #10.00000000
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expectf
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "float"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_float.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tf1 ## -- Begin function tf1
.p2align 4, 0x90
_tf1: ## @tf1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tf1 ; -- Begin function tf1
.p2align 2
_tf1: ; @tf1
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_float.c_tf1.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tf2 ## -- Begin function tf2
.p2align 4, 0x90
_tf2: ## @tf2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cvtsd2ss %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tf2 ; -- Begin function tf2
.p2align 2
_tf2: ; @tf2
.cfi_startproc
; %bb.0:
fcvt s0, d0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_float.c_tf2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tf3 ## -- Begin function tf3
.p2align 4, 0x90
_tf3: ## @tf3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cvtsi2ss %edi, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _tf3 ; -- Begin function tf3
.p2align 2
_tf3: ; @tf3
.cfi_startproc
; %bb.0:
scvtf s0, w0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_float.c_tf3.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function many_floats
_many_floats: ## @many_floats
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movss %xmm7, -36(%rbp) ## 4-byte Spill
movss %xmm6, -28(%rbp) ## 4-byte Spill
movss %xmm5, -20(%rbp) ## 4-byte Spill
movss %xmm4, -16(%rbp) ## 4-byte Spill
movss %xmm3, -12(%rbp) ## 4-byte Spill
movss %xmm2, -8(%rbp) ## 4-byte Spill
movss %xmm1, -4(%rbp) ## 4-byte Spill
movss 80(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss %xmm1, -64(%rbp) ## 4-byte Spill
movss 72(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss %xmm1, -60(%rbp) ## 4-byte Spill
movss 64(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss %xmm1, -56(%rbp) ## 4-byte Spill
movss 56(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss %xmm1, -52(%rbp) ## 4-byte Spill
movss 48(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss %xmm1, -48(%rbp) ## 4-byte Spill
movss 40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss %xmm1, -44(%rbp) ## 4-byte Spill
movss 32(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss %xmm1, -40(%rbp) ## 4-byte Spill
movss 24(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss %xmm1, -32(%rbp) ## 4-byte Spill
movss 16(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
movss %xmm1, -24(%rbp) ## 4-byte Spill
movl $1, %edi
callq _expectf
movl $2, %edi
movss -4(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $3, %edi
movss -8(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $4, %edi
movss -12(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $5, %edi
movss -16(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $6, %edi
movss -20(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $7, %edi
movss -28(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $8, %edi
movss -36(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $9, %edi
movss -24(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $10, %edi
movss -32(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $11, %edi
movss -40(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $12, %edi
movss -44(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $13, %edi
movss -48(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $14, %edi
movss -52(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $15, %edi
movss -56(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $16, %edi
movss -60(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
callq _expectf
movl $17, %edi
movss -64(%rbp), %xmm0 ## 4-byte Reload
## xmm0 = mem[0],zero,zero,zero
addq $64, %rsp
popq %rbp
jmp _expectf ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _many_floats
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function many_floats
_many_floats: ; @many_floats
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp d15, d14, [sp, #32] ; 16-byte Folded Spill
stp d13, d12, [sp, #48] ; 16-byte Folded Spill
stp d11, d10, [sp, #64] ; 16-byte Folded Spill
stp d9, d8, [sp, #80] ; 16-byte Folded Spill
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset b8, -24
.cfi_offset b9, -32
.cfi_offset b10, -40
.cfi_offset b11, -48
.cfi_offset b12, -56
.cfi_offset b13, -64
.cfi_offset b14, -72
.cfi_offset b15, -80
str s7, [sp] ; 4-byte Folded Spill
fmov s8, s6
fmov s9, s5
fmov s10, s4
fmov s11, s3
fmov s12, s2
fmov s13, s1
ldr s1, [x29, #48]
str s1, [sp, #28] ; 4-byte Folded Spill
ldr s1, [x29, #44]
str s1, [sp, #24] ; 4-byte Folded Spill
ldr s1, [x29, #40]
str s1, [sp, #20] ; 4-byte Folded Spill
ldr s1, [x29, #36]
str s1, [sp, #16] ; 4-byte Folded Spill
ldr s1, [x29, #32]
str s1, [sp, #12] ; 4-byte Folded Spill
ldr s1, [x29, #28]
str s1, [sp, #8] ; 4-byte Folded Spill
ldr s1, [x29, #24]
str s1, [sp, #4] ; 4-byte Folded Spill
ldp s15, s14, [x29, #16]
mov w0, #1
bl _expectf
mov w0, #2
fmov s0, s13
bl _expectf
mov w0, #3
fmov s0, s12
bl _expectf
mov w0, #4
fmov s0, s11
bl _expectf
mov w0, #5
fmov s0, s10
bl _expectf
mov w0, #6
fmov s0, s9
bl _expectf
mov w0, #7
fmov s0, s8
bl _expectf
mov w0, #8
ldr s0, [sp] ; 4-byte Folded Reload
bl _expectf
mov w0, #9
fmov s0, s15
bl _expectf
mov w0, #10
fmov s0, s14
bl _expectf
mov w0, #11
ldr s0, [sp, #4] ; 4-byte Folded Reload
bl _expectf
mov w0, #12
ldr s0, [sp, #8] ; 4-byte Folded Reload
bl _expectf
mov w0, #13
ldr s0, [sp, #12] ; 4-byte Folded Reload
bl _expectf
mov w0, #14
ldr s0, [sp, #16] ; 4-byte Folded Reload
bl _expectf
mov w0, #15
ldr s0, [sp, #20] ; 4-byte Folded Reload
bl _expectf
mov w0, #16
ldr s0, [sp, #24] ; 4-byte Folded Reload
bl _expectf
mov w0, #17
ldr s0, [sp, #28] ; 4-byte Folded Reload
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
ldp d9, d8, [sp, #80] ; 16-byte Folded Reload
ldp d11, d10, [sp, #64] ; 16-byte Folded Reload
ldp d13, d12, [sp, #48] ; 16-byte Folded Reload
ldp d15, d14, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #112
b _expectf
.cfi_endproc
; -- End function
.no_dead_strip _many_floats
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_funcargs.c_many_floats.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function many_ints
_many_ints: ## @many_ints
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %r9d, -44(%rbp) ## 4-byte Spill
movl %r8d, %ebx
movl %ecx, %r14d
movl %edx, %r15d
movl %esi, %r12d
movl %edi, %esi
movl 32(%rbp), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
movl 24(%rbp), %eax
movl %eax, -48(%rbp) ## 4-byte Spill
movl 16(%rbp), %r13d
movl $1, %edi
callq _expect
movl $2, %edi
movl %r12d, %esi
callq _expect
movl $3, %edi
movl %r15d, %esi
callq _expect
movl $4, %edi
movl %r14d, %esi
callq _expect
movl $5, %edi
movl %ebx, %esi
callq _expect
movl $6, %edi
movl -44(%rbp), %esi ## 4-byte Reload
callq _expect
movl $7, %edi
movl %r13d, %esi
callq _expect
movl $8, %edi
movl -48(%rbp), %esi ## 4-byte Reload
callq _expect
movl $9, %edi
movl -52(%rbp), %esi ## 4-byte Reload
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _many_ints
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function many_ints
_many_ints: ; @many_ints
.cfi_startproc
; %bb.0:
stp x26, x25, [sp, #-80]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 80
stp x24, x23, [sp, #16] ; 16-byte Folded Spill
stp x22, x21, [sp, #32] ; 16-byte Folded Spill
stp x20, x19, [sp, #48] ; 16-byte Folded Spill
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
mov x19, x7
mov x20, x6
mov x21, x5
mov x22, x4
mov x23, x3
mov x24, x2
mov x25, x1
mov x1, x0
ldr w26, [x29, #16]
mov w0, #1
bl _expect
mov w0, #2
mov x1, x25
bl _expect
mov w0, #3
mov x1, x24
bl _expect
mov w0, #4
mov x1, x23
bl _expect
mov w0, #5
mov x1, x22
bl _expect
mov w0, #6
mov x1, x21
bl _expect
mov w0, #7
mov x1, x20
bl _expect
mov w0, #8
mov x1, x19
bl _expect
mov w0, #9
mov x1, x26
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
ldp x20, x19, [sp, #48] ; 16-byte Folded Reload
ldp x22, x21, [sp, #32] ; 16-byte Folded Reload
ldp x24, x23, [sp, #16] ; 16-byte Folded Reload
ldp x26, x25, [sp], #80 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _many_ints
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_funcargs.c_many_ints.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function mixed
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
LCPI0_1:
.quad 0x4008000000000000 ## double 3
LCPI0_2:
.quad 0x4014000000000000 ## double 5
LCPI0_3:
.quad 0x401c000000000000 ## double 7
LCPI0_4:
.quad 0x4022000000000000 ## double 9
LCPI0_5:
.quad 0x4026000000000000 ## double 11
LCPI0_6:
.quad 0x402a000000000000 ## double 13
LCPI0_7:
.quad 0x402e000000000000 ## double 15
LCPI0_8:
.quad 0x4031000000000000 ## double 17
LCPI0_9:
.quad 0x4033000000000000 ## double 19
LCPI0_10:
.quad 0x4035000000000000 ## double 21
LCPI0_11:
.quad 0x4037000000000000 ## double 23
LCPI0_12:
.quad 0x4039000000000000 ## double 25
LCPI0_13:
.quad 0x403b000000000000 ## double 27
LCPI0_14:
.quad 0x403d000000000000 ## double 29
LCPI0_15:
.quad 0x403f000000000000 ## double 31
LCPI0_16:
.quad 0x4040800000000000 ## double 33
LCPI0_17:
.quad 0x4041800000000000 ## double 35
LCPI0_18:
.quad 0x4042800000000000 ## double 37
LCPI0_19:
.quad 0x4043800000000000 ## double 39
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_mixed: ## @mixed
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $136, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movss %xmm7, -100(%rbp) ## 4-byte Spill
movss %xmm6, -88(%rbp) ## 4-byte Spill
movl %r9d, -76(%rbp) ## 4-byte Spill
movss %xmm5, -72(%rbp) ## 4-byte Spill
movl %r8d, -60(%rbp) ## 4-byte Spill
movss %xmm4, -56(%rbp) ## 4-byte Spill
movl %ecx, %r15d
movss %xmm3, -52(%rbp) ## 4-byte Spill
movl %edx, %r12d
movss %xmm2, -48(%rbp) ## 4-byte Spill
movl %esi, %r13d
movss %xmm1, -44(%rbp) ## 4-byte Spill
movl %edi, %ebx
movaps %xmm0, %xmm1
movl 216(%rbp), %eax
movl %eax, -176(%rbp) ## 4-byte Spill
movss 208(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -172(%rbp) ## 4-byte Spill
movl 200(%rbp), %eax
movl %eax, -168(%rbp) ## 4-byte Spill
movss 192(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -164(%rbp) ## 4-byte Spill
movl 184(%rbp), %eax
movl %eax, -160(%rbp) ## 4-byte Spill
movss 176(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -156(%rbp) ## 4-byte Spill
movl 168(%rbp), %eax
movl %eax, -152(%rbp) ## 4-byte Spill
movss 160(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -148(%rbp) ## 4-byte Spill
movl 152(%rbp), %eax
movl %eax, -144(%rbp) ## 4-byte Spill
movss 144(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -140(%rbp) ## 4-byte Spill
movl 136(%rbp), %eax
movl %eax, -136(%rbp) ## 4-byte Spill
movss 128(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -132(%rbp) ## 4-byte Spill
movl 120(%rbp), %eax
movl %eax, -128(%rbp) ## 4-byte Spill
movss 112(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -124(%rbp) ## 4-byte Spill
movss 96(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -116(%rbp) ## 4-byte Spill
movl 104(%rbp), %eax
movl %eax, -120(%rbp) ## 4-byte Spill
movl 88(%rbp), %eax
movl %eax, -112(%rbp) ## 4-byte Spill
movl 72(%rbp), %eax
movl %eax, -108(%rbp) ## 4-byte Spill
movl 56(%rbp), %eax
movl %eax, -92(%rbp) ## 4-byte Spill
movl 40(%rbp), %eax
movl %eax, -80(%rbp) ## 4-byte Spill
movl 24(%rbp), %eax
movl %eax, -64(%rbp) ## 4-byte Spill
movl 16(%rbp), %r14d
movss 80(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -104(%rbp) ## 4-byte Spill
movss 64(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -96(%rbp) ## 4-byte Spill
movss 48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -84(%rbp) ## 4-byte Spill
movss 32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -68(%rbp) ## 4-byte Spill
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
callq _expectf
movl $2, %edi
movl %ebx, %esi
callq _expect
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -44(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $4, %edi
movl %r13d, %esi
callq _expect
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -48(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $6, %edi
movl %r12d, %esi
callq _expect
movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -52(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $8, %edi
movl %r15d, %esi
callq _expect
movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -56(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $10, %edi
movl -60(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_5(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -72(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $12, %edi
movl -76(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_6(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -88(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $14, %edi
movl %r14d, %esi
callq _expect
movsd LCPI0_7(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -100(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $16, %edi
movl -64(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_8(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -68(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $18, %edi
movl -80(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_9(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -84(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $20, %edi
movl -92(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_10(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -96(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $22, %edi
movl -108(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_11(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -104(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $24, %edi
movl -112(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_12(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -116(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $26, %edi
movl -120(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_13(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -124(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $28, %edi
movl -128(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_14(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -132(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $30, %edi
movl -136(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_15(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -140(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $32, %edi
movl -144(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_16(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -148(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $34, %edi
movl -152(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_17(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -156(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $36, %edi
movl -160(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_18(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -164(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $38, %edi
movl -168(%rbp), %esi ## 4-byte Reload
callq _expect
movsd LCPI0_19(%rip), %xmm0 ## xmm0 = mem[0],zero
movss -172(%rbp), %xmm1 ## 4-byte Reload
## xmm1 = mem[0],zero,zero,zero
callq _expectf
movl $40, %edi
movl -176(%rbp), %esi ## 4-byte Reload
addq $136, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _mixed
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function mixed
_mixed: ; @mixed
.cfi_startproc
; %bb.0:
sub sp, sp, #272
.cfi_def_cfa_offset 272
stp d15, d14, [sp, #112] ; 16-byte Folded Spill
stp d13, d12, [sp, #128] ; 16-byte Folded Spill
stp d11, d10, [sp, #144] ; 16-byte Folded Spill
stp d9, d8, [sp, #160] ; 16-byte Folded Spill
stp x28, x27, [sp, #176] ; 16-byte Folded Spill
stp x26, x25, [sp, #192] ; 16-byte Folded Spill
stp x24, x23, [sp, #208] ; 16-byte Folded Spill
stp x22, x21, [sp, #224] ; 16-byte Folded Spill
stp x20, x19, [sp, #240] ; 16-byte Folded Spill
stp x29, x30, [sp, #256] ; 16-byte Folded Spill
add x29, sp, #256
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
.cfi_offset b8, -104
.cfi_offset b9, -112
.cfi_offset b10, -120
.cfi_offset b11, -128
.cfi_offset b12, -136
.cfi_offset b13, -144
.cfi_offset b14, -152
.cfi_offset b15, -160
mov x19, x7
mov x21, x6
mov x22, x5
mov x24, x4
mov x25, x3
mov x26, x2
str s7, [sp, #20] ; 4-byte Folded Spill
fmov s12, s6
fmov s14, s5
fmov s15, s4
fmov s8, s3
fmov s9, s2
mov x27, x1
fmov s10, s1
mov x28, x0
fmov s1, s0
ldr w8, [x29, #108]
str w8, [sp, #100] ; 4-byte Folded Spill
ldr s0, [x29, #104]
str s0, [sp, #96] ; 4-byte Folded Spill
ldr w8, [x29, #100]
str w8, [sp, #92] ; 4-byte Folded Spill
ldr s0, [x29, #96]
str s0, [sp, #88] ; 4-byte Folded Spill
ldr w8, [x29, #92]
str w8, [sp, #84] ; 4-byte Folded Spill
ldr s0, [x29, #88]
str s0, [sp, #80] ; 4-byte Folded Spill
ldr w8, [x29, #84]
str w8, [sp, #76] ; 4-byte Folded Spill
ldr s0, [x29, #80]
str s0, [sp, #72] ; 4-byte Folded Spill
ldr w8, [x29, #76]
str w8, [sp, #68] ; 4-byte Folded Spill
ldr s0, [x29, #72]
str s0, [sp, #64] ; 4-byte Folded Spill
ldr w8, [x29, #68]
str w8, [sp, #60] ; 4-byte Folded Spill
ldr s0, [x29, #64]
str s0, [sp, #56] ; 4-byte Folded Spill
ldr w8, [x29, #60]
str w8, [sp, #52] ; 4-byte Folded Spill
ldr s0, [x29, #56]
str s0, [sp, #48] ; 4-byte Folded Spill
ldr w8, [x29, #52]
str w8, [sp, #44] ; 4-byte Folded Spill
ldr s0, [x29, #48]
str s0, [sp, #40] ; 4-byte Folded Spill
ldr w8, [x29, #44]
str w8, [sp, #36] ; 4-byte Folded Spill
ldr s0, [x29, #40]
str s0, [sp, #32] ; 4-byte Folded Spill
ldr w8, [x29, #36]
str w8, [sp, #28] ; 4-byte Folded Spill
ldr s0, [x29, #32]
str s0, [sp, #24] ; 4-byte Folded Spill
ldr w20, [x29, #28]
ldr s11, [x29, #24]
ldr w23, [x29, #20]
ldr s13, [x29, #16]
fmov d0, #1.00000000
bl _expectf
mov w0, #2
mov x1, x28
bl _expect
fmov d0, #3.00000000
fmov s1, s10
bl _expectf
mov w0, #4
mov x1, x27
bl _expect
fmov d0, #5.00000000
fmov s1, s9
bl _expectf
mov w0, #6
mov x1, x26
bl _expect
fmov d0, #7.00000000
fmov s1, s8
bl _expectf
mov w0, #8
mov x1, x25
bl _expect
fmov d0, #9.00000000
fmov s1, s15
bl _expectf
mov w0, #10
mov x1, x24
bl _expect
fmov d0, #11.00000000
fmov s1, s14
bl _expectf
mov w0, #12
mov x1, x22
bl _expect
fmov d0, #13.00000000
fmov s1, s12
bl _expectf
mov w0, #14
mov x1, x21
bl _expect
fmov d0, #15.00000000
ldr s1, [sp, #20] ; 4-byte Folded Reload
bl _expectf
mov w0, #16
mov x1, x19
bl _expect
fmov d0, #17.00000000
fmov s1, s13
bl _expectf
mov w0, #18
mov x1, x23
bl _expect
fmov d0, #19.00000000
fmov s1, s11
bl _expectf
mov w0, #20
mov x1, x20
bl _expect
fmov d0, #21.00000000
ldr s1, [sp, #24] ; 4-byte Folded Reload
bl _expectf
mov w0, #22
ldr w1, [sp, #28] ; 4-byte Folded Reload
bl _expect
fmov d0, #23.00000000
ldr s1, [sp, #32] ; 4-byte Folded Reload
bl _expectf
mov w0, #24
ldr w1, [sp, #36] ; 4-byte Folded Reload
bl _expect
fmov d0, #25.00000000
ldr s1, [sp, #40] ; 4-byte Folded Reload
bl _expectf
mov w0, #26
ldr w1, [sp, #44] ; 4-byte Folded Reload
bl _expect
fmov d0, #27.00000000
ldr s1, [sp, #48] ; 4-byte Folded Reload
bl _expectf
mov w0, #28
ldr w1, [sp, #52] ; 4-byte Folded Reload
bl _expect
fmov d0, #29.00000000
ldr s1, [sp, #56] ; 4-byte Folded Reload
bl _expectf
mov w0, #30
ldr w1, [sp, #60] ; 4-byte Folded Reload
bl _expect
fmov d0, #31.00000000
ldr s1, [sp, #64] ; 4-byte Folded Reload
bl _expectf
mov w0, #32
ldr w1, [sp, #68] ; 4-byte Folded Reload
bl _expect
mov x8, #140737488355328
movk x8, #16448, lsl #48
fmov d0, x8
ldr s1, [sp, #72] ; 4-byte Folded Reload
bl _expectf
mov w0, #34
ldr w1, [sp, #76] ; 4-byte Folded Reload
bl _expect
mov x8, #140737488355328
movk x8, #16449, lsl #48
fmov d0, x8
ldr s1, [sp, #80] ; 4-byte Folded Reload
bl _expectf
mov w0, #36
ldr w1, [sp, #84] ; 4-byte Folded Reload
bl _expect
mov x8, #140737488355328
movk x8, #16450, lsl #48
fmov d0, x8
ldr s1, [sp, #88] ; 4-byte Folded Reload
bl _expectf
mov w0, #38
ldr w1, [sp, #92] ; 4-byte Folded Reload
bl _expect
mov x8, #140737488355328
movk x8, #16451, lsl #48
fmov d0, x8
ldr s1, [sp, #96] ; 4-byte Folded Reload
bl _expectf
mov w0, #40
ldr w1, [sp, #100] ; 4-byte Folded Reload
ldp x29, x30, [sp, #256] ; 16-byte Folded Reload
ldp x20, x19, [sp, #240] ; 16-byte Folded Reload
ldp x22, x21, [sp, #224] ; 16-byte Folded Reload
ldp x24, x23, [sp, #208] ; 16-byte Folded Reload
ldp x26, x25, [sp, #192] ; 16-byte Folded Reload
ldp x28, x27, [sp, #176] ; 16-byte Folded Reload
ldp d9, d8, [sp, #160] ; 16-byte Folded Reload
ldp d11, d10, [sp, #144] ; 16-byte Folded Reload
ldp d13, d12, [sp, #128] ; 16-byte Folded Reload
ldp d15, d14, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #272
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _mixed
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_funcargs.c_mixed.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function testmain
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
LCPI0_1:
.quad 0x4000000000000000 ## double 2
LCPI0_2:
.quad 0x4008000000000000 ## double 3
LCPI0_3:
.quad 0x4010000000000000 ## double 4
LCPI0_4:
.quad 0x4014000000000000 ## double 5
LCPI0_5:
.quad 0x4018000000000000 ## double 6
LCPI0_6:
.quad 0x401c000000000000 ## double 7
LCPI0_7:
.quad 0x4020000000000000 ## double 8
LCPI0_8:
.quad 0x4022000000000000 ## double 9
LCPI0_9:
.quad 0x4026000000000000 ## double 11
LCPI0_10:
.quad 0x402a000000000000 ## double 13
LCPI0_11:
.quad 0x402e000000000000 ## double 15
.section __TEXT,__text,regular,pure_instructions
.globl _testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
leaq L_.str(%rip), %rdi
callq _print
subq $8, %rsp
movl $1, %edi
movl $2, %esi
movl $3, %edx
movl $4, %ecx
movl $5, %r8d
movl $6, %r9d
pushq $9
pushq $8
pushq $7
callq _many_ints
addq $24, %rsp
movabsq $4625478292286210048, %rax ## imm = 0x4031000000000000
movabsq $4625196817309499392, %r10 ## imm = 0x4030000000000000
movabsq $4624633867356078080, %rcx ## imm = 0x402E000000000000
movabsq $4624070917402656768, %rdx ## imm = 0x402C000000000000
movabsq $4623507967449235456, %rsi ## imm = 0x402A000000000000
movabsq $4622945017495814144, %rdi ## imm = 0x4028000000000000
movabsq $4622382067542392832, %rbx ## imm = 0x4026000000000000
movabsq $4621819117588971520, %r8 ## imm = 0x4024000000000000
movabsq $4621256167635550208, %r9 ## imm = 0x4022000000000000
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
movsd LCPI0_2(%rip), %xmm2 ## xmm2 = mem[0],zero
movsd LCPI0_3(%rip), %xmm3 ## xmm3 = mem[0],zero
movsd LCPI0_4(%rip), %xmm4 ## xmm4 = mem[0],zero
movsd LCPI0_5(%rip), %xmm5 ## xmm5 = mem[0],zero
movsd LCPI0_6(%rip), %xmm6 ## xmm6 = mem[0],zero
movsd LCPI0_7(%rip), %xmm7 ## xmm7 = mem[0],zero
pushq %rax
pushq %r10
pushq %rcx
pushq %rdx
pushq %rsi
pushq %rdi
pushq %rbx
pushq %r8
pushq %r9
callq _many_floats
addq $80, %rsp
movabsq $4630685579355357184, %r15 ## imm = 0x4043800000000000
movabsq $4630404104378646528, %r11 ## imm = 0x4042800000000000
movabsq $4630122629401935872, %r10 ## imm = 0x4041800000000000
movabsq $4629841154425225216, %r14 ## imm = 0x4040800000000000
movabsq $4629418941960159232, %rax ## imm = 0x403F000000000000
movabsq $4628855992006737920, %rbx ## imm = 0x403D000000000000
movabsq $4628293042053316608, %r13 ## imm = 0x403B000000000000
movabsq $4627730092099895296, %r12 ## imm = 0x4039000000000000
movsd LCPI0_8(%rip), %xmm4 ## xmm4 = mem[0],zero
movsd LCPI0_9(%rip), %xmm5 ## xmm5 = mem[0],zero
movsd LCPI0_10(%rip), %xmm6 ## xmm6 = mem[0],zero
movsd LCPI0_11(%rip), %xmm7 ## xmm7 = mem[0],zero
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero
movl $4, %esi
movsd LCPI0_4(%rip), %xmm2 ## xmm2 = mem[0],zero
movl $6, %edx
movsd LCPI0_6(%rip), %xmm3 ## xmm3 = mem[0],zero
movl $8, %ecx
movl $2, %edi
movl $10, %r8d
movl $12, %r9d
pushq $40
pushq %r15
pushq $38
pushq %r11
pushq $36
pushq %r10
pushq $34
pushq %r14
pushq $32
pushq %rax
pushq $30
pushq %rbx
pushq $28
pushq %r13
pushq $26
pushq %r12
pushq $24
movabsq $4627167142146473984, %rax ## imm = 0x4037000000000000
pushq %rax
pushq $22
movabsq $4626604192193052672, %rax ## imm = 0x4035000000000000
pushq %rax
pushq $20
movabsq $4626041242239631360, %rax ## imm = 0x4033000000000000
pushq %rax
pushq $18
movabsq $4625478292286210048, %rax ## imm = 0x4031000000000000
pushq %rax
pushq $16
pushq $14
callq _mixed
addq $216, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "function argument"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
sub sp, sp, #224
.cfi_def_cfa_offset 224
stp x20, x19, [sp, #192] ; 16-byte Folded Spill
stp x29, x30, [sp, #208] ; 16-byte Folded Spill
add x29, sp, #208
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
mov w8, #9
str w8, [sp]
mov w0, #1
mov w1, #2
mov w2, #3
mov w3, #4
mov w4, #5
mov w5, #6
mov w6, #7
mov w7, #8
bl _many_ints
mov x19, #4625478292286210048
mov x8, #4625196817309499392
mov x9, #4624633867356078080
stp x9, x8, [sp, #48]
mov x8, #4624070917402656768
mov x9, #4623507967449235456
stp x9, x8, [sp, #32]
mov x8, #4622945017495814144
mov x9, #4622382067542392832
mov x10, #4621819117588971520
stp x9, x8, [sp, #16]
mov x8, #4621256167635550208
fmov d0, #1.00000000
fmov d1, #2.00000000
fmov d2, #3.00000000
fmov d3, #4.00000000
str x19, [sp, #64]
fmov d4, #5.00000000
fmov d5, #6.00000000
fmov d6, #7.00000000
fmov d7, #8.00000000
stp x8, x10, [sp]
bl _many_floats
mov w8, #40
str w8, [sp, #184]
mov x8, #140737488355328
movk x8, #16451, lsl #48
str x8, [sp, #176]
mov w8, #38
str w8, [sp, #168]
mov x8, #140737488355328
movk x8, #16450, lsl #48
str x8, [sp, #160]
mov w8, #36
str w8, [sp, #152]
mov x8, #140737488355328
movk x8, #16449, lsl #48
str x8, [sp, #144]
mov w8, #34
str w8, [sp, #136]
mov x8, #140737488355328
movk x8, #16448, lsl #48
str x8, [sp, #128]
mov w8, #32
str w8, [sp, #120]
mov x8, #4629418941960159232
str x8, [sp, #112]
mov w8, #30
str w8, [sp, #104]
mov x8, #4628855992006737920
mov w9, #28
mov x10, #4628293042053316608
mov w11, #26
str x8, [sp, #96]
str w9, [sp, #88]
str x10, [sp, #80]
str w11, [sp, #72]
mov x8, #4627730092099895296
mov w9, #24
mov x10, #4627167142146473984
mov w11, #22
mov x12, #4626604192193052672
mov w13, #20
mov x14, #4626041242239631360
str x8, [sp, #64]
mov w8, #18
str w9, [sp, #56]
str x10, [sp, #48]
str w11, [sp, #40]
fmov d0, #1.00000000
fmov d1, #3.00000000
fmov d2, #5.00000000
fmov d3, #7.00000000
fmov d4, #9.00000000
fmov d5, #11.00000000
fmov d6, #13.00000000
fmov d7, #15.00000000
str x12, [sp, #32]
str w13, [sp, #24]
str x14, [sp, #16]
str w8, [sp, #8]
str x19, [sp]
mov w0, #2
mov w1, #4
mov w2, #6
mov w3, #8
mov w4, #10
mov w5, #12
mov w6, #14
mov w7, #16
bl _mixed
ldp x29, x30, [sp, #208] ; 16-byte Folded Reload
ldp x20, x19, [sp, #192] ; 16-byte Folded Reload
add sp, sp, #224
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "function argument"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_funcargs.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function empty
_empty: ## @empty
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _empty
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function empty
_empty: ; @empty
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.no_dead_strip _empty
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_empty.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function empty2
_empty2: ## @empty2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _empty2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function empty2
_empty2: ; @empty2
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.no_dead_strip _empty2
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_empty2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function func_ptr_call
_func_ptr_call: ## @func_ptr_call
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movl $2, %edi
callq _ptrtest3
movl $4, %edi
callq _expectf
callq _ptrtest1
movl $55, %edi
movl %eax, %esi
callq _expect
movl $55, %edi
callq _ptrtest2
movq _ptrtest2@GOTPCREL(%rip), %rbx
movl $110, %edi
movl %eax, %esi
callq _expect
movl $1073741824, %edi ## imm = 0x40000000
callq _ptrtest3
movl $4, %edi
callq _expectf
callq _ptrtest1
movl $55, %edi
movl %eax, %esi
callq _expect
movq %rbx, %rdi
movl $5, %esi
callq _ptrtest4
movl $10, %edi
movl %eax, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _func_ptr_call
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function func_ptr_call
_func_ptr_call: ; @func_ptr_call
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov w0, #2
bl _ptrtest3
mov w0, #4
bl _expectf
bl _ptrtest1
mov x1, x0
mov w0, #55
bl _expect
mov w0, #55
bl _ptrtest2
mov x1, x0
Lloh0:
adrp x19, _ptrtest2@GOTPAGE
Lloh1:
ldr x19, [x19, _ptrtest2@GOTPAGEOFF]
mov w0, #110
bl _expect
mov w0, #1073741824
bl _ptrtest3
mov w0, #4
bl _expectf
bl _ptrtest1
mov x1, x0
mov w0, #55
bl _expect
mov x0, x19
mov w1, #5
bl _ptrtest4
mov x1, x0
mov w0, #10
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _expect
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.no_dead_strip _func_ptr_call
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_func_ptr_call.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_static
_local_static: ## @local_static
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
callq _local_static2
movl $6, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _local_static2
movl $7, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _local_static3
xorl %eax, %eax
callq _local_static2
movl $8, %edi
movl %eax, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _local_static
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_static
_local_static: ; @local_static
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
bl _local_static2
mov x1, x0
mov w0, #6
bl _expect
bl _local_static2
mov x1, x0
mov w0, #7
bl _expect
bl _local_static3
bl _local_static2
mov x1, x0
mov w0, #8
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _local_static
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_local_static.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_static2
_local_static2: ## @local_static2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl _local_static2.x(%rip), %eax
leal 1(%rax), %ecx
movl %ecx, _local_static2.x(%rip)
addl $5, %eax
## kill: def $eax killed $eax killed $rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __DATA,__data
.p2align 2 ## @local_static2.x
_local_static2.x:
.long 1 ## 0x1
.no_dead_strip _local_static2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_static2
_local_static2: ; @local_static2
.cfi_startproc
; %bb.0:
adrp x8, _local_static2.x@PAGE
ldr w9, [x8, _local_static2.x@PAGEOFF]
add w10, w9, #1
str w10, [x8, _local_static2.x@PAGEOFF]
add w0, w9, #5
ret
.cfi_endproc
; -- End function
.section __DATA,__data
.p2align 2 ; @local_static2.x
_local_static2.x:
.long 1 ; 0x1
.no_dead_strip _local_static2
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_local_static2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_static3
_local_static3: ## @local_static3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _local_static3
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_static3
_local_static3: ; @local_static3
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.no_dead_strip _local_static3
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_local_static3.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ptrtest1 ## -- Begin function ptrtest1
.p2align 4, 0x90
_ptrtest1: ## @ptrtest1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $55, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ptrtest1 ; -- Begin function ptrtest1
.p2align 2
_ptrtest1: ; @ptrtest1
.cfi_startproc
; %bb.0:
mov w0, #55
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_ptrtest1.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ptrtest2 ## -- Begin function ptrtest2
.p2align 4, 0x90
_ptrtest2: ## @ptrtest2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
## kill: def $edi killed $edi def $rdi
leal (%rdi,%rdi), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ptrtest2 ; -- Begin function ptrtest2
.p2align 2
_ptrtest2: ; @ptrtest2
.cfi_startproc
; %bb.0:
lsl w0, w0, #1
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_ptrtest2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ptrtest3 ## -- Begin function ptrtest3
.p2align 4, 0x90
_ptrtest3: ## @ptrtest3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
addss %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ptrtest3 ; -- Begin function ptrtest3
.p2align 2
_ptrtest3: ; @ptrtest3
.cfi_startproc
; %bb.0:
fadd s0, s0, s0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_ptrtest3.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ptrtest4 ## -- Begin function ptrtest4
.p2align 4, 0x90
_ptrtest4: ## @ptrtest4
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, %rax
movl %esi, %edi
popq %rbp
jmpq *%rax ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ptrtest4 ; -- Begin function ptrtest4
.p2align 2
_ptrtest4: ; @ptrtest4
.cfi_startproc
; %bb.0:
mov x2, x0
mov x0, x1
br x2
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_ptrtest4.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function retfunc
_retfunc: ## @retfunc
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _t6@GOTPCREL(%rip), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _t6,4,2 ## @t6
.no_dead_strip _retfunc
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function retfunc
_retfunc: ; @retfunc
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, _t6@GOTPAGE
Lloh1:
ldr x0, [x0, _t6@GOTPAGEOFF]
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _t6,4,2 ; @t6
.no_dead_strip _retfunc
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_retfunc.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function retfunc2
_retfunc2: ## @retfunc2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _t6@GOTPCREL(%rip), %rax
movl (%rax), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _t6,4,2 ## @t6
.no_dead_strip _retfunc2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function retfunc2
_retfunc2: ; @retfunc2
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _t6@GOTPAGE
Lloh1:
ldr x8, [x8, _t6@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _t6,4,2 ; @t6
.no_dead_strip _retfunc2
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_retfunc2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sum ## -- Begin function sum
.p2align 4, 0x90
_sum: ## @sum
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, %rax
shrq $32, %rax
addl %edi, %eax
addl %esi, %eax
shrq $32, %rsi
addl %esi, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sum ; -- Begin function sum
.p2align 2
_sum: ; @sum
.cfi_startproc
; %bb.0:
lsr x8, x0, #32
lsr x9, x1, #32
add w10, w1, w0
add w8, w10, w8
add w0, w8, w9
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_sum.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t1 ## -- Begin function t1
.p2align 4, 0x90
_t1: ## @t1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $77, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t1 ; -- Begin function t1
.p2align 2
_t1: ; @t1
.cfi_startproc
; %bb.0:
mov w0, #77
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t1.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t10 ## -- Begin function t10
.p2align 4, 0x90
_t10: ## @t10
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cvtsi2sd %edi, %xmm1
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t10 ; -- Begin function t10
.p2align 2
_t10: ; @t10
.cfi_startproc
; %bb.0:
scvtf d1, w0
fadd d0, d1, d0
fcvtzs w0, d0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t10.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t2
_t2: ## @t2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, %esi
movl $79, %edi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t2
_t2: ; @t2
.cfi_startproc
; %bb.0:
mov x1, x0
mov w0, #79
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t2
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t3
_t3: ## @t3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %r9d, %r14d
movl %r8d, %r15d
movl %ecx, %r12d
movl %edx, %r13d
movl %esi, %ebx
movl %edi, %esi
movl $1, %edi
callq _expect
movl $2, %edi
movl %ebx, %esi
callq _expect
movl $3, %edi
movl %r13d, %esi
callq _expect
movl $4, %edi
movl %r12d, %esi
callq _expect
movl $5, %edi
movl %r15d, %esi
callq _expect
movl $6, %edi
movl %r14d, %esi
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t3
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t3
_t3: ; @t3
.cfi_startproc
; %bb.0:
stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 64
stp x22, x21, [sp, #16] ; 16-byte Folded Spill
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
mov x19, x5
mov x20, x4
mov x21, x3
mov x22, x2
mov x23, x1
mov x1, x0
mov w0, #1
bl _expect
mov w0, #2
mov x1, x23
bl _expect
mov w0, #3
mov x1, x22
bl _expect
mov w0, #4
mov x1, x21
bl _expect
mov w0, #5
mov x1, x20
bl _expect
mov w0, #6
mov x1, x19
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
ldp x22, x21, [sp, #16] ; 16-byte Folded Reload
ldp x24, x23, [sp], #64 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t3
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t3.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t4
_t4: ## @t4
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $98, -4(%rbp)
leaq -4(%rbp), %rdi
callq _t4a
movl $98, %edi
movl %eax, %esi
callq _expect
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _t4
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t4
_t4: ; @t4
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #98
stur w8, [x29, #-4]
sub x0, x29, #4
bl _t4a
mov x1, x0
mov w0, #98
bl _expect
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _t4
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t4.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t4a ## -- Begin function t4a
.p2align 4, 0x90
_t4a: ## @t4a
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl (%rdi), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t4a ; -- Begin function t4a
.p2align 2
_t4a: ; @t4a
.cfi_startproc
; %bb.0:
ldr w0, [x0]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t4a.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t5
_t5: ## @t5
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movabsq $420906795107, %rax ## imm = 0x6200000063
movq %rax, -28(%rbp)
movl $97, -20(%rbp)
leaq -28(%rbp), %rbx
movq %rbx, %rdi
callq _t5a
movq %rbx, %rdi
callq _t5b
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -16(%rbp), %rax
jne LBB0_2
## %bb.1:
addq $24, %rsp
popq %rbx
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.no_dead_strip _t5
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function t5
lCPI0_0:
.long 99 ; 0x63
.long 98 ; 0x62
.section __TEXT,__text,regular,pure_instructions
.p2align 2
_t5: ; @t5
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-8]
Lloh3:
adrp x8, lCPI0_0@PAGE
Lloh4:
ldr d0, [x8, lCPI0_0@PAGEOFF]
str d0, [sp, #8]
mov w8, #97
str w8, [sp, #16]
add x0, sp, #8
bl _t5a
add x0, sp, #8
bl _t5b
ldur x8, [x29, #-8]
Lloh5:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh6:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
LBB0_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdr Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.no_dead_strip _t5
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t5.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t5a
_t5a: ## @t5a
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rdi, %rbx
movl (%rdi), %esi
movl $99, %edi
callq _expect
movl 4(%rbx), %esi
movl $98, %edi
callq _expect
movl 8(%rbx), %esi
movl $97, %edi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t5a
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t5a
_t5a: ; @t5a
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
ldr w1, [x0]
mov w0, #99
bl _expect
ldr w1, [x19, #4]
mov w0, #98
bl _expect
ldr w1, [x19, #8]
mov w0, #97
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t5a
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t5a.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t5b
_t5b: ## @t5b
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rdi, %rbx
movl (%rdi), %esi
movl $99, %edi
callq _expect
movl 4(%rbx), %esi
movl $98, %edi
callq _expect
movl 8(%rbx), %esi
movl $97, %edi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t5b
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t5b
_t5b: ; @t5b
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
ldr w1, [x0]
mov w0, #99
bl _expect
ldr w1, [x19, #4]
mov w0, #98
bl _expect
ldr w1, [x19, #8]
mov w0, #97
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t5b
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t5b.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t6 ## -- Begin function t6
.p2align 4, 0x90
_t6: ## @t6
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $3, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t6 ; -- Begin function t6
.p2align 2
_t6: ; @t6
.cfi_startproc
; %bb.0:
mov w0, #3
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t6.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t7 ## -- Begin function t7
.p2align 4, 0x90
_t7: ## @t7
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, %eax
imull %esi, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t7 ; -- Begin function t7
.p2align 2
_t7: ; @t7
.cfi_startproc
; %bb.0:
mul w0, w1, w0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t7.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t8 ## -- Begin function t8
.p2align 4, 0x90
_t8: ## @t8
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, %esi
movl $23, %edi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _t8 ; -- Begin function t8
.p2align 2
_t8: ; @t8
.cfi_startproc
; %bb.0:
mov x1, x0
mov w0, #23
b _expect
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t8.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t9
_t9: ## @t9
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _t9
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t9
_t9: ; @t9
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.no_dead_strip _t9
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_t9.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_bool
_test_bool: ## @test_bool
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $256, %edi ## imm = 0x100
callq _booltest1
xorl %edi, %edi
movl %eax, %esi
callq _expect
movl $257, %edi ## imm = 0x101
callq _booltest1
movl $1, %edi
movl %eax, %esi
callq _expect
movl $512, %edi ## imm = 0x200
callq _booltest2
movl $1, %edi
movl %eax, %esi
callq _expect
movl $513, %edi ## imm = 0x201
callq _booltest2
movl $1, %edi
movl %eax, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_bool
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_bool
_test_bool: ; @test_bool
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #256
bl _booltest1
mov x1, x0
mov w0, #0
bl _expect
mov w0, #257
bl _booltest1
mov x1, x0
mov w0, #1
bl _expect
mov w0, #512
bl _booltest2
mov x1, x0
mov w0, #1
bl _expect
mov w0, #513
bl _booltest2
mov x1, x0
mov w0, #1
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_bool
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_test_bool.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_funcdesg
_test_funcdesg: ## @test_funcdesg
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _test_funcdesg
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_funcdesg
_test_funcdesg: ; @test_funcdesg
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.no_dead_strip _test_funcdesg
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_function.c_test_funcdesg.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
popq %rbp
jmp _print ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "_Generic"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
b _print
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "_Generic"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_generic.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
leaq L_.str(%rip), %rdi
callq _print
movq _defaultint@GOTPCREL(%rip), %rax
movl $3, (%rax)
movl $3, %edi
movl $3, %esi
callq _expect
movq _val@GOTPCREL(%rip), %rbx
movl (%rbx), %esi
movl $21, %edi
callq _expect
movl $22, (%rbx)
movl $22, %edi
movl $22, %esi
callq _expect
movq _p1@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl (%rax), %esi
movl $22, %edi
callq _expect
movq _a1@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl $23, 4(%rax)
movl $23, %edi
movl $23, %esi
callq _expect
movq _a2@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl 4(%rax), %esi
movl $25, %edi
callq _expect
movq _x1@GOTPCREL(%rip), %rax
movl $1, (%rax)
movq _x2@GOTPCREL(%rip), %rbx
movl $2, (%rbx)
movl $1, %edi
movl $1, %esi
callq _expect
movl (%rbx), %esi
movl $2, %edi
callq _expect
movq _x3@GOTPCREL(%rip), %rax
movl $3, (%rax)
movl $3, %edi
movl $3, %esi
callq _expect
movq _x4@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $4, %edi
callq _expect
movq _x5@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $5, %edi
callq _expect
movq _x6@GOTPCREL(%rip), %rax
movl $6, (%rax)
movl $6, %edi
movl $6, %esi
callq _expect
movq _s1@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
callq _expect_string
movq _s2@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.2(%rip), %rdi
callq _expect_string
movq _l1@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $8, %edi
callq _expectl
movq _intp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl (%rax), %esi
movl $9, %edi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _expectl ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "global variable"
.comm _defaultint,4,2 ## @defaultint
.comm _val,4,2 ## @val
.comm _p1,8,3 ## @p1
.comm _a1,8,3 ## @a1
.comm _a2,8,3 ## @a2
.comm _x1,4,2 ## @x1
.comm _x2,4,2 ## @x2
.comm _x3,4,2 ## @x3
.comm _x4,4,2 ## @x4
.comm _x5,4,2 ## @x5
.comm _x6,4,2 ## @x6
L_.str.1: ## @.str.1
.asciz "abcd"
.comm _s1,4,2 ## @s1
L_.str.2: ## @.str.2
.asciz "ABCD"
.comm _s2,4,2 ## @s2
.comm _l1,4,2 ## @l1
.comm _intp,8,3 ## @intp
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
Lloh2:
adrp x8, _defaultint@GOTPAGE
Lloh3:
ldr x8, [x8, _defaultint@GOTPAGEOFF]
mov w19, #3
Lloh4:
str w19, [x8]
mov w0, #3
mov w1, #3
bl _expect
Lloh5:
adrp x20, _val@GOTPAGE
Lloh6:
ldr x20, [x20, _val@GOTPAGEOFF]
ldr w1, [x20]
mov w0, #21
bl _expect
mov w8, #22
str w8, [x20]
mov w0, #22
mov w1, #22
bl _expect
Lloh7:
adrp x8, _p1@GOTPAGE
Lloh8:
ldr x8, [x8, _p1@GOTPAGEOFF]
Lloh9:
ldr x8, [x8]
ldr w1, [x8]
mov w0, #22
bl _expect
Lloh10:
adrp x8, _a1@GOTPAGE
Lloh11:
ldr x8, [x8, _a1@GOTPAGEOFF]
Lloh12:
ldr x8, [x8]
mov w9, #23
str w9, [x8, #4]
mov w0, #23
mov w1, #23
bl _expect
Lloh13:
adrp x8, _a2@GOTPAGE
Lloh14:
ldr x8, [x8, _a2@GOTPAGEOFF]
Lloh15:
ldr x8, [x8]
ldr w1, [x8, #4]
mov w0, #25
bl _expect
Lloh16:
adrp x8, _x1@GOTPAGE
Lloh17:
ldr x8, [x8, _x1@GOTPAGEOFF]
mov w9, #1
Lloh18:
str w9, [x8]
Lloh19:
adrp x20, _x2@GOTPAGE
Lloh20:
ldr x20, [x20, _x2@GOTPAGEOFF]
mov w8, #2
str w8, [x20]
mov w0, #1
mov w1, #1
bl _expect
ldr w1, [x20]
mov w0, #2
bl _expect
Lloh21:
adrp x8, _x3@GOTPAGE
Lloh22:
ldr x8, [x8, _x3@GOTPAGEOFF]
Lloh23:
str w19, [x8]
mov w0, #3
mov w1, #3
bl _expect
Lloh24:
adrp x8, _x4@GOTPAGE
Lloh25:
ldr x8, [x8, _x4@GOTPAGEOFF]
Lloh26:
ldr w1, [x8]
mov w0, #4
bl _expect
Lloh27:
adrp x8, _x5@GOTPAGE
Lloh28:
ldr x8, [x8, _x5@GOTPAGEOFF]
Lloh29:
ldr w1, [x8]
mov w0, #5
bl _expect
Lloh30:
adrp x8, _x6@GOTPAGE
Lloh31:
ldr x8, [x8, _x6@GOTPAGEOFF]
mov w9, #6
Lloh32:
str w9, [x8]
mov w0, #6
mov w1, #6
bl _expect
Lloh33:
adrp x8, _s1@GOTPAGE
Lloh34:
ldr x8, [x8, _s1@GOTPAGEOFF]
Lloh35:
ldr w1, [x8]
Lloh36:
adrp x0, l_.str.1@PAGE
Lloh37:
add x0, x0, l_.str.1@PAGEOFF
bl _expect_string
Lloh38:
adrp x8, _s2@GOTPAGE
Lloh39:
ldr x8, [x8, _s2@GOTPAGEOFF]
Lloh40:
ldr w1, [x8]
Lloh41:
adrp x0, l_.str.2@PAGE
Lloh42:
add x0, x0, l_.str.2@PAGEOFF
bl _expect_string
Lloh43:
adrp x8, _l1@GOTPAGE
Lloh44:
ldr x8, [x8, _l1@GOTPAGEOFF]
Lloh45:
ldr w1, [x8]
mov w0, #8
bl _expectl
Lloh46:
adrp x8, _intp@GOTPAGE
Lloh47:
ldr x8, [x8, _intp@GOTPAGEOFF]
Lloh48:
ldr x8, [x8]
ldr w1, [x8]
mov w0, #9
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _expectl
.loh AdrpLdrGotLdr Lloh46, Lloh47, Lloh48
.loh AdrpLdrGotLdr Lloh43, Lloh44, Lloh45
.loh AdrpAdd Lloh41, Lloh42
.loh AdrpLdrGotLdr Lloh38, Lloh39, Lloh40
.loh AdrpAdd Lloh36, Lloh37
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.loh AdrpLdrGotStr Lloh30, Lloh31, Lloh32
.loh AdrpLdrGotLdr Lloh27, Lloh28, Lloh29
.loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26
.loh AdrpLdrGotStr Lloh21, Lloh22, Lloh23
.loh AdrpLdrGot Lloh19, Lloh20
.loh AdrpLdrGotStr Lloh16, Lloh17, Lloh18
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGotStr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "global variable"
.comm _defaultint,4,2 ; @defaultint
.comm _val,4,2 ; @val
.comm _p1,8,3 ; @p1
.comm _a1,8,3 ; @a1
.comm _a2,8,3 ; @a2
.comm _x1,4,2 ; @x1
.comm _x2,4,2 ; @x2
.comm _x3,4,2 ; @x3
.comm _x4,4,2 ; @x4
.comm _x5,4,2 ; @x5
.comm _x6,4,2 ; @x6
l_.str.1: ; @.str.1
.asciz "abcd"
.comm _s1,4,2 ; @s1
l_.str.2: ; @.str.2
.asciz "ABCD"
.comm _s2,4,2 ; @s2
.comm _l1,4,2 ; @l1
.comm _intp,8,3 ; @intp
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_global.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
popq %rbp
jmp _print ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "import"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
b _print
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "import"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_import.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
popq %rbp
jmp _print ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "include guard"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
b _print
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "include guard"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_includeguard.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_array
_test_array: ## @test_array
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
subq $344, %rsp ## imm = 0x158
.cfi_offset %rbx, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movl $1, %edi
movl $1, %esi
callq _expect
movl $3, %edi
movl $3, %esi
callq _expect
movl $5, %edi
movl $5, %esi
callq _expect
movaps l___const.test_array.ye+32(%rip), %xmm0
movaps %xmm0, -32(%rbp)
movaps l___const.test_array.ye+16(%rip), %xmm0
movaps %xmm0, -48(%rbp)
movaps l___const.test_array.ye(%rip), %xmm0
movaps %xmm0, -64(%rbp)
movaps l___const.test_array.y2+32(%rip), %xmm0
movaps %xmm0, -80(%rbp)
movaps l___const.test_array.y2+16(%rip), %xmm0
movaps %xmm0, -96(%rbp)
movaps l___const.test_array.y2(%rip), %xmm0
movaps %xmm0, -112(%rbp)
leaq -64(%rbp), %rbx
leaq -112(%rbp), %rsi
movq %rbx, %rdi
movl $12, %edx
callq _verify
movaps l___const.test_array.y2+32(%rip), %xmm0
movaps %xmm0, -128(%rbp)
movaps l___const.test_array.y2+16(%rip), %xmm0
movaps %xmm0, -144(%rbp)
movaps l___const.test_array.y2(%rip), %xmm0
movaps %xmm0, -160(%rbp)
leaq -160(%rbp), %rsi
movq %rbx, %rdi
movl $12, %edx
callq _verify
xorps %xmm0, %xmm0
movaps %xmm0, -208(%rbp)
movaps %xmm0, -192(%rbp)
movaps %xmm0, -176(%rbp)
movl $1, -208(%rbp)
movl $2, -196(%rbp)
movl $3, -184(%rbp)
movl $4, -172(%rbp)
movaps %xmm0, -256(%rbp)
movaps %xmm0, -240(%rbp)
movaps %xmm0, -224(%rbp)
movl $1, -256(%rbp)
movl $2, -244(%rbp)
movl $3, -232(%rbp)
movl $4, -220(%rbp)
leaq -208(%rbp), %rdi
leaq -256(%rbp), %rsi
movl $12, %edx
callq _verify
xorps %xmm0, %xmm0
movaps %xmm0, -304(%rbp)
movaps %xmm0, -288(%rbp)
movaps %xmm0, -272(%rbp)
movw $1, -304(%rbp)
movl $196610, -292(%rbp) ## imm = 0x30002
movl $327684, -280(%rbp) ## imm = 0x50004
movw $6, -276(%rbp)
movaps %xmm0, -352(%rbp)
movaps %xmm0, -336(%rbp)
movaps %xmm0, -320(%rbp)
movw $1, -352(%rbp)
movl $196610, -340(%rbp) ## imm = 0x30002
movl $327684, -328(%rbp) ## imm = 0x50004
movw $6, -324(%rbp)
leaq -304(%rbp), %rdi
leaq -352(%rbp), %rsi
movl $24, %edx
callq _verify_short
movl $3, %edi
movl $3, %esi
callq _expect
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -16(%rbp), %rax
jne LBB0_2
## %bb.1:
addq $344, %rsp ## imm = 0x158
popq %rbx
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4 ## @__const.test_array.ye
l___const.test_array.ye:
.long 1 ## 0x1
.long 3 ## 0x3
.long 5 ## 0x5
.long 2 ## 0x2
.long 4 ## 0x4
.long 6 ## 0x6
.long 3 ## 0x3
.long 5 ## 0x5
.long 7 ## 0x7
.long 0 ## 0x0
.long 0 ## 0x0
.long 0 ## 0x0
.p2align 4 ## @__const.test_array.y2
l___const.test_array.y2:
.long 1 ## 0x1
.long 3 ## 0x3
.long 5 ## 0x5
.long 2 ## 0x2
.long 4 ## 0x4
.long 6 ## 0x6
.long 3 ## 0x3
.long 5 ## 0x5
.long 7 ## 0x7
.space 12
.no_dead_strip _test_array
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_array
_test_array: ; @test_array
.cfi_startproc
; %bb.0:
sub sp, sp, #448
.cfi_def_cfa_offset 448
stp x22, x21, [sp, #400] ; 16-byte Folded Spill
stp x20, x19, [sp, #416] ; 16-byte Folded Spill
stp x29, x30, [sp, #432] ; 16-byte Folded Spill
add x29, sp, #432
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
add x21, sp, #192
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-40]
mov w19, #1
mov w0, #1
mov w1, #1
bl _expect
mov w20, #3
mov w0, #3
mov w1, #3
bl _expect
mov w0, #5
mov w1, #5
bl _expect
Lloh3:
adrp x8, l___const.test_array.ye@PAGE
Lloh4:
add x8, x8, l___const.test_array.ye@PAGEOFF
ldp q0, q1, [x8]
stp q0, q1, [x29, #-96]
ldr q0, [x8, #32]
stur q0, [x29, #-64]
Lloh5:
adrp x8, l___const.test_array.y2@PAGE
Lloh6:
add x8, x8, l___const.test_array.y2@PAGEOFF
ldp q0, q1, [x8]
stp q0, q1, [sp, #16] ; 32-byte Folded Spill
stp q0, q1, [x29, #-144]
ldr q0, [x8, #32]
str q0, [sp] ; 16-byte Folded Spill
stur q0, [x29, #-112]
sub x0, x29, #96
sub x1, x29, #144
mov w2, #12
bl _verify
ldr q2, [sp, #16] ; 16-byte Folded Reload
ldr q0, [sp, #32] ; 16-byte Folded Reload
stp q2, q0, [x29, #-192]
ldr q0, [sp] ; 16-byte Folded Reload
stur q0, [x29, #-160]
sub x0, x29, #96
sub x1, x29, #192
mov w2, #12
bl _verify
movi.2d v0, #0000000000000000
stur q0, [x21, #4]
stur q0, [x21, #20]
str q0, [sp, #224]
mov w8, #2
str w19, [sp, #192]
str w8, [sp, #204]
str w20, [sp, #216]
mov w9, #4
str w9, [sp, #228]
stur q0, [sp, #148]
stur q0, [sp, #164]
str q0, [sp, #176]
str w19, [sp, #144]
str w8, [sp, #156]
str w20, [sp, #168]
str w9, [sp, #180]
add x0, sp, #192
add x1, sp, #144
mov w2, #12
bl _verify
movi.2d v0, #0000000000000000
stur q0, [sp, #98]
stur q0, [sp, #114]
str q0, [sp, #128]
strh w19, [sp, #96]
mov w8, #2
movk w8, #3, lsl #16
str w8, [sp, #108]
mov w9, #4
movk w9, #5, lsl #16
str w9, [sp, #120]
mov w10, #6
strh w10, [sp, #124]
stur q0, [sp, #50]
stur q0, [sp, #66]
str q0, [sp, #80]
strh w19, [sp, #48]
str w8, [sp, #60]
str w9, [sp, #72]
strh w10, [sp, #76]
add x0, sp, #96
add x1, sp, #48
mov w2, #24
bl _verify_short
mov w0, #3
mov w1, #3
bl _expect
ldur x8, [x29, #-40]
Lloh7:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh8:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #432] ; 16-byte Folded Reload
ldp x20, x19, [sp, #416] ; 16-byte Folded Reload
ldp x22, x21, [sp, #400] ; 16-byte Folded Reload
add sp, sp, #448
ret
LBB0_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @__const.test_array.ye
l___const.test_array.ye:
.long 1 ; 0x1
.long 3 ; 0x3
.long 5 ; 0x5
.long 2 ; 0x2
.long 4 ; 0x4
.long 6 ; 0x6
.long 3 ; 0x3
.long 5 ; 0x5
.long 7 ; 0x7
.long 0 ; 0x0
.long 0 ; 0x0
.long 0 ; 0x0
.p2align 2 ; @__const.test_array.y2
l___const.test_array.y2:
.long 1 ; 0x1
.long 3 ; 0x3
.long 5 ; 0x5
.long 2 ; 0x2
.long 4 ; 0x4
.long 6 ; 0x6
.long 3 ; 0x3
.long 5 ; 0x5
.long 7 ; 0x7
.space 12
.no_dead_strip _test_array
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_initializer.c_test_array.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_excessive
_test_excessive: ## @test_excessive
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $3, %edi
movl $3, %esi
callq _expect
movb $99, -2(%rbp)
movw $25185, -4(%rbp) ## imm = 0x6261
movl $3, %edi
movl $3, %esi
callq _expect
leaq L_.str(%rip), %rdi
leaq -4(%rbp), %rsi
movl $3, %edx
callq _strncmp
xorl %edi, %edi
movl %eax, %esi
callq _expect
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
l___const.test_excessive.x2: ## @__const.test_excessive.x2
.ascii "abc"
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "abc"
.no_dead_strip _test_excessive
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_excessive
_test_excessive: ; @test_excessive
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #3
mov w1, #3
bl _expect
mov w8, #99
sturb w8, [x29, #-2]
mov w8, #25185
sturh w8, [x29, #-4]
mov w0, #3
mov w1, #3
bl _expect
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
sub x1, x29, #4
mov w2, #3
bl _strncmp
mov x1, x0
mov w0, #0
bl _expect
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__const
l___const.test_excessive.x2: ; @__const.test_excessive.x2
.ascii "abc"
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "abc"
.no_dead_strip _test_excessive
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_initializer.c_test_excessive.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_nested
_test_nested: ## @test_nested
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, %edi
movl $1, %esi
callq _expect
movl $2, %edi
movl $2, %esi
callq _expect
movl $3, %edi
movl $3, %esi
callq _expect
movl $10, %edi
movl $10, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_nested
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_nested
_test_nested: ; @test_nested
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #1
mov w1, #1
bl _expect
mov w0, #2
mov w1, #2
bl _expect
mov w0, #3
mov w1, #3
bl _expect
mov w0, #10
mov w1, #10
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_nested
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_initializer.c_test_nested.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_primitive
_test_primitive: ## @test_primitive
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $59, %edi
movl $59, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_primitive
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_primitive
_test_primitive: ; @test_primitive
.cfi_startproc
; %bb.0:
mov w0, #59
mov w1, #59
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_primitive
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_initializer.c_test_primitive.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_struct_designator
_test_struct_designator: ## @test_struct_designator
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $5, %edi
movl $5, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $7, %edi
movl $7, %esi
callq _expect
movl $12, %edi
movl $12, %esi
callq _expect
movl $17, %edi
movl $17, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_struct_designator
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_struct_designator
_test_struct_designator: ; @test_struct_designator
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #5
mov w1, #5
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #7
mov w1, #7
bl _expect
mov w0, #12
mov w1, #12
bl _expect
mov w0, #17
mov w1, #17
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_struct_designator
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_initializer.c_test_struct_designator.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_typedef
_test_typedef: ## @test_typedef
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $2, %edi
movl $2, %esi
callq _expect
movl $3, %edi
movl $3, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_typedef
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_typedef
_test_typedef: ; @test_typedef
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #2
mov w1, #2
bl _expect
mov w0, #3
mov w1, #3
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_typedef
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_initializer.c_test_typedef.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _test_array
xorl %eax, %eax
callq _test_string
xorl %eax, %eax
callq _test_struct
xorl %eax, %eax
callq _test_primitive
xorl %eax, %eax
callq _test_nested
xorl %eax, %eax
callq _test_array_designator
xorl %eax, %eax
callq _test_struct_designator
xorl %eax, %eax
callq _test_complex_designator
xorl %eax, %eax
callq _test_zero
xorl %eax, %eax
callq _test_typedef
xorl %eax, %eax
popq %rbp
jmp _test_excessive ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "initializer"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _test_array
bl _test_string
bl _test_struct
bl _test_primitive
bl _test_nested
bl _test_array_designator
bl _test_struct_designator
bl _test_complex_designator
bl _test_zero
bl _test_typedef
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _test_excessive
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "initializer"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_initializer.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function verify
_verify: ## @verify
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
testl %edx, %edx
jle LBB0_3
## %bb.1:
movq %rsi, %r14
movq %rdi, %r15
movl %edx, %r12d
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl (%r15,%rbx,4), %edi
movl (%r14,%rbx,4), %esi
callq _expect
incq %rbx
cmpq %rbx, %r12
jne LBB0_2
LBB0_3:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _verify
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function verify
_verify: ; @verify
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
cmp w2, #1
b.lt LBB0_3
; %bb.1:
mov x19, x1
mov x20, x0
mov w21, w2
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr w0, [x20], #4
ldr w1, [x19], #4
bl _expect
subs x21, x21, #1
b.ne LBB0_2
LBB0_3:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _verify
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_initializer.c_verify.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function verify_short
_verify_short: ## @verify_short
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
testl %edx, %edx
jle LBB0_3
## %bb.1:
movq %rsi, %r14
movq %rdi, %r15
movl %edx, %r12d
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movswl (%r15,%rbx,2), %edi
movswl (%r14,%rbx,2), %esi
callq _expect
incq %rbx
cmpq %rbx, %r12
jne LBB0_2
LBB0_3:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _verify_short
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function verify_short
_verify_short: ; @verify_short
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
cmp w2, #1
b.lt LBB0_3
; %bb.1:
mov x19, x1
mov x20, x0
mov w21, w2
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldrsh w0, [x20], #2
ldrsh w1, [x19], #2
bl _expect
subs x21, x21, #1
b.ne LBB0_2
LBB0_3:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _verify_short
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_initializer.c_verify_short.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function expects
_expects: ## @expects
.cfi_startproc
## %bb.0:
cmpw %si, %di
jne LBB0_2
## %bb.1:
retq
LBB0_2:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movswl %si, %r14d
movswl %di, %ebx
leaq L_str(%rip), %rdi
callq _puts
leaq L_.str.1(%rip), %rdi
movl %ebx, %esi
movl %r14d, %edx
xorl %eax, %eax
callq _printf
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str.1: ## @.str.1
.asciz " %d expected, but got %d\n"
L_str: ## @str
.asciz "Failed"
.no_dead_strip _expects
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function expects
_expects: ; @expects
.cfi_startproc
; %bb.0:
; kill: def $w1 killed $w1 def $x1
; kill: def $w0 killed $w0 def $x0
cmp w0, w1
b.ne LBB0_2
; %bb.1:
ret
LBB0_2:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
Lloh0:
adrp x8, l_str@PAGE
Lloh1:
add x8, x8, l_str@PAGEOFF
mov x19, x0
mov x0, x8
mov x20, x1
bl _puts
sxtw x8, w20
sxtw x9, w19
stp x9, x8, [sp]
Lloh2:
adrp x0, l_.str.1@PAGE
Lloh3:
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w0, #1
bl _exit
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str.1: ; @.str.1
.asciz " %d expected, but got %d\n"
l_str: ; @str
.asciz "Failed"
.no_dead_strip _expects
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_int.c_expects.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
movl $25, %edi
movl $25, %esi
callq _expects
movl $20, %edi
movl $20, %esi
callq _expects
movl $67, %edi
movl $67, %esi
callq _expectl
movl $136, %edi
movl $136, %esi
callq _expectl
movl $10, %edi
movl $10, %esi
callq _expectl
movl $-1, %edi
movl $-1, %esi
callq _expectl
xorl %edi, %edi
xorl %esi, %esi
callq _expectl
movl $1, %edi
movl $1, %esi
popq %rbp
jmp _expectl ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "long"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
mov w0, #25
mov w1, #25
bl _expects
mov w0, #20
mov w1, #20
bl _expects
mov w0, #67
mov w1, #67
bl _expectl
mov w0, #136
mov w1, #136
bl _expectl
mov w0, #10
mov w1, #10
bl _expectl
mov w0, #-1
mov w1, #-1
bl _expectl
mov w0, #0
mov w1, #0
bl _expectl
mov w0, #1
mov w1, #1
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expectl
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "long"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_int.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function newline
_newline: ## @newline
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _newline
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function newline
_newline: ; @newline
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.no_dead_strip _newline
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_lex.c_newline.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _digraph
xorl %eax, %eax
callq _escape
xorl %eax, %eax
callq _whitespace
xorl %eax, %eax
callq _newline
xorl %eax, %eax
popq %rbp
jmp _dollar ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "lexer"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _digraph
bl _escape
bl _whitespace
bl _newline
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _dollar
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "lexer"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_lex.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_char
_test_char: ## @test_char
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $65, %edi
movl $65, %esi
callq _expect
movl $97, %edi
movl $97, %esi
callq _expect
movl $7, %edi
movl $7, %esi
callq _expect
movl $8, %edi
movl $8, %esi
callq _expect
movl $12, %edi
movl $12, %esi
callq _expect
movl $10, %edi
movl $10, %esi
callq _expect
movl $13, %edi
movl $13, %esi
callq _expect
movl $9, %edi
movl $9, %esi
callq _expect
movl $11, %edi
movl $11, %esi
callq _expect
movl $27, %edi
movl $27, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $7, %edi
movl $7, %esi
callq _expect
movl $15, %edi
movl $15, %esi
callq _expect
movl $-99, %edi
movl $-99, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $-1, %edi
movl $-1, %esi
callq _expect
movl $15, %edi
movl $15, %esi
callq _expect
movl $18, %edi
movl $18, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_char
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_char
_test_char: ; @test_char
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #65
mov w1, #65
bl _expect
mov w0, #97
mov w1, #97
bl _expect
mov w0, #7
mov w1, #7
bl _expect
mov w0, #8
mov w1, #8
bl _expect
mov w0, #12
mov w1, #12
bl _expect
mov w0, #10
mov w1, #10
bl _expect
mov w0, #13
mov w1, #13
bl _expect
mov w0, #9
mov w1, #9
bl _expect
mov w0, #11
mov w1, #11
bl _expect
mov w0, #27
mov w1, #27
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #7
mov w1, #7
bl _expect
mov w0, #15
mov w1, #15
bl _expect
mov w0, #-99
mov w1, #-99
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #-1
mov w1, #-1
bl _expect
mov w0, #15
mov w1, #15
bl _expect
mov w0, #18
mov w1, #18
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_char
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_literal.c_test_char.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_string
_test_string: ## @test_string
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -24
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
leaq L_.str(%rip), %rbx
movq %rbx, %rdi
movq %rbx, %rsi
callq _expect_string
movq %rbx, %rdi
movq %rbx, %rsi
callq _expect_string
movl $97, %edi
movl $97, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
leaq L_.str.1(%rip), %rdi
movq %rdi, %rsi
callq _expect_string
leaq L_.str.2(%rip), %rdi
movq %rdi, %rsi
callq _expect_string
movaps L_.str.3(%rip), %xmm0
movaps %xmm0, -32(%rbp)
leaq L_.str.3(%rip), %rsi
leaq -32(%rbp), %rdi
callq _expect_string
movl $99, %edi
movl $99, %esi
callq _expect
movl $12354, %edi ## imm = 0x3042
movl $12354, %esi ## imm = 0x3042
callq _expect
movl $12354, %edi ## imm = 0x3042
movl $12354, %esi ## imm = 0x3042
callq _expect
movl $12354, %edi ## imm = 0x3042
movl $12354, %esi ## imm = 0x3042
callq _expect
movl $10, %edi
movl $10, %esi
callq _expect
movl $10, %edi
movl $10, %esi
callq _expect
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -16(%rbp), %rax
jne LBB0_2
## %bb.1:
addq $24, %rsp
popq %rbx
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "abc"
L_.str.1: ## @.str.1
.asciz "abcd"
L_.str.2: ## @.str.2
.asciz "abcdef"
.p2align 4 ## @.str.3
L_.str.3:
.asciz "Aa\007\b\f\n\r\t\013\033\007\017\235\377\022"
.no_dead_strip _test_string
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_string
_test_string: ; @test_string
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x20, x19, [sp, #32] ; 16-byte Folded Spill
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
str x8, [sp, #24]
Lloh3:
adrp x19, l_.str@PAGE
Lloh4:
add x19, x19, l_.str@PAGEOFF
mov x0, x19
mov x1, x19
bl _expect_string
mov x0, x19
mov x1, x19
bl _expect_string
mov w0, #97
mov w1, #97
bl _expect
mov w0, #0
mov w1, #0
bl _expect
Lloh5:
adrp x0, l_.str.1@PAGE
Lloh6:
add x0, x0, l_.str.1@PAGEOFF
mov x1, x0
bl _expect_string
Lloh7:
adrp x0, l_.str.2@PAGE
Lloh8:
add x0, x0, l_.str.2@PAGEOFF
mov x1, x0
bl _expect_string
Lloh9:
adrp x1, l_.str.3@PAGE
Lloh10:
add x1, x1, l_.str.3@PAGEOFF
ldr q0, [x1]
str q0, [sp]
mov x0, sp
bl _expect_string
mov w0, #99
mov w1, #99
bl _expect
mov w0, #12354
mov w1, #12354
bl _expect
mov w0, #12354
mov w1, #12354
bl _expect
mov w0, #12354
mov w1, #12354
bl _expect
mov w0, #10
mov w1, #10
bl _expect
mov w0, #10
mov w1, #10
bl _expect
ldr x8, [sp, #24]
Lloh11:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh12:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
ldp x20, x19, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #64
ret
LBB0_2:
bl ___stack_chk_fail
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.loh AdrpAdd Lloh9, Lloh10
.loh AdrpAdd Lloh7, Lloh8
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "abc"
l_.str.1: ; @.str.1
.asciz "abcd"
l_.str.2: ; @.str.2
.asciz "abcdef"
l_.str.3: ; @.str.3
.asciz "Aa\007\b\f\n\r\t\013\033\007\017\235\377\022"
.no_dead_strip _test_string
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_literal.c_test_string.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_ucn
_test_ucn: ## @test_ucn
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
movl $36, %edi
movl $36, %esi
callq _expect
movl $36, %edi
movl $36, %esi
callq _expect
leaq L_.str(%rip), %rbx
movq %rbx, %rdi
movq %rbx, %rsi
callq _expect_string
movq %rbx, %rdi
movq %rbx, %rsi
callq _expect_string
movl $88, %edi
movl $88, %esi
callq _expect
movl $88, %edi
movl $88, %esi
callq _expect
movl $88, %edi
movl $88, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "$"
.no_dead_strip _test_ucn
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_ucn
_test_ucn: ; @test_ucn
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov w0, #36
mov w1, #36
bl _expect
mov w0, #36
mov w1, #36
bl _expect
Lloh0:
adrp x19, l_.str@PAGE
Lloh1:
add x19, x19, l_.str@PAGEOFF
mov x0, x19
mov x1, x19
bl _expect_string
mov x0, x19
mov x1, x19
bl _expect_string
mov w0, #88
mov w1, #88
bl _expect
mov w0, #88
mov w1, #88
bl _expect
mov w0, #88
mov w1, #88
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _expect
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "$"
.no_dead_strip _test_ucn
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_literal.c_test_ucn.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _test_char
xorl %eax, %eax
callq _test_string
xorl %eax, %eax
callq _test_mbstring
xorl %eax, %eax
callq _test_float
xorl %eax, %eax
callq _test_ucn
xorl %eax, %eax
popq %rbp
jmp _test_compound ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "literal"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _test_char
bl _test_string
bl _test_mbstring
bl _test_float
bl _test_ucn
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _test_compound
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "literal"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_literal.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function const_expr
_const_expr: ## @const_expr
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $2, %edi
movl $2, %esi
callq _expect
movl $4, %edi
movl $4, %esi
callq _expect
movl $100, %edi
movl $100, %esi
callq _expect
movl $101, %edi
movl $101, %esi
callq _expect
movl $102, %edi
movl $102, %esi
callq _expect
movl $103, %edi
movl $103, %esi
callq _expect
movl $104, %edi
movl $104, %esi
callq _expect
movl $7, %edi
movl $7, %esi
callq _expect
movl $9, %edi
movl $9, %esi
callq _expect
movl $15, %edi
movl $15, %esi
callq _expect
movl $11, %edi
movl $11, %esi
callq _expect
movl $12, %edi
movl $12, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _const_expr
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function const_expr
_const_expr: ; @const_expr
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #2
mov w1, #2
bl _expect
mov w0, #4
mov w1, #4
bl _expect
mov w0, #100
mov w1, #100
bl _expect
mov w0, #101
mov w1, #101
bl _expect
mov w0, #102
mov w1, #102
bl _expect
mov w0, #103
mov w1, #103
bl _expect
mov w0, #104
mov w1, #104
bl _expect
mov w0, #7
mov w1, #7
bl _expect
mov w0, #9
mov w1, #9
bl _expect
mov w0, #15
mov w1, #15
bl _expect
mov w0, #11
mov w1, #11
bl _expect
mov w0, #12
mov w1, #12
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _const_expr
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_const_expr.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function defined
_defined: ## @defined
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, %edi
xorl %esi, %esi
callq _expect
movl $2, %edi
xorl %esi, %esi
callq _expect
movl $4, %edi
movl $4, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _defined
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function defined
_defined: ; @defined
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #1
mov w1, #0
bl _expect
mov w0, #2
mov w1, #0
bl _expect
mov w0, #4
mov w1, #4
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _defined
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_defined.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ifdef
_ifdef: ## @ifdef
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $2, %edi
movl $1, %esi
callq _expect
movl $4, %edi
movl $4, %esi
callq _expect
movl $5, %edi
movl $6, %esi
callq _expect
movl $7, %edi
movl $7, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _ifdef
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ifdef
_ifdef: ; @ifdef
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #2
mov w1, #1
bl _expect
mov w0, #4
mov w1, #4
bl _expect
mov w0, #5
mov w1, #6
bl _expect
mov w0, #7
mov w1, #7
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _ifdef
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_ifdef.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function loop
_loop: ## @loop
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, %edi
movl $1, %esi
callq _expect
movl $2, %edi
movl $2, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _loop
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function loop
_loop: ; @loop
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #1
mov w1, #1
bl _expect
mov w0, #2
mov w1, #2
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _loop
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_loop.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _minus ## -- Begin function minus
.p2align 4, 0x90
_minus: ## @minus
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, %eax
subl %esi, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _minus ; -- Begin function minus
.p2align 2
_minus: ; @minus
.cfi_startproc
; %bb.0:
sub w0, w0, w1
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_minus.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function noarg
_noarg: ## @noarg
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $55, %edi
movl $55, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _noarg
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function noarg
_noarg: ; @noarg
.cfi_startproc
; %bb.0:
mov w0, #55
mov w1, #55
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _noarg
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_noarg.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function null
_null: ## @null
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _null
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function null
_null: ; @null
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.no_dead_strip _null
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_null.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _plus ## -- Begin function plus
.p2align 4, 0x90
_plus: ## @plus
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
## kill: def $esi killed $esi def $rsi
## kill: def $edi killed $edi def $rdi
leal (%rdi,%rsi), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _plus ; -- Begin function plus
.p2align 2
_plus: ; @plus
.cfi_startproc
; %bb.0:
add w0, w1, w0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_plus.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function simple
_simple: ## @simple
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _ONE@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $1, %edi
callq _expect
movq _TWO@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $2, %edi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.comm _ONE,4,2 ## @ONE
.comm _TWO,4,2 ## @TWO
.no_dead_strip _simple
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function simple
_simple: ; @simple
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x8, _ONE@GOTPAGE
Lloh1:
ldr x8, [x8, _ONE@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
mov w0, #1
bl _expect
Lloh3:
adrp x8, _TWO@GOTPAGE
Lloh4:
ldr x8, [x8, _TWO@GOTPAGEOFF]
Lloh5:
ldr w1, [x8]
mov w0, #2
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _ONE,4,2 ; @ONE
.comm _TWO,4,2 ; @TWO
.no_dead_strip _simple
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_simple.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _special
xorl %eax, %eax
callq _include
xorl %eax, %eax
callq _predefined
xorl %eax, %eax
callq _simple
xorl %eax, %eax
callq _loop
xorl %eax, %eax
callq _undef
xorl %eax, %eax
callq _cond_incl
xorl %eax, %eax
callq _const_expr
xorl %eax, %eax
callq _defined
xorl %eax, %eax
callq _ifdef
xorl %eax, %eax
callq _funclike
xorl %eax, %eax
callq _empty
xorl %eax, %eax
callq _noarg
xorl %eax, %eax
callq _null
xorl %eax, %eax
callq _counter
xorl %eax, %eax
popq %rbp
jmp _gnuext ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "macros"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _special
bl _include
bl _predefined
bl _simple
bl _loop
bl _undef
bl _cond_incl
bl _const_expr
bl _defined
bl _ifdef
bl _funclike
bl _empty
bl _noarg
bl _null
bl _counter
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _gnuext
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "macros"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function undef
_undef: ## @undef
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $10, %edi
movl $10, %esi
callq _expect
movl $3, %edi
movl $3, %esi
callq _expect
movl $16, %edi
movl $16, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _undef
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function undef
_undef: ; @undef
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #10
mov w1, #10
bl _expect
mov w0, #3
mov w1, #3
bl _expect
mov w0, #16
mov w1, #16
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _undef
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_macro.c_undef.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_noreturn.c_f3.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
popq %rbp
jmp _print ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "noreturn"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
b _print
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "noreturn"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_noreturn.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _no_declaration ## -- Begin function no_declaration
.p2align 4, 0x90
_no_declaration: ## @no_declaration
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $3, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _no_declaration ; -- Begin function no_declaration
.p2align 2
_no_declaration: ; @no_declaration
.cfi_startproc
; %bb.0:
mov w0, #3
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_oldstyle.c_no_declaration.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _oldstyle2 ## -- Begin function oldstyle2
.p2align 4, 0x90
_oldstyle2: ## @oldstyle2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $4, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _oldstyle2 ; -- Begin function oldstyle2
.p2align 2
_oldstyle2: ; @oldstyle2
.cfi_startproc
; %bb.0:
mov w0, #4
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_oldstyle.c_oldstyle2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function testmain
LCPI0_0:
.quad 0x4010000000000000 ## double 4
.section __TEXT,__text,regular,pure_instructions
.globl _testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _no_declaration
movl $3, %edi
movl %eax, %esi
callq _expect
movl $3, %edi
movl $4, %esi
callq _oldstyle1
movl $7, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _oldstyle2
movl $4, %edi
movl %eax, %esi
callq _expect
movl $5, %edi
callq _oldstyle3
movl $5, %edi
movl %eax, %esi
callq _expect
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movl $5, %edi
callq _oldstyle4
movl $9, %edi
movl %eax, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "K&R"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _no_declaration
mov x1, x0
mov w0, #3
bl _expect
mov w0, #3
mov w1, #4
bl _oldstyle1
mov x1, x0
mov w0, #7
bl _expect
bl _oldstyle2
mov x1, x0
mov w0, #4
bl _expect
mov w0, #5
bl _oldstyle3
mov x1, x0
mov w0, #5
bl _expect
fmov d0, #4.00000000
mov w0, #5
bl _oldstyle4
mov x1, x0
mov w0, #9
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "K&R"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_oldstyle.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function compare
_compare: ## @compare
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $4, %edi
movl $4, %esi
callq _expect
movl $4, %edi
movl $4, %esi
callq _expect
movl $4, %edi
movl $4, %esi
callq _expect
movl $4, %edi
movl $4, %esi
callq _expect
movl $4, %edi
movl $4, %esi
callq _expect
movl $4, %edi
movl $4, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _compare
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function compare
_compare: ; @compare
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #4
mov w1, #4
bl _expect
mov w0, #4
mov w1, #4
bl _expect
mov w0, #4
mov w1, #4
bl _expect
mov w0, #4
mov w1, #4
bl _expect
mov w0, #4
mov w1, #4
bl _expect
mov w0, #4
mov w1, #4
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _compare
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_pointer.c_compare.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function subtract
_subtract: ## @subtract
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $8, %edi
movl $8, %esi
callq _expect
movl $5, %edi
movl $5, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _subtract
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function subtract
_subtract: ; @subtract
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #8
mov w1, #8
bl _expect
mov w0, #5
mov w1, #5
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _subtract
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_pointer.c_subtract.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t1
_t1: ## @t1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $61, %edi
movl $61, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t1
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t1
_t1: ; @t1
.cfi_startproc
; %bb.0:
mov w0, #61
mov w1, #61
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t1
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_pointer.c_t1.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t2
_t2: ## @t2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $97, %edi
movl $97, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t2
_t2: ; @t2
.cfi_startproc
; %bb.0:
mov w0, #97
mov w1, #97
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t2
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_pointer.c_t2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t3
_t3: ## @t3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $98, %edi
movl $98, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t3
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t3
_t3: ; @t3
.cfi_startproc
; %bb.0:
mov w0, #98
mov w1, #98
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t3
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_pointer.c_t3.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t4
_t4: ## @t4
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $122, %edi
movl $122, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t4
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t4
_t4: ; @t4
.cfi_startproc
; %bb.0:
mov w0, #122
mov w1, #122
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t4
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_pointer.c_t4.c
|
anghabench
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.