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 pop_float_args
_pop_float_args: ## @pop_float_args
.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
testl %edi, %edi
jle LBB0_3
## %bb.1:
movl %edi, %ebx
incl %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
leal -2(%rbx), %edi
callq _pop_xmm
decl %ebx
cmpl $1, %ebx
ja LBB0_2
LBB0_3:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SAVE,4,2 ## @SAVE
.no_dead_strip _pop_float_args
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function pop_float_args
_pop_float_args: ; @pop_float_args
.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
cmp w0, #1
b.lt LBB0_3
; %bb.1:
add w19, w0, #1
LBB0_2: ; =>This Inner Loop Header: Depth=1
sub w0, w19, #2
bl _pop_xmm
sub w19, w19, #1
cmp w19, #1
b.hi LBB0_2
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _SAVE,4,2 ; @SAVE
.no_dead_strip _pop_float_args
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_pop_float_args.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function pop_function
_pop_function: ## @pop_function
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _dumpstack@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_1
## %bb.2:
movq _functions@GOTPCREL(%rip), %rax
movl (%rax), %edi
popq %rbp
jmp _vec_pop ## TAILCALL
LBB0_1:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _dumpstack,8,3 ## @dumpstack
.comm _functions,4,2 ## @functions
.no_dead_strip _pop_function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function pop_function
_pop_function: ; @pop_function
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _dumpstack@GOTPAGE
Lloh1:
ldr x8, [x8, _dumpstack@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
cbz x8, LBB0_2
; %bb.1:
Lloh3:
adrp x8, _functions@GOTPAGE
Lloh4:
ldr x8, [x8, _functions@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
b _vec_pop
LBB0_2:
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _dumpstack,8,3 ; @dumpstack
.comm _functions,4,2 ; @functions
.no_dead_strip _pop_function
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_pop_function.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function pop_int_args
_pop_int_args: ## @pop_int_args
.cfi_startproc
## %bb.0:
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
testl %edi, %edi
jle LBB0_3
## %bb.1:
movl %edi, %ebx
incq %rbx
movq _REGS@GOTPCREL(%rip), %r14
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
leal -2(%rbx), %eax
movq (%r14), %rcx
movl (%rcx,%rax,4), %edi
callq _pop
decq %rbx
cmpq $1, %rbx
ja LBB0_2
LBB0_3:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SAVE,4,2 ## @SAVE
.comm _REGS,8,3 ## @REGS
.no_dead_strip _pop_int_args
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function pop_int_args
_pop_int_args: ; @pop_int_args
.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
cmp w0, #1
b.lt LBB0_3
; %bb.1:
mov w8, w0
add x19, x8, #1
Lloh0:
adrp x20, _REGS@GOTPAGE
Lloh1:
ldr x20, [x20, _REGS@GOTPAGEOFF]
LBB0_2: ; =>This Inner Loop Header: Depth=1
sub w8, w19, #2
ldr x9, [x20]
ldr w0, [x9, w8, uxtw #2]
bl _pop
sub x19, x19, #1
cmp x19, #1
b.hi LBB0_2
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _SAVE,4,2 ; @SAVE
.comm _REGS,8,3 ; @REGS
.no_dead_strip _pop_int_args
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_pop_int_args.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function pop_xmm
_pop_xmm: ## @pop_xmm
.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
xorl %eax, %eax
callq _emit
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
callq _emit
movq _stackpos@GOTPCREL(%rip), %rax
movq (%rax), %rcx
leaq -8(%rcx), %rdx
movq %rdx, (%rax)
xorl %edi, %edi
cmpq $8, %rcx
setge %dil
popq %rbp
jmp _assert ## TAILCALL
.cfi_endproc
## -- End function
.comm _SAVE,4,2 ## @SAVE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "movsd (#rsp), #xmm%d"
L_.str.1: ## @.str.1
.asciz "add $8, #rsp"
.comm _stackpos,8,3 ## @stackpos
.no_dead_strip _pop_xmm
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function pop_xmm
_pop_xmm: ; @pop_xmm
.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
; kill: def $w0 killed $w0 def $x0
str x0, [sp]
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _emit
Lloh2:
adrp x0, l_.str.1@PAGE
Lloh3:
add x0, x0, l_.str.1@PAGEOFF
bl _emit
Lloh4:
adrp x8, _stackpos@GOTPAGE
Lloh5:
ldr x8, [x8, _stackpos@GOTPAGEOFF]
ldr x9, [x8]
sub x10, x9, #8
str x10, [x8]
cmp x9, #7
cset w0, gt
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
b _assert
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _SAVE,4,2 ; @SAVE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "movsd (#rsp), #xmm%d"
l_.str.1: ; @.str.1
.asciz "add $8, #rsp"
.comm _stackpos,8,3 ; @stackpos
.no_dead_strip _pop_xmm
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_pop_xmm.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function push
_push: ## @push
.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, %rsi
leaq L_.str(%rip), %rdi
callq _emit
movq _stackpos@GOTPCREL(%rip), %rax
addl $8, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SAVE,4,2 ## @SAVE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "push #%s"
.comm _stackpos,4,2 ## @stackpos
.no_dead_strip _push
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function push
_push: ; @push
.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 x1, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _emit
Lloh2:
adrp x8, _stackpos@GOTPAGE
Lloh3:
ldr x8, [x8, _stackpos@GOTPAGEOFF]
ldr w9, [x8]
add w9, w9, #8
str w9, [x8]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _SAVE,4,2 ; @SAVE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "push #%s"
.comm _stackpos,4,2 ; @stackpos
.no_dead_strip _push
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_push.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function push_struct
_push_struct: ## @push_struct
.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 %edi, %r15d
movl $8, %esi
callq _align
movl %eax, %r14d
leaq L_.str(%rip), %rdi
xorl %ebx, %ebx
movl %eax, %esi
xorl %eax, %eax
callq _emit
leaq L_.str.1(%rip), %rdi
xorl %eax, %eax
callq _emit
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
callq _emit
leaq L_.str.3(%rip), %rdi
xorl %eax, %eax
callq _emit
testl %r15d, %r15d
jle LBB0_3
## %bb.1:
leaq L_.str.4(%rip), %r12
leaq L_.str.5(%rip), %r13
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r12, %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _emit
movq %r13, %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _emit
addl $8, %ebx
cmpl %r15d, %ebx
jl LBB0_2
LBB0_3:
cmpl %r15d, %ebx
jge LBB0_6
## %bb.4:
leaq L_.str.6(%rip), %r12
leaq L_.str.7(%rip), %r13
.p2align 4, 0x90
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq %r12, %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _emit
movq %r13, %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _emit
addl $4, %ebx
cmpl %r15d, %ebx
jl LBB0_5
LBB0_6:
cmpl %r15d, %ebx
jge LBB0_9
## %bb.7:
leaq L_.str.8(%rip), %r12
leaq L_.str.9(%rip), %r13
.p2align 4, 0x90
LBB0_8: ## =>This Inner Loop Header: Depth=1
movq %r12, %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _emit
movq %r13, %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _emit
incl %ebx
cmpl %ebx, %r15d
jne LBB0_8
LBB0_9:
leaq L_.str.10(%rip), %rdi
xorl %eax, %eax
callq _emit
leaq L_.str.11(%rip), %rdi
xorl %eax, %eax
callq _emit
movq _stackpos@GOTPCREL(%rip), %rax
addl %r14d, (%rax)
movl %r14d, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SAVE,4,2 ## @SAVE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "sub $%d, #rsp"
L_.str.1: ## @.str.1
.asciz "mov #rcx, -8(#rsp)"
L_.str.2: ## @.str.2
.asciz "mov #r11, -16(#rsp)"
L_.str.3: ## @.str.3
.asciz "mov #rax, #rcx"
L_.str.4: ## @.str.4
.asciz "movq %d(#rcx), #r11"
L_.str.5: ## @.str.5
.asciz "mov #r11, %d(#rsp)"
L_.str.6: ## @.str.6
.asciz "movl %d(#rcx), #r11"
L_.str.7: ## @.str.7
.asciz "movl #r11d, %d(#rsp)"
L_.str.8: ## @.str.8
.asciz "movb %d(#rcx), #r11"
L_.str.9: ## @.str.9
.asciz "movb #r11b, %d(#rsp)"
L_.str.10: ## @.str.10
.asciz "mov -8(#rsp), #rcx"
L_.str.11: ## @.str.11
.asciz "mov -16(#rsp), #r11"
.comm _stackpos,4,2 ## @stackpos
.no_dead_strip _push_struct
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function push_struct
_push_struct: ; @push_struct
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.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
mov x20, x0
mov w1, #8
bl _align
mov x19, x0
str x19, [sp]
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _emit
Lloh2:
adrp x0, l_.str.1@PAGE
Lloh3:
add x0, x0, l_.str.1@PAGEOFF
bl _emit
Lloh4:
adrp x0, l_.str.2@PAGE
Lloh5:
add x0, x0, l_.str.2@PAGEOFF
bl _emit
Lloh6:
adrp x0, l_.str.3@PAGE
Lloh7:
add x0, x0, l_.str.3@PAGEOFF
bl _emit
cmp w20, #1
b.lt LBB0_7
; %bb.1:
mov w23, #0
Lloh8:
adrp x21, l_.str.4@PAGE
Lloh9:
add x21, x21, l_.str.4@PAGEOFF
Lloh10:
adrp x22, l_.str.5@PAGE
Lloh11:
add x22, x22, l_.str.5@PAGEOFF
LBB0_2: ; =>This Inner Loop Header: Depth=1
str x23, [sp]
mov x0, x21
bl _emit
str x23, [sp]
mov x0, x22
bl _emit
add w23, w23, #8
cmp w23, w20
b.lt LBB0_2
; %bb.3:
cmp w23, w20
b.ge LBB0_8
LBB0_4:
Lloh12:
adrp x21, l_.str.6@PAGE
Lloh13:
add x21, x21, l_.str.6@PAGEOFF
; kill: def $w23 killed $w23 killed $x23 def $x23
Lloh14:
adrp x22, l_.str.7@PAGE
Lloh15:
add x22, x22, l_.str.7@PAGEOFF
LBB0_5: ; =>This Inner Loop Header: Depth=1
str x23, [sp]
mov x0, x21
bl _emit
str x23, [sp]
mov x0, x22
bl _emit
add w23, w23, #4
cmp w23, w20
b.lt LBB0_5
; %bb.6:
cmp w23, w20
b.lt LBB0_9
b LBB0_11
LBB0_7:
mov w23, #0
cmp w23, w20
b.lt LBB0_4
LBB0_8:
; kill: def $w23 killed $w23 killed $x23 def $x23
cmp w23, w20
b.ge LBB0_11
LBB0_9:
Lloh16:
adrp x21, l_.str.8@PAGE
Lloh17:
add x21, x21, l_.str.8@PAGEOFF
; kill: def $w23 killed $w23 killed $x23 def $x23
Lloh18:
adrp x22, l_.str.9@PAGE
Lloh19:
add x22, x22, l_.str.9@PAGEOFF
LBB0_10: ; =>This Inner Loop Header: Depth=1
str x23, [sp]
mov x0, x21
bl _emit
str x23, [sp]
mov x0, x22
bl _emit
add w23, w23, #1
cmp w20, w23
b.ne LBB0_10
LBB0_11:
Lloh20:
adrp x0, l_.str.10@PAGE
Lloh21:
add x0, x0, l_.str.10@PAGEOFF
bl _emit
Lloh22:
adrp x0, l_.str.11@PAGE
Lloh23:
add x0, x0, l_.str.11@PAGEOFF
bl _emit
Lloh24:
adrp x8, _stackpos@GOTPAGE
Lloh25:
ldr x8, [x8, _stackpos@GOTPAGEOFF]
ldr w9, [x8]
add w9, w9, w19
str w9, [x8]
mov x0, x19
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
add sp, sp, #80
ret
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpLdrGot Lloh24, Lloh25
.loh AdrpAdd Lloh22, Lloh23
.loh AdrpAdd Lloh20, Lloh21
.cfi_endproc
; -- End function
.comm _SAVE,4,2 ; @SAVE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "sub $%d, #rsp"
l_.str.1: ; @.str.1
.asciz "mov #rcx, -8(#rsp)"
l_.str.2: ; @.str.2
.asciz "mov #r11, -16(#rsp)"
l_.str.3: ; @.str.3
.asciz "mov #rax, #rcx"
l_.str.4: ; @.str.4
.asciz "movq %d(#rcx), #r11"
l_.str.5: ; @.str.5
.asciz "mov #r11, %d(#rsp)"
l_.str.6: ; @.str.6
.asciz "movl %d(#rcx), #r11"
l_.str.7: ; @.str.7
.asciz "movl #r11d, %d(#rsp)"
l_.str.8: ; @.str.8
.asciz "movb %d(#rcx), #r11"
l_.str.9: ; @.str.9
.asciz "movb #r11b, %d(#rsp)"
l_.str.10: ; @.str.10
.asciz "mov -8(#rsp), #rcx"
l_.str.11: ; @.str.11
.asciz "mov -16(#rsp), #r11"
.comm _stackpos,4,2 ; @stackpos
.no_dead_strip _push_struct
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_push_struct.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function push_xmm
_push_xmm: ## @push_xmm
.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 %edi, %ebx
leaq L_.str(%rip), %rdi
xorl %eax, %eax
callq _emit
leaq L_.str.1(%rip), %rdi
movl %ebx, %esi
xorl %eax, %eax
callq _emit
movq _stackpos@GOTPCREL(%rip), %rax
addl $8, (%rax)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SAVE,4,2 ## @SAVE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "sub $8, #rsp"
L_.str.1: ## @.str.1
.asciz "movsd #xmm%d, (#rsp)"
.comm _stackpos,4,2 ## @stackpos
.no_dead_strip _push_xmm
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function push_xmm
_push_xmm: ; @push_xmm
.cfi_startproc
; %bb.0:
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
mov x19, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _emit
str x19, [sp]
Lloh2:
adrp x0, l_.str.1@PAGE
Lloh3:
add x0, x0, l_.str.1@PAGEOFF
bl _emit
Lloh4:
adrp x8, _stackpos@GOTPAGE
Lloh5:
ldr x8, [x8, _stackpos@GOTPAGEOFF]
ldr w9, [x8]
add w9, w9, #8
str w9, [x8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #48
ret
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _SAVE,4,2 ; @SAVE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "sub $8, #rsp"
l_.str.1: ; @.str.1
.asciz "movsd #xmm%d, (#rsp)"
.comm _stackpos,4,2 ; @stackpos
.no_dead_strip _push_xmm
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_push_xmm.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_source_file
_read_source_file: ## @read_source_file
.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
subq $16, %rsp
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
leaq L_.str(%rip), %rsi
callq _fopen
testq %rax, %rax
je LBB0_4
## %bb.1:
movq %rax, %rbx
movq %rax, %rdi
callq _fileno
leaq -40(%rbp), %rsi
movl %eax, %edi
callq _fstat
movl -40(%rbp), %r14d
leal 1(%r14), %edi
callq _malloc
movq %rax, %r15
movq %rax, %rdi
movl $1, %esi
movl %r14d, %edx
movq %rbx, %rcx
callq _fread
movl %eax, %r12d
movq %rbx, %rdi
callq _fclose
cmpl %r14d, %r12d
jne LBB0_4
## %bb.2:
movslq %r14d, %rax
movb $0, (%r15,%rax)
movq %r15, %rdi
callq _split
jmp LBB0_5
LBB0_4:
xorl %eax, %eax
LBB0_5:
addq $16, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "r"
.no_dead_strip _read_source_file
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_source_file
_read_source_file: ; @read_source_file
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.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
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _fopen
cbz x0, LBB0_4
; %bb.1:
mov x19, x0
bl _fileno
add x1, sp, #8
bl _fstat
ldr w20, [sp, #8]
add w0, w20, #1
bl _malloc
mov x21, x0
mov w1, #1
mov x2, x20
mov x3, x19
bl _fread
mov x22, x0
mov x0, x19
bl _fclose
cmp w22, w20
b.ne LBB0_3
; %bb.2:
sxtw x8, w20
strb wzr, [x21, x8]
mov x0, x21
bl _split
b LBB0_4
LBB0_3:
mov x0, #0
LBB0_4:
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
add sp, sp, #64
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "r"
.no_dead_strip _read_source_file
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_read_source_file.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function restore_arg_regs
_restore_arg_regs: ## @restore_arg_regs
.cfi_startproc
## %bb.0:
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
movl %edi, %r14d
cmpl $2, %esi
jl LBB0_3
## %bb.1:
movl %esi, %ebx
incl %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
leal -2(%rbx), %edi
callq _pop_xmm
decl %ebx
cmpl $2, %ebx
ja LBB0_2
LBB0_3:
testl %r14d, %r14d
jle LBB0_6
## %bb.4:
movl %r14d, %ebx
incq %rbx
movq _REGS@GOTPCREL(%rip), %r14
.p2align 4, 0x90
LBB0_5: ## =>This Inner Loop Header: Depth=1
leal -2(%rbx), %eax
movq (%r14), %rcx
movl (%rcx,%rax,4), %edi
callq _pop
decq %rbx
cmpq $1, %rbx
ja LBB0_5
LBB0_6:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SAVE,4,2 ## @SAVE
.comm _REGS,8,3 ## @REGS
.no_dead_strip _restore_arg_regs
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function restore_arg_regs
_restore_arg_regs: ; @restore_arg_regs
.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
cmp w1, #1
b.le LBB0_3
; %bb.1:
add w20, w1, #1
LBB0_2: ; =>This Inner Loop Header: Depth=1
sub w0, w20, #2
bl _pop_xmm
sub w20, w20, #1
cmp w20, #2
b.hi LBB0_2
LBB0_3:
cmp w19, #1
b.lt LBB0_6
; %bb.4:
mov w8, w19
add x19, x8, #1
Lloh0:
adrp x20, _REGS@GOTPAGE
Lloh1:
ldr x20, [x20, _REGS@GOTPAGEOFF]
LBB0_5: ; =>This Inner Loop Header: Depth=1
sub w8, w19, #2
ldr x9, [x20]
ldr w0, [x9, w8, uxtw #2]
bl _pop
sub x19, x19, #1
cmp x19, #1
b.hi LBB0_5
LBB0_6:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _SAVE,4,2 ; @SAVE
.comm _REGS,8,3 ; @REGS
.no_dead_strip _restore_arg_regs
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_restore_arg_regs.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function save_arg_regs
_save_arg_regs: ## @save_arg_regs
.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
movl %esi, %r15d
movl %edi, %r14d
xorl %edi, %edi
cmpl $7, %r14d
setl %dil
callq _assert
xorl %edi, %edi
cmpl $9, %r15d
setl %dil
callq _assert
testl %r14d, %r14d
jle LBB0_3
## %bb.1:
movl %r14d, %r14d
xorl %ebx, %ebx
movq _REGS@GOTPCREL(%rip), %r12
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq (%r12), %rax
movl (%rax,%rbx,4), %edi
callq _push
incq %rbx
cmpq %rbx, %r14
jne LBB0_2
LBB0_3:
cmpl $2, %r15d
jl LBB0_6
## %bb.4:
movl $1, %ebx
.p2align 4, 0x90
LBB0_5: ## =>This Inner Loop Header: Depth=1
movl %ebx, %edi
callq _push_xmm
incl %ebx
cmpl %ebx, %r15d
jne LBB0_5
LBB0_6:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SAVE,4,2 ## @SAVE
.comm _REGS,8,3 ## @REGS
.no_dead_strip _save_arg_regs
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function save_arg_regs
_save_arg_regs: ; @save_arg_regs
.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
mov x19, x1
mov x20, x0
cmp w0, #7
cset w0, lt
bl _assert
cmp w19, #9
cset w0, lt
bl _assert
cmp w20, #1
b.lt LBB0_3
; %bb.1:
mov x21, #0
mov w8, w20
lsl x20, x8, #2
Lloh0:
adrp x22, _REGS@GOTPAGE
Lloh1:
ldr x22, [x22, _REGS@GOTPAGEOFF]
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr x8, [x22]
ldr w0, [x8, x21]
bl _push
add x21, x21, #4
cmp x20, x21
b.ne LBB0_2
LBB0_3:
cmp w19, #1
b.le LBB0_6
; %bb.4:
mov w20, #1
LBB0_5: ; =>This Inner Loop Header: Depth=1
mov x0, x20
bl _push_xmm
add w20, w20, #1
cmp w19, w20
b.ne LBB0_5
LBB0_6:
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
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _SAVE,4,2 ; @SAVE
.comm _REGS,8,3 ; @REGS
.no_dead_strip _save_arg_regs
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_save_arg_regs.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _set_output_file ## -- Begin function set_output_file
.p2align 4, 0x90
_set_output_file: ## @set_output_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _outputfp@GOTPCREL(%rip), %rax
movq %rdi, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _outputfp,8,3 ## @outputfp
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _set_output_file ; -- Begin function set_output_file
.p2align 2
_set_output_file: ; @set_output_file
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _outputfp@GOTPAGE
Lloh1:
ldr x8, [x8, _outputfp@GOTPAGEOFF]
Lloh2:
str x0, [x8]
ret
.loh AdrpLdrGotStr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _outputfp,8,3 ; @outputfp
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_set_output_file.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function set_reg_nums
_set_reg_nums: ## @set_reg_nums
.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
movq %rdi, %r14
movq _numfp@GOTPCREL(%rip), %r15
movq $0, (%r15)
movq _numgp@GOTPCREL(%rip), %r12
movq $0, (%r12)
callq _vec_len
testl %eax, %eax
jle LBB0_5
## %bb.1:
xorl %ebx, %ebx
jmp LBB0_2
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
incq (%rcx)
incl %ebx
movq %r14, %rdi
callq _vec_len
cmpl %eax, %ebx
jge LBB0_5
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movl %ebx, %esi
callq _vec_get
movl (%rax), %edi
callq _is_flotype
movq %r15, %rcx
testq %rax, %rax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq %r12, %rcx
jmp LBB0_4
LBB0_5:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _numfp,8,3 ## @numfp
.comm _numgp,8,3 ## @numgp
.no_dead_strip _set_reg_nums
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function set_reg_nums
_set_reg_nums: ; @set_reg_nums
.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
mov x19, x0
Lloh0:
adrp x21, _numfp@GOTPAGE
Lloh1:
ldr x21, [x21, _numfp@GOTPAGEOFF]
str xzr, [x21]
Lloh2:
adrp x22, _numgp@GOTPAGE
Lloh3:
ldr x22, [x22, _numgp@GOTPAGEOFF]
str xzr, [x22]
bl _vec_len
cmp w0, #1
b.lt LBB0_3
; %bb.1:
mov w20, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x20
bl _vec_get
ldr w0, [x0]
bl _is_flotype
cmp x0, #0
csel x8, x22, x21, eq
ldr x9, [x8]
add x9, x9, #1
str x9, [x8]
add w20, w20, #1
mov x0, x19
bl _vec_len
cmp w20, w0
b.lt 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
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _numfp,8,3 ; @numfp
.comm _numgp,8,3 ; @numgp
.no_dead_strip _set_reg_nums
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_set_reg_nums.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function split
_split: ## @split
.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 $1, %esi
movq %rdi, %rcx
jmp LBB0_1
.p2align 4, 0x90
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
testb %al, %al
je LBB0_4
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
addq %rdx, %rcx
LBB0_1: ## =>This Inner Loop Header: Depth=1
movzbl (%rcx), %eax
movl $1, %edx
cmpb $10, %al
je LBB0_12
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpb $13, %al
jne LBB0_3
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
cmpb $10, 1(%rcx)
jne LBB0_12
## %bb.10: ## in Loop: Header=BB0_1 Depth=1
incl %esi
movl $2, %edx
jmp LBB0_11
.p2align 4, 0x90
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
incl %esi
addq %rdx, %rcx
jmp LBB0_1
LBB0_4:
leal 1(,%rsi,8), %edi
callq _malloc
xorl %ecx, %ecx
jmp LBB0_5
.p2align 4, 0x90
LBB0_7: ## in Loop: Header=BB0_5 Depth=1
testb %dl, %dl
je LBB0_8
LBB0_16: ## in Loop: Header=BB0_5 Depth=1
incq %rbx
LBB0_5: ## =>This Inner Loop Header: Depth=1
movzbl (%rbx), %edx
cmpb $10, %dl
je LBB0_15
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
cmpb $13, %dl
jne LBB0_7
## %bb.13: ## in Loop: Header=BB0_5 Depth=1
cmpb $10, 1(%rbx)
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_5 Depth=1
movb $0, (%rbx)
addq $2, %rbx
movslq %ecx, %rdx
incl %ecx
movq %rbx, (%rax,%rdx,8)
jmp LBB0_5
.p2align 4, 0x90
LBB0_15: ## in Loop: Header=BB0_5 Depth=1
movb $0, (%rbx)
leaq 1(%rbx), %rdx
movslq %ecx, %rsi
incl %ecx
movq %rdx, (%rax,%rsi,8)
jmp LBB0_16
LBB0_8:
movslq %ecx, %rcx
movq $0, (%rax,%rcx,8)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _split
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function split
_split: ; @split
.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
mov w8, #1
mov x9, x0
b LBB0_2
LBB0_1: ; in Loop: Header=BB0_2 Depth=1
add w8, w8, #1
mov w10, #1
add x9, x9, x10
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldrb w10, [x9]
cmp w10, #10
b.eq LBB0_1
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
cmp w10, #13
b.eq LBB0_6
; %bb.4: ; in Loop: Header=BB0_2 Depth=1
cbz w10, LBB0_8
; %bb.5: ; in Loop: Header=BB0_2 Depth=1
mov w10, #1
add x9, x9, x10
b LBB0_2
LBB0_6: ; in Loop: Header=BB0_2 Depth=1
ldrb w10, [x9, #1]
cmp w10, #10
b.ne LBB0_1
; %bb.7: ; in Loop: Header=BB0_2 Depth=1
add w8, w8, #1
mov w10, #2
add x9, x9, x10
b LBB0_2
LBB0_8:
mov w0, #1
bfi w0, w8, #3, #29
bl _malloc
mov w8, #0
b LBB0_11
LBB0_9: ; in Loop: Header=BB0_11 Depth=1
cbz w9, LBB0_16
LBB0_10: ; in Loop: Header=BB0_11 Depth=1
add x19, x19, #1
LBB0_11: ; =>This Inner Loop Header: Depth=1
ldrb w9, [x19]
cmp w9, #10
b.eq LBB0_15
; %bb.12: ; in Loop: Header=BB0_11 Depth=1
cmp w9, #13
b.ne LBB0_9
; %bb.13: ; in Loop: Header=BB0_11 Depth=1
ldrb w9, [x19, #1]
cmp w9, #10
b.ne LBB0_15
; %bb.14: ; in Loop: Header=BB0_11 Depth=1
strb wzr, [x19], #2
str x19, [x0, w8, sxtw #3]
add w8, w8, #1
b LBB0_11
LBB0_15: ; in Loop: Header=BB0_11 Depth=1
mov x9, x19
strb wzr, [x9], #1
str x9, [x0, w8, sxtw #3]
add w8, w8, #1
b LBB0_10
LBB0_16:
str xzr, [x0, w8, sxtw #3]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _split
.subsections_via_symbols
|
AnghaBench/8cc/extr_gen.c_split.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function buffer_empty
_buffer_empty: ## @buffer_empty
.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 _buffers@GOTPCREL(%rip), %rbx
movl (%rbx), %edi
callq _vec_len
movl %eax, %ecx
xorl %eax, %eax
cmpl $1, %ecx
jne LBB0_2
## %bb.1:
movl (%rbx), %edi
callq _vec_head
movl %eax, %edi
callq _vec_len
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
LBB0_2:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _buffers,4,2 ## @buffers
.no_dead_strip _buffer_empty
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function buffer_empty
_buffer_empty: ; @buffer_empty
.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 x19, _buffers@GOTPAGE
Lloh1:
ldr x19, [x19, _buffers@GOTPAGEOFF]
ldr w0, [x19]
bl _vec_len
cmp w0, #1
b.ne LBB0_2
; %bb.1:
ldr w0, [x19]
bl _vec_head
bl _vec_len
cmp w0, #0
cset w0, eq
b LBB0_3
LBB0_2:
mov w0, #0
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _buffers,4,2 ; @buffers
.no_dead_strip _buffer_empty
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_buffer_empty.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function do_skip_space
_do_skip_space: ## @do_skip_space
.cfi_startproc
## %bb.0:
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
xorl %r14d, %r14d
xorl %eax, %eax
callq _readc
movl %eax, %ebx
movq _EOF@GOTPCREL(%rip), %rax
cmpl (%rax), %ebx
je LBB0_9
## %bb.1:
movl %ebx, %edi
callq _iswhitespace
testq %rax, %rax
je LBB0_3
## %bb.2:
movl $1, %r14d
jmp LBB0_9
LBB0_3:
cmpl $47, %ebx
jne LBB0_8
## %bb.4:
movl $42, %edi
callq _next
testq %rax, %rax
je LBB0_6
## %bb.5:
xorl %eax, %eax
callq _skip_block_comment
movl $1, %r14d
jmp LBB0_9
LBB0_6:
movl $47, %edi
callq _next
testq %rax, %rax
je LBB0_8
## %bb.7:
xorl %eax, %eax
callq _skip_line
movl $1, %r14d
jmp LBB0_9
LBB0_8:
movl %ebx, %edi
callq _unreadc
LBB0_9:
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EOF,4,2 ## @EOF
.no_dead_strip _do_skip_space
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function do_skip_space
_do_skip_space: ; @do_skip_space
.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
bl _readc
Lloh0:
adrp x8, _EOF@GOTPAGE
Lloh1:
ldr x8, [x8, _EOF@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
cmp w0, w8
b.ne LBB0_2
LBB0_1:
mov w0, #0
b LBB0_4
LBB0_2:
mov x19, x0
bl _iswhitespace
cbz x0, LBB0_5
LBB0_3:
mov w0, #1
LBB0_4:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_5:
cmp w19, #47
b.ne LBB0_10
; %bb.6:
mov w0, #42
bl _next
cbz x0, LBB0_8
; %bb.7:
bl _skip_block_comment
b LBB0_3
LBB0_8:
mov w0, #47
bl _next
cbz x0, LBB0_10
; %bb.9:
bl _skip_line
b LBB0_3
LBB0_10:
mov x0, x19
bl _unreadc
b LBB0_1
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _EOF,4,2 ; @EOF
.no_dead_strip _do_skip_space
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_do_skip_space.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function is_valid_ucn
_is_valid_ucn: ## @is_valid_ucn
.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, %ecx
andl $-2048, %ecx ## imm = 0xF800
xorl %eax, %eax
cmpl $55296, %ecx ## imm = 0xD800
je LBB0_5
## %bb.1:
movl $1, %eax
cmpl $159, %edi
ja LBB0_5
## %bb.2:
cmpl $36, %edi
je LBB0_5
## %bb.3:
cmpl $64, %edi
je LBB0_5
## %bb.4:
xorl %eax, %eax
cmpl $96, %edi
sete %al
LBB0_5:
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _is_valid_ucn
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function is_valid_ucn
_is_valid_ucn: ; @is_valid_ucn
.cfi_startproc
; %bb.0:
lsr w8, w0, #11
mov w9, #1
mov w10, #1
cmp w0, #96
cset w11, eq
cmp w0, #64
csel w11, w10, w11, eq
cmp w0, #36
csel w10, w10, w11, eq
cmp w0, #159
csel w9, w9, w10, hi
cmp w8, #27
csel w0, wzr, w9, eq
ret
.cfi_endproc
; -- End function
.no_dead_strip _is_valid_ucn
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_is_valid_ucn.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function iswhitespace
_iswhitespace: ## @iswhitespace
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpl $32, %edi
ja LBB0_2
## %bb.1:
movl $1, %eax
movl %edi, %ecx
movabsq $4294971904, %rdx ## imm = 0x100001200
btq %rcx, %rdx
jae LBB0_2
## %bb.3:
popq %rbp
retq
LBB0_2:
xorl %eax, %eax
cmpl $11, %edi
sete %al
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _iswhitespace
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function iswhitespace
_iswhitespace: ; @iswhitespace
.cfi_startproc
; %bb.0:
cmp w0, #32
b.hi LBB0_3
; %bb.1:
mov w8, w0
mov w9, #1
lsl x8, x9, x8
mov x9, #4608
movk x9, #1, lsl #32
tst x8, x9
b.eq LBB0_3
; %bb.2:
mov w0, #1
ret
LBB0_3:
cmp w0, #11
cset w0, eq
ret
.cfi_endproc
; -- End function
.no_dead_strip _iswhitespace
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_iswhitespace.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lex ## -- Begin function lex
.p2align 4, 0x90
_lex: ## @lex
.cfi_startproc
## %bb.0:
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
movq _buffers@GOTPCREL(%rip), %r14
movq (%r14), %rdi
callq _vec_tail
movq %rax, %rbx
movq %rax, %rdi
callq _vec_len
testl %eax, %eax
jle LBB0_1
## %bb.8:
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp _vec_pop ## TAILCALL
LBB0_1:
movq (%r14), %rdi
callq _vec_len
cmpl $2, %eax
jl LBB0_3
## %bb.2:
movq _eof_token@GOTPCREL(%rip), %rax
movq (%rax), %rax
jmp LBB0_7
LBB0_3:
xorl %eax, %eax
callq _current_file
xorl %r14d, %r14d
cmpl $1, (%rax)
sete %r14b
xorl %eax, %eax
callq _do_read_token
movq (%rax), %rcx
movq _TSPACE@GOTPCREL(%rip), %rbx
cmpq (%rbx), %rcx
jne LBB0_6
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _do_read_token
movl $1, 8(%rax)
movq (%rax), %rcx
cmpq (%rbx), %rcx
je LBB0_4
LBB0_6:
movl %r14d, 12(%rax)
LBB0_7:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _buffers,8,3 ## @buffers
.comm _eof_token,8,3 ## @eof_token
.comm _TSPACE,8,3 ## @TSPACE
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lex ; -- Begin function lex
.p2align 2
_lex: ; @lex
.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
Lloh0:
adrp x20, _buffers@GOTPAGE
Lloh1:
ldr x20, [x20, _buffers@GOTPAGEOFF]
ldr x0, [x20]
bl _vec_tail
mov x19, x0
bl _vec_len
cmp w0, #1
b.lt LBB0_2
; %bb.1:
mov x0, x19
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
b _vec_pop
LBB0_2:
ldr x0, [x20]
bl _vec_len
cmp w0, #1
b.le LBB0_4
; %bb.3:
Lloh2:
adrp x8, _eof_token@GOTPAGE
Lloh3:
ldr x8, [x8, _eof_token@GOTPAGEOFF]
Lloh4:
ldr x0, [x8]
b LBB0_8
LBB0_4:
bl _current_file
ldr w8, [x0]
cmp w8, #1
cset w19, eq
bl _do_read_token
ldr x8, [x0]
Lloh5:
adrp x20, _TSPACE@GOTPAGE
Lloh6:
ldr x20, [x20, _TSPACE@GOTPAGEOFF]
ldr x9, [x20]
cmp x8, x9
b.ne LBB0_7
; %bb.5:
mov w21, #1
LBB0_6: ; =>This Inner Loop Header: Depth=1
bl _do_read_token
str w21, [x0, #8]
ldr x8, [x0]
ldr x9, [x20]
cmp x8, x9
b.eq LBB0_6
LBB0_7:
str w19, [x0, #12]
LBB0_8:
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
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGot Lloh5, Lloh6
.cfi_endproc
; -- End function
.comm _buffers,8,3 ; @buffers
.comm _eof_token,8,3 ; @eof_token
.comm _TSPACE,8,3 ; @TSPACE
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_lex.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lex_init ## -- Begin function lex_init
.p2align 4, 0x90
_lex_init: ## @lex_init
.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 %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r15
movq _buffers@GOTPCREL(%rip), %rax
movl (%rax), %ebx
xorl %eax, %eax
callq _make_vector
movl %ebx, %edi
movl %eax, %esi
callq _vec_push
leaq L_.str(%rip), %rsi
movq %r15, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_1
## %bb.2:
leaq L_.str.1(%rip), %rsi
movq %r15, %rdi
callq _fopen
movq %rax, %r14
testq %rax, %rax
jne LBB0_4
## %bb.3:
movq _errno@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _strerror
leaq L_.str.2(%rip), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq _error
LBB0_4:
movq %r14, %rdi
movq %r15, %rsi
jmp LBB0_5
LBB0_1:
movq _stdin@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
LBB0_5:
callq _make_file
movl %eax, %edi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _stream_push ## TAILCALL
.cfi_endproc
## -- End function
.comm _buffers,4,2 ## @buffers
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "-"
.comm _stdin,8,3 ## @stdin
L_.str.1: ## @.str.1
.asciz "r"
L_.str.2: ## @.str.2
.asciz "Cannot open %s: %s"
.comm _errno,4,2 ## @errno
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lex_init ; -- Begin function lex_init
.p2align 2
_lex_init: ; @lex_init
.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
Lloh0:
adrp x8, _buffers@GOTPAGE
Lloh1:
ldr x8, [x8, _buffers@GOTPAGEOFF]
Lloh2:
ldr w20, [x8]
bl _make_vector
mov x1, x0
mov x0, x20
bl _vec_push
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
bl _strcmp
cbz w0, LBB0_4
; %bb.1:
Lloh5:
adrp x1, l_.str.1@PAGE
Lloh6:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
bl _fopen
mov x20, x0
cbnz x0, LBB0_3
; %bb.2:
Lloh7:
adrp x8, _errno@GOTPAGE
Lloh8:
ldr x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
ldr w0, [x8]
bl _strerror
mov x2, x0
Lloh10:
adrp x0, l_.str.2@PAGE
Lloh11:
add x0, x0, l_.str.2@PAGEOFF
mov x1, x19
bl _error
LBB0_3:
mov x0, x20
mov x1, x19
b LBB0_5
LBB0_4:
Lloh12:
adrp x8, _stdin@GOTPAGE
Lloh13:
ldr x8, [x8, _stdin@GOTPAGEOFF]
Lloh14:
ldr x0, [x8]
Lloh15:
adrp x1, l_.str@PAGE
Lloh16:
add x1, x1, l_.str@PAGEOFF
LBB0_5:
bl _make_file
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _stream_push
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh5, Lloh6
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.cfi_endproc
; -- End function
.comm _buffers,4,2 ; @buffers
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "-"
.comm _stdin,8,3 ; @stdin
l_.str.1: ; @.str.1
.asciz "r"
l_.str.2: ; @.str.2
.asciz "Cannot open %s: %s"
.comm _errno,4,2 ; @errno
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_lex_init.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lex_string ## -- Begin function lex_string
.p2align 4, 0x90
_lex_string: ## @lex_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 %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %r15
callq _make_file_string
movl %eax, %edi
callq _stream_stash
xorl %eax, %eax
callq _do_read_token
movq %rax, %r14
movl $10, %edi
callq _next
xorl %edi, %edi
callq _get_pos
movl %eax, %ebx
xorl %eax, %eax
callq _peek
movq _EOF@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_2
## %bb.1:
leaq L_.str(%rip), %rsi
movl %ebx, %edi
movq %r15, %rdx
callq _errorp
LBB0_2:
xorl %eax, %eax
callq _stream_unstash
movq %r14, %rax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EOF,8,3 ## @EOF
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unconsumed input: %s"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _lex_string ; -- Begin function lex_string
.p2align 2
_lex_string: ; @lex_string
.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
mov x19, x0
bl _make_file_string
bl _stream_stash
bl _do_read_token
mov x20, x0
mov w0, #10
bl _next
mov w0, #0
bl _get_pos
mov x21, x0
bl _peek
Lloh0:
adrp x8, _EOF@GOTPAGE
Lloh1:
ldr x8, [x8, _EOF@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
cmp x0, x8
b.eq LBB0_2
; %bb.1:
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
mov x0, x21
mov x2, x19
bl _errorp
LBB0_2:
bl _stream_unstash
mov x0, x20
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
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _EOF,8,3 ; @EOF
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unconsumed input: %s"
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_lex_string.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function make_token
_make_token: ## @make_token
.cfi_startproc
## %bb.0:
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
movq %rdi, %r14
movl $32, %edi
callq _malloc
movq %rax, %rbx
movups (%r14), %xmm0
movups %xmm0, (%rax)
movq 16(%r14), %rax
movq %rax, 16(%rbx)
movq $0, 24(%rbx)
xorl %eax, %eax
callq _current_file
movq %rax, 16(%rbx)
movq _pos@GOTPCREL(%rip), %rcx
movl 4(%rcx), %edx
movl %edx, 12(%rbx)
movl (%rcx), %ecx
movl %ecx, 8(%rbx)
movslq (%rax), %rcx
leal 1(%rcx), %edx
movl %edx, (%rax)
movq %rcx, (%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _pos,8,2 ## @pos
.no_dead_strip _make_token
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function make_token
_make_token: ; @make_token
.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
mov w0, #32
bl _malloc
mov x20, x0
ldr x8, [x19, #16]
ldr q0, [x19]
str q0, [x0]
stp x8, xzr, [x0, #16]
bl _current_file
str x0, [x20, #16]
Lloh0:
adrp x8, _pos@GOTPAGE
Lloh1:
ldr x8, [x8, _pos@GOTPAGEOFF]
Lloh2:
ldr d0, [x8]
str d0, [x20, #8]
ldrsw x8, [x0]
add w9, w8, #1
str w9, [x0]
str x8, [x20]
mov x0, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _pos,8,2 ; @pos
.no_dead_strip _make_token
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_make_token.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function mark
_mark: ## @mark
.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
callq _get_pos
movq _pos@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _pos,4,2 ## @pos
.no_dead_strip _mark
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function mark
_mark: ; @mark
.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
bl _get_pos
Lloh0:
adrp x8, _pos@GOTPAGE
Lloh1:
ldr x8, [x8, _pos@GOTPAGEOFF]
Lloh2:
str w0, [x8]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotStr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _pos,4,2 ; @pos
.no_dead_strip _mark
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_mark.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function next
_next: ## @next
.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 %edi, %ebx
xorl %eax, %eax
callq _readc
movl $1, %ecx
cmpl %ebx, %eax
je LBB0_2
## %bb.1:
movl %eax, %edi
callq _unreadc
xorl %ecx, %ecx
LBB0_2:
movl %ecx, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _next
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function next
_next: ; @next
.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
bl _readc
cmp w0, w19
b.ne LBB0_2
; %bb.1:
mov w0, #1
b LBB0_3
LBB0_2:
bl _unreadc
mov w0, #0
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _next
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_next.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function nextoct
_nextoct: ## @nextoct
.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 _peek
andl $-8, %eax
xorl %ecx, %ecx
cmpl $48, %eax
sete %cl
movl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _nextoct
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function nextoct
_nextoct: ; @nextoct
.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 _peek
and w8, w0, #0xfffffff8
cmp w8, #48
cset w0, eq
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _nextoct
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_nextoct.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function peek
_peek: ## @peek
.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
xorl %eax, %eax
callq _readc
movl %eax, %ebx
movl %eax, %edi
callq _unreadc
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _peek
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function peek
_peek: ; @peek
.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
bl _readc
mov x19, x0
bl _unreadc
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _peek
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_peek.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function pos_string
_pos_string: ## @pos_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
pushq %rax
.cfi_offset %rbx, -24
movq %rdi, %rbx
xorl %eax, %eax
callq _current_file
testq %rax, %rax
je LBB0_1
## %bb.2:
movq (%rax), %rsi
jmp LBB0_3
LBB0_1:
leaq L_.str.1(%rip), %rsi
LBB0_3:
movl (%rbx), %ecx
movl 4(%rbx), %edx
leaq L_.str(%rip), %rdi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _format ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s:%d:%d"
L_.str.1: ## @.str.1
.asciz "(unknown)"
.no_dead_strip _pos_string
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function pos_string
_pos_string: ; @pos_string
.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
bl _current_file
cbz x0, LBB0_2
; %bb.1:
ldr x1, [x0]
b LBB0_3
LBB0_2:
Lloh0:
adrp x1, l_.str.1@PAGE
Lloh1:
add x1, x1, l_.str.1@PAGEOFF
LBB0_3:
ldp w3, w2, [x19]
Lloh2:
adrp x0, l_.str@PAGE
Lloh3:
add x0, x0, l_.str@PAGEOFF
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _format
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s:%d:%d"
l_.str.1: ; @.str.1
.asciz "(unknown)"
.no_dead_strip _pos_string
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_pos_string.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_char
_read_char: ## @read_char
.cfi_startproc
## %bb.0:
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
movl %edi, %r14d
xorl %eax, %eax
callq _readc
movl %eax, %ebx
cmpl $92, %eax
jne LBB0_2
## %bb.1:
xorl %eax, %eax
callq _read_escaped_char
movl %eax, %ebx
LBB0_2:
xorl %eax, %eax
callq _readc
cmpl $39, %eax
je LBB0_4
## %bb.3:
movq _pos@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _errorp
LBB0_4:
movq _ENC_NONE@GOTPCREL(%rip), %rax
cmpl %r14d, (%rax)
movsbl %bl, %edi
cmovnel %ebx, %edi
movl %r14d, %esi
popq %rbx
popq %r14
popq %rbp
jmp _make_char ## TAILCALL
.cfi_endproc
## -- End function
.comm _pos,4,2 ## @pos
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unterminated char"
.comm _ENC_NONE,4,2 ## @ENC_NONE
.no_dead_strip _read_char
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_char
_read_char: ; @read_char
.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
bl _readc
mov x20, x0
cmp w0, #92
b.ne LBB0_2
; %bb.1:
bl _read_escaped_char
mov x20, x0
LBB0_2:
bl _readc
cmp w0, #39
b.eq LBB0_4
; %bb.3:
Lloh0:
adrp x8, _pos@GOTPAGE
Lloh1:
ldr x8, [x8, _pos@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
bl _errorp
LBB0_4:
Lloh5:
adrp x8, _ENC_NONE@GOTPAGE
Lloh6:
ldr x8, [x8, _ENC_NONE@GOTPAGEOFF]
Lloh7:
ldr w8, [x8]
sxtb w9, w20
cmp w8, w19
csel w0, w9, w20, eq
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _make_char
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _pos,4,2 ; @pos
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unterminated char"
.comm _ENC_NONE,4,2 ; @ENC_NONE
.no_dead_strip _read_char
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_read_char.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_hash_digraph
_read_hash_digraph: ## @read_hash_digraph
.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 $62, %edi
callq _next
movb $125, %bl
testq %rax, %rax
je LBB0_1
LBB0_6:
movsbl %bl, %edi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _make_keyword ## TAILCALL
LBB0_1:
movl $58, %edi
callq _next
testq %rax, %rax
je LBB0_7
## %bb.2:
movl $37, %edi
callq _next
movb $35, %bl
testq %rax, %rax
je LBB0_6
## %bb.3:
movl $58, %edi
callq _next
testq %rax, %rax
je LBB0_5
## %bb.4:
movq _KHASHHASH@GOTPCREL(%rip), %rax
movb (%rax), %bl
jmp LBB0_6
LBB0_7:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
LBB0_5:
movl $37, %edi
callq _unreadc
jmp LBB0_6
.cfi_endproc
## -- End function
.comm _KHASHHASH,1,0 ## @KHASHHASH
.no_dead_strip _read_hash_digraph
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_hash_digraph
_read_hash_digraph: ; @read_hash_digraph
.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, #62
bl _next
cbz x0, LBB0_3
; %bb.1:
mov w8, #125
LBB0_2:
sxtb w0, w8
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _make_keyword
LBB0_3:
mov w0, #58
bl _next
cbz x0, LBB0_7
; %bb.4:
mov w0, #37
bl _next
cbz x0, LBB0_9
; %bb.5:
mov w0, #58
bl _next
cbz x0, LBB0_8
; %bb.6:
Lloh0:
adrp x8, _KHASHHASH@GOTPAGE
Lloh1:
ldr x8, [x8, _KHASHHASH@GOTPAGEOFF]
ldrb w8, [x8]
b LBB0_2
LBB0_7:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
LBB0_8:
mov w0, #37
bl _unreadc
LBB0_9:
mov w8, #35
b LBB0_2
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _KHASHHASH,1,0 ; @KHASHHASH
.no_dead_strip _read_hash_digraph
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_read_hash_digraph.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _read_header_file_name ## -- Begin function read_header_file_name
.p2align 4, 0x90
_read_header_file_name: ## @read_header_file_name
.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
movq %rdi, %r15
xorl %r12d, %r12d
xorl %eax, %eax
callq _buffer_empty
testl %eax, %eax
je LBB0_13
## %bb.1:
xorl %eax, %eax
callq _skip_space
xorl %edi, %edi
callq _get_pos
movl %eax, %r14d
movl $34, %edi
callq _next
movb $34, %bl
testq %rax, %rax
jne LBB0_4
## %bb.2:
movl $60, %edi
callq _next
testq %rax, %rax
je LBB0_13
## %bb.3:
movb $62, %bl
movl $1, %r12d
LBB0_4:
movl %r12d, (%r15)
xorl %eax, %eax
callq _make_buffer
movq %rax, %r15
movzbl %bl, %r13d
movl %r13d, %edi
callq _next
testq %rax, %rax
je LBB0_5
LBB0_10:
movq %r15, %rdi
callq _buf_len
testq %rax, %rax
jne LBB0_12
## %bb.11:
leaq L_.str.1(%rip), %rsi
movl %r14d, %edi
callq _errorp
LBB0_12:
movq %r15, %rdi
xorl %esi, %esi
callq _buf_write
movq %r15, %rdi
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _buf_body ## TAILCALL
LBB0_13:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_5:
movq _EOF@GOTPCREL(%rip), %r12
jmp LBB0_6
.p2align 4, 0x90
LBB0_8: ## in Loop: Header=BB0_6 Depth=1
movl %r14d, %edi
leaq L_.str(%rip), %rsi
callq _errorp
LBB0_9: ## in Loop: Header=BB0_6 Depth=1
movsbl %bl, %esi
movq %r15, %rdi
callq _buf_write
movl %r13d, %edi
callq _next
testq %rax, %rax
jne LBB0_10
LBB0_6: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _readc
movl %eax, %ebx
cmpl $10, %eax
je LBB0_8
## %bb.7: ## in Loop: Header=BB0_6 Depth=1
cmpl (%r12), %ebx
jne LBB0_9
jmp LBB0_8
.cfi_endproc
## -- End function
.comm _EOF,4,2 ## @EOF
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "premature end of header name"
L_.str.1: ## @.str.1
.asciz "header name should not be empty"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _read_header_file_name ; -- Begin function read_header_file_name
.p2align 2
_read_header_file_name: ; @read_header_file_name
.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 x21, x0
bl _buffer_empty
cbz w0, LBB0_9
; %bb.1:
bl _skip_space
mov w0, #0
bl _get_pos
mov x19, x0
mov w20, #34
mov w0, #34
bl _next
cbz x0, LBB0_3
; %bb.2:
mov w8, #0
b LBB0_5
LBB0_3:
mov w0, #60
bl _next
cbz x0, LBB0_9
; %bb.4:
mov w20, #62
mov w8, #1
LBB0_5:
str w8, [x21]
bl _make_buffer
mov x21, x0
mov x0, x20
bl _next
cbz x0, LBB0_10
LBB0_6:
mov x0, x21
bl _buf_len
cbnz x0, LBB0_8
; %bb.7:
Lloh0:
adrp x1, l_.str.1@PAGE
Lloh1:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
bl _errorp
LBB0_8:
mov x0, x21
mov w1, #0
bl _buf_write
mov x0, x21
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 _buf_body
LBB0_9:
mov x0, #0
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
ret
LBB0_10:
Lloh2:
adrp x24, _EOF@GOTPAGE
Lloh3:
ldr x24, [x24, _EOF@GOTPAGEOFF]
Lloh4:
adrp x22, l_.str@PAGE
Lloh5:
add x22, x22, l_.str@PAGEOFF
b LBB0_13
LBB0_11: ; in Loop: Header=BB0_13 Depth=1
mov x0, x19
mov x1, x22
bl _errorp
LBB0_12: ; in Loop: Header=BB0_13 Depth=1
sxtb w1, w23
mov x0, x21
bl _buf_write
mov x0, x20
bl _next
cbnz x0, LBB0_6
LBB0_13: ; =>This Inner Loop Header: Depth=1
bl _readc
mov x23, x0
cmp w0, #10
b.eq LBB0_11
; %bb.14: ; in Loop: Header=BB0_13 Depth=1
ldr w8, [x24]
cmp w23, w8
b.ne LBB0_12
b LBB0_11
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.cfi_endproc
; -- End function
.comm _EOF,4,2 ; @EOF
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "premature end of header name"
l_.str.1: ; @.str.1
.asciz "header name should not be empty"
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_read_header_file_name.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_ident
_read_ident: ## @read_ident
.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 %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %edi, %ebx
xorl %eax, %eax
callq _make_buffer
movq %rax, %r14
movq %rax, %rdi
movl %ebx, %esi
jmp LBB0_1
.p2align 4, 0x90
LBB0_2: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
xorl %eax, %eax
callq _readc
movl %eax, %ebx
movsbl %al, %r15d
movl %r15d, %edi
callq _isalnum
testb %r15b, %r15b
js LBB0_7
## %bb.3: ## in Loop: Header=BB0_2 Depth=2
testq %rax, %rax
jne LBB0_7
## %bb.4: ## in Loop: Header=BB0_2 Depth=2
cmpb $95, %bl
je LBB0_7
## %bb.5: ## in Loop: Header=BB0_2 Depth=2
cmpb $92, %bl
jne LBB0_6
## %bb.8: ## in Loop: Header=BB0_2 Depth=2
xorl %eax, %eax
callq _peek
cmpb $117, %al
je LBB0_10
## %bb.9: ## in Loop: Header=BB0_2 Depth=2
xorl %eax, %eax
callq _peek
cmpb $85, %al
jne LBB0_11
LBB0_10: ## in Loop: Header=BB0_2 Depth=2
xorl %eax, %eax
callq _read_escaped_char
movq %r14, %rdi
movl %eax, %esi
callq _write_utf8
jmp LBB0_2
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
cmpb $36, %bl
jne LBB0_11
.p2align 4, 0x90
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq %r14, %rdi
movl %r15d, %esi
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_2 Depth 2
callq _buf_write
jmp LBB0_2
LBB0_11:
movl %r15d, %edi
callq _unreadc
movq %r14, %rdi
xorl %esi, %esi
callq _buf_write
movq %r14, %rdi
callq _buf_body
movl %eax, %edi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _make_ident ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _read_ident
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_ident
_read_ident: ; @read_ident
.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 x20, x0
bl _make_buffer
mov x19, x0
b LBB0_10
LBB0_1: ; Parent Loop BB0_10 Depth=1
; => This Inner Loop Header: Depth=2
bl _readc
mov x20, x0
bl _isalnum
tbnz w20, #31, LBB0_9
; %bb.2: ; in Loop: Header=BB0_1 Depth=2
cbnz x0, LBB0_9
; %bb.3: ; in Loop: Header=BB0_1 Depth=2
cmp w20, #95
b.eq LBB0_9
; %bb.4: ; in Loop: Header=BB0_1 Depth=2
and w8, w20, #0xff
cmp w8, #92
b.ne LBB0_8
; %bb.5: ; in Loop: Header=BB0_1 Depth=2
bl _peek
cmp w0, #117
b.eq LBB0_7
; %bb.6: ; in Loop: Header=BB0_1 Depth=2
bl _peek
cmp w0, #85
b.ne LBB0_11
LBB0_7: ; in Loop: Header=BB0_1 Depth=2
bl _read_escaped_char
mov x1, x0
mov x0, x19
bl _write_utf8
b LBB0_1
LBB0_8: ; in Loop: Header=BB0_10 Depth=1
cmp w8, #36
b.ne LBB0_11
LBB0_9: ; in Loop: Header=BB0_10 Depth=1
mov x0, x19
LBB0_10: ; =>This Loop Header: Depth=1
; Child Loop BB0_1 Depth 2
mov x1, x20
bl _buf_write
b LBB0_1
LBB0_11:
mov x0, x20
bl _unreadc
mov x0, x19
mov w1, #0
bl _buf_write
mov x0, x19
bl _buf_body
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _make_ident
.cfi_endproc
; -- End function
.no_dead_strip _read_ident
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_read_ident.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_number
_read_number: ## @read_number
.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 %edi, %r13d
xorl %eax, %eax
callq _make_buffer
movq %rax, %r12
movq %rax, %rdi
movl %r13d, %esi
callq _buf_write
leaq L_.str(%rip), %r14
jmp LBB0_1
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq %r12, %rdi
movl %ebx, %esi
callq _buf_write
movl %ebx, %r13d
LBB0_1: ## =>This Inner Loop Header: Depth=1
xorl %r15d, %r15d
xorl %eax, %eax
callq _readc
movl %eax, %ebx
movsbl %r13b, %esi
movq %r14, %rdi
callq _strchr
testq %rax, %rax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.1(%rip), %rdi
movl %ebx, %esi
callq _strchr
testq %rax, %rax
setne %r15b
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
leal -48(%rbx), %eax
cmpl $10, %eax
jb LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl %ebx, %edi
callq _isalpha
testl %eax, %eax
setne %al
cmpl $46, %ebx
sete %cl
orb %al, %cl
orb %r15b, %cl
cmpb $1, %cl
je LBB0_5
## %bb.6:
movl %ebx, %edi
callq _unreadc
movq %r12, %rdi
xorl %esi, %esi
callq _buf_write
movq %r12, %rdi
callq _buf_body
movl %eax, %edi
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _make_number ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "eEpP"
L_.str.1: ## @.str.1
.asciz "+-"
.no_dead_strip _read_number
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_number
_read_number: ; @read_number
.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 x23, x0
bl _make_buffer
mov x19, x0
mov x1, x23
bl _buf_write
Lloh0:
adrp x20, l_.str@PAGE
Lloh1:
add x20, x20, l_.str@PAGEOFF
mov w24, #46
Lloh2:
adrp x21, l_.str.1@PAGE
Lloh3:
add x21, x21, l_.str.1@PAGEOFF
b LBB0_2
LBB0_1: ; in Loop: Header=BB0_2 Depth=1
mov x0, x19
mov x1, x22
bl _buf_write
mov x23, x22
LBB0_2: ; =>This Inner Loop Header: Depth=1
bl _readc
mov x22, x0
sxtb w1, w23
mov x0, x20
bl _strchr
cbz x0, LBB0_4
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
mov x0, x21
mov x1, x22
bl _strchr
cmp x0, #0
cset w23, ne
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_2 Depth=1
mov w23, #0
LBB0_5: ; in Loop: Header=BB0_2 Depth=1
sub w8, w22, #48
cmp w8, #10
b.lo LBB0_1
; %bb.6: ; in Loop: Header=BB0_2 Depth=1
mov x0, x22
bl _isalpha
cmp w0, #0
ccmp w22, w24, #4, eq
cset w8, eq
orr w8, w8, w23
cmp w8, #1
b.eq LBB0_1
; %bb.7:
mov x0, x22
bl _unreadc
mov x0, x19
mov w1, #0
bl _buf_write
mov x0, x19
bl _buf_body
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 _make_number
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "eEpP"
l_.str.1: ; @.str.1
.asciz "+-"
.no_dead_strip _read_number
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_read_number.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_octal_char
_read_octal_char: ## @read_octal_char
.cfi_startproc
## %bb.0:
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
movl %edi, %ebx
addl $-48, %ebx
xorl %eax, %eax
callq _nextoct
testl %eax, %eax
je LBB0_3
## %bb.1:
movl %ebx, %r14d
shll $3, %r14d
xorl %eax, %eax
callq _readc
movl %eax, %ebx
addl $-48, %ebx
orl %r14d, %ebx
xorl %eax, %eax
callq _nextoct
testl %eax, %eax
je LBB0_3
## %bb.2:
shll $3, %ebx
xorl %eax, %eax
callq _readc
addl $-48, %eax
orl %eax, %ebx
LBB0_3:
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _read_octal_char
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_octal_char
_read_octal_char: ; @read_octal_char
.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
sub w19, w0, #48
bl _nextoct
cbz w0, LBB0_3
; %bb.1:
bl _readc
sub w8, w0, #48
orr w19, w8, w19, lsl #3
bl _nextoct
cbz w0, LBB0_3
; %bb.2:
bl _readc
sub w8, w0, #48
orr w19, w8, w19, lsl #3
LBB0_3:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _read_octal_char
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_read_octal_char.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_rep
_read_rep: ## @read_rep
.cfi_startproc
## %bb.0:
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
movl %edx, %r14d
movl %esi, %ebx
callq _next
testq %rax, %rax
cmovel %r14d, %ebx
movl %ebx, %edi
popq %rbx
popq %r14
popq %rbp
jmp _make_keyword ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _read_rep
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_rep
_read_rep: ; @read_rep
.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, x2
mov x20, x1
bl _next
cmp x0, #0
csel w0, w19, w20, eq
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _make_keyword
.cfi_endproc
; -- End function
.no_dead_strip _read_rep
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_read_rep.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_rep2
_read_rep2: ## @read_rep2
.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
movl %r8d, %r14d
movl %ecx, %r12d
movl %edx, %r15d
movl %esi, %ebx
callq _next
testq %rax, %rax
jne LBB0_2
## %bb.1:
movsbl %r15b, %edi
callq _next
testq %rax, %rax
movsbl %r14b, %eax
cmovel %eax, %r12d
movl %r12d, %ebx
LBB0_2:
movl %ebx, %edi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp _make_keyword ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _read_rep2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_rep2
_read_rep2: ; @read_rep2
.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
mov x19, x4
mov x20, x3
mov x22, x2
mov x21, x1
bl _next
cbnz x0, LBB0_2
; %bb.1:
mov x0, x22
bl _next
cmp x0, #0
csel w21, w19, w20, eq
LBB0_2:
mov x0, x21
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
b _make_keyword
.cfi_endproc
; -- End function
.no_dead_strip _read_rep2
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_read_rep2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_string
_read_string: ## @read_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 %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 %edi, -44(%rbp) ## 4-byte Spill
xorl %eax, %eax
callq _make_buffer
movq %rax, %r12
movq _EOF@GOTPCREL(%rip), %r13
movq _pos@GOTPCREL(%rip), %r14
leaq L_.str(%rip), %r15
jmp LBB0_1
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movsbl %al, %esi
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq %r12, %rdi
callq _buf_write
LBB0_1: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _readc
movl %eax, %ebx
cmpl (%r13), %eax
je LBB0_2
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
cmpl $92, %ebx
je LBB0_7
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
cmpl $34, %ebx
je LBB0_12
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movsbl %bl, %esi
jmp LBB0_6
.p2align 4, 0x90
LBB0_2: ## in Loop: Header=BB0_1 Depth=1
movl (%r14), %edi
movq %r15, %rsi
callq _errorp
cmpl $92, %ebx
jne LBB0_4
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
xorl %eax, %eax
callq _peek
cmpb $117, %al
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
xorl %eax, %eax
callq _read_escaped_char
jmp LBB0_10
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
xorl %eax, %eax
callq _peek
movl %eax, %ebx
xorl %eax, %eax
callq _read_escaped_char
cmpb $85, %bl
jne LBB0_11
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movq %r12, %rdi
movl %eax, %esi
callq _write_utf8
jmp LBB0_1
LBB0_12:
movq %r12, %rdi
xorl %esi, %esi
callq _buf_write
movq %r12, %rdi
callq _buf_body
movl %eax, %ebx
movq %r12, %rdi
callq _buf_len
movl %ebx, %edi
movl %eax, %esi
movl -44(%rbp), %edx ## 4-byte Reload
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _make_strtok ## TAILCALL
.cfi_endproc
## -- End function
.comm _EOF,4,2 ## @EOF
.comm _pos,4,2 ## @pos
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unterminated string"
.no_dead_strip _read_string
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_string
_read_string: ; @read_string
.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, x0
bl _make_buffer
mov x20, x0
Lloh0:
adrp x23, _EOF@GOTPAGE
Lloh1:
ldr x23, [x23, _EOF@GOTPAGEOFF]
Lloh2:
adrp x24, _pos@GOTPAGE
Lloh3:
ldr x24, [x24, _pos@GOTPAGEOFF]
Lloh4:
adrp x21, l_.str@PAGE
Lloh5:
add x21, x21, l_.str@PAGEOFF
b LBB0_3
LBB0_1: ; in Loop: Header=BB0_3 Depth=1
sxtb w1, w1
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
mov x0, x20
bl _buf_write
LBB0_3: ; =>This Inner Loop Header: Depth=1
bl _readc
mov x22, x0
ldr w8, [x23]
cmp w0, w8
b.eq LBB0_7
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
cmp w22, #92
b.eq LBB0_8
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
cmp w22, #34
b.eq LBB0_12
; %bb.6: ; in Loop: Header=BB0_3 Depth=1
sxtb w1, w22
b LBB0_2
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldr w0, [x24]
mov x1, x21
bl _errorp
cmp w22, #92
b.ne LBB0_5
LBB0_8: ; in Loop: Header=BB0_3 Depth=1
bl _peek
cmp w0, #117
b.ne LBB0_10
; %bb.9: ; in Loop: Header=BB0_3 Depth=1
bl _read_escaped_char
mov x1, x0
b LBB0_11
LBB0_10: ; in Loop: Header=BB0_3 Depth=1
bl _peek
mov x22, x0
bl _read_escaped_char
mov x1, x0
cmp w22, #85
b.ne LBB0_1
LBB0_11: ; in Loop: Header=BB0_3 Depth=1
mov x0, x20
bl _write_utf8
b LBB0_3
LBB0_12:
mov x0, x20
mov w1, #0
bl _buf_write
mov x0, x20
bl _buf_body
mov x21, x0
mov x0, x20
bl _buf_len
mov x1, x0
mov x0, x21
mov x2, 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 _make_strtok
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _EOF,4,2 ; @EOF
.comm _pos,4,2 ; @pos
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unterminated string"
.no_dead_strip _read_string
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_read_string.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function skip_block_comment
_skip_block_comment: ## @skip_block_comment
.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 $-2, %edi
callq _get_pos
movl %eax, %r15d
movq _EOF@GOTPCREL(%rip), %r12
leaq L_.str(%rip), %r14
xorl %eax, %eax
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl %eax, %r13d
xorl %eax, %eax
callq _readc
movl %eax, %ebx
cmpl (%r12), %eax
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl %r15d, %edi
movq %r14, %rsi
callq _errorp
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
xorl %eax, %eax
cmpl $42, %ebx
sete %al
cmpl $47, %ebx
jne LBB0_1
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
testl %r13d, %r13d
je LBB0_1
## %bb.5:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EOF,4,2 ## @EOF
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "premature end of block comment"
.no_dead_strip _skip_block_comment
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function skip_block_comment
_skip_block_comment: ; @skip_block_comment
.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 w0, #-2
bl _get_pos
mov x19, x0
mov w8, #0
Lloh0:
adrp x22, _EOF@GOTPAGE
Lloh1:
ldr x22, [x22, _EOF@GOTPAGEOFF]
Lloh2:
adrp x20, l_.str@PAGE
Lloh3:
add x20, x20, l_.str@PAGEOFF
LBB0_1: ; =>This Inner Loop Header: Depth=1
mov x23, x8
bl _readc
mov x21, x0
ldr w8, [x22]
cmp w0, w8
b.ne LBB0_3
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
mov x0, x19
mov x1, x20
bl _errorp
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
cmp w21, #42
cset w8, eq
cmp w21, #47
b.ne LBB0_1
; %bb.4: ; in Loop: Header=BB0_1 Depth=1
cbz w23, LBB0_1
; %bb.5:
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
ret
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _EOF,4,2 ; @EOF
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "premature end of block comment"
.no_dead_strip _skip_block_comment
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_skip_block_comment.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function skip_char
_skip_char: ## @skip_char
.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
xorl %eax, %eax
callq _readc
cmpb $92, %al
jne LBB0_2
## %bb.1:
xorl %eax, %eax
callq _readc
LBB0_2:
xorl %eax, %eax
callq _readc
cmpb $39, %al
je LBB0_7
## %bb.3:
movsbl %al, %eax
movq _EOF@GOTPCREL(%rip), %rbx
cmpl %eax, (%rbx)
je LBB0_7
.p2align 4, 0x90
LBB0_5: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _readc
cmpb $39, %al
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movsbl %al, %eax
cmpl %eax, (%rbx)
jne LBB0_5
LBB0_7:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EOF,4,2 ## @EOF
.no_dead_strip _skip_char
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function skip_char
_skip_char: ; @skip_char
.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
bl _readc
cmp w0, #92
b.ne LBB0_2
; %bb.1:
bl _readc
LBB0_2:
bl _readc
cmp w0, #39
b.eq LBB0_6
; %bb.3:
Lloh0:
adrp x19, _EOF@GOTPAGE
Lloh1:
ldr x19, [x19, _EOF@GOTPAGEOFF]
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr w8, [x19]
cmp w8, w0
b.eq LBB0_6
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
bl _readc
cmp w0, #39
b.ne LBB0_4
LBB0_6:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _EOF,4,2 ; @EOF
.no_dead_strip _skip_char
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_skip_char.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _skip_cond_incl ## -- Begin function skip_cond_incl
.p2align 4, 0x90
_skip_cond_incl: ## @skip_cond_incl
.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
xorl %eax, %eax
callq _current_file
movl (%rax), %ebx
xorl %eax, %eax
callq _skip_space
xorl %eax, %eax
callq _readc
movq _EOF@GOTPCREL(%rip), %r15
cmpl (%r15), %eax
jne LBB0_1
LBB0_22:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_1:
movq _TIDENT@GOTPCREL(%rip), %r13
xorl %r12d, %r12d
jmp LBB0_2
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
xorl %eax, %eax
callq _skip_string
LBB0_21: ## in Loop: Header=BB0_2 Depth=1
xorl %eax, %eax
callq _current_file
movl (%rax), %ebx
xorl %eax, %eax
callq _skip_space
xorl %eax, %eax
callq _readc
cmpl (%r15), %eax
je LBB0_22
LBB0_2: ## =>This Inner Loop Header: Depth=1
cmpl $34, %eax
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
cmpl $39, %eax
jne LBB0_6
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
xorl %eax, %eax
callq _skip_char
jmp LBB0_21
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
cmpl $35, %eax
jne LBB0_21
## %bb.7: ## in Loop: Header=BB0_2 Depth=1
cmpl $1, %ebx
jne LBB0_21
## %bb.8: ## in Loop: Header=BB0_2 Depth=1
xorl %eax, %eax
callq _current_file
movl (%rax), %ebx
xorl %eax, %eax
callq _lex
movq %rax, %r14
movq (%rax), %rax
cmpq (%r13), %rax
jne LBB0_21
## %bb.9: ## in Loop: Header=BB0_2 Depth=1
testl %r12d, %r12d
jne LBB0_13
## %bb.10: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
leaq L_.str(%rip), %rsi
callq _is_ident
testq %rax, %rax
jne LBB0_23
## %bb.11: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
leaq L_.str.1(%rip), %rsi
callq _is_ident
testq %rax, %rax
jne LBB0_23
## %bb.12: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
leaq L_.str.2(%rip), %rsi
callq _is_ident
testq %rax, %rax
jne LBB0_23
LBB0_13: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
leaq L_.str.3(%rip), %rsi
callq _is_ident
testq %rax, %rax
jne LBB0_16
## %bb.14: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
leaq L_.str.4(%rip), %rsi
callq _is_ident
testq %rax, %rax
jne LBB0_16
## %bb.15: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
leaq L_.str.5(%rip), %rsi
callq _is_ident
testq %rax, %rax
je LBB0_17
LBB0_16: ## in Loop: Header=BB0_2 Depth=1
incl %r12d
LBB0_20: ## in Loop: Header=BB0_2 Depth=1
xorl %eax, %eax
callq _skip_line
jmp LBB0_21
LBB0_17: ## in Loop: Header=BB0_2 Depth=1
testl %r12d, %r12d
je LBB0_18
## %bb.19: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
leaq L_.str.2(%rip), %rsi
callq _is_ident
cmpq $1, %rax
adcl $-1, %r12d
jmp LBB0_20
LBB0_18: ## in Loop: Header=BB0_2 Depth=1
xorl %r12d, %r12d
jmp LBB0_20
LBB0_23:
decl %ebx
movq %r14, %rdi
callq _unget_token
movl $35, %edi
callq _make_keyword
movl $1, 8(%rax)
movl %ebx, 12(%rax)
movq %rax, %rdi
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _unget_token ## TAILCALL
.cfi_endproc
## -- End function
.comm _EOF,4,2 ## @EOF
.comm _TIDENT,8,3 ## @TIDENT
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "else"
L_.str.1: ## @.str.1
.asciz "elif"
L_.str.2: ## @.str.2
.asciz "endif"
L_.str.3: ## @.str.3
.asciz "if"
L_.str.4: ## @.str.4
.asciz "ifdef"
L_.str.5: ## @.str.5
.asciz "ifndef"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _skip_cond_incl ; -- Begin function skip_cond_incl
.p2align 2
_skip_cond_incl: ; @skip_cond_incl
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.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
bl _current_file
ldr w25, [x0]
bl _skip_space
bl _readc
Lloh0:
adrp x26, _EOF@GOTPAGE
Lloh1:
ldr x26, [x26, _EOF@GOTPAGEOFF]
ldr w8, [x26]
cmp w0, w8
b.ne LBB0_2
LBB0_1:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
LBB0_2:
mov w27, #0
Lloh2:
adrp x28, _TIDENT@GOTPAGE
Lloh3:
ldr x28, [x28, _TIDENT@GOTPAGEOFF]
Lloh4:
adrp x19, l_.str@PAGE
Lloh5:
add x19, x19, l_.str@PAGEOFF
Lloh6:
adrp x20, l_.str.1@PAGE
Lloh7:
add x20, x20, l_.str.1@PAGEOFF
Lloh8:
adrp x21, l_.str.2@PAGE
Lloh9:
add x21, x21, l_.str.2@PAGEOFF
Lloh10:
adrp x22, l_.str.3@PAGE
Lloh11:
add x22, x22, l_.str.3@PAGEOFF
Lloh12:
adrp x23, l_.str.4@PAGE
Lloh13:
add x23, x23, l_.str.4@PAGEOFF
b LBB0_5
LBB0_3: ; in Loop: Header=BB0_5 Depth=1
bl _skip_string
LBB0_4: ; in Loop: Header=BB0_5 Depth=1
bl _current_file
ldr w25, [x0]
bl _skip_space
bl _readc
ldr w8, [x26]
cmp w0, w8
b.eq LBB0_1
LBB0_5: ; =>This Inner Loop Header: Depth=1
cmp w0, #34
b.eq LBB0_3
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
cmp w0, #39
b.ne LBB0_8
; %bb.7: ; in Loop: Header=BB0_5 Depth=1
bl _skip_char
b LBB0_4
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
cmp w0, #35
b.ne LBB0_4
; %bb.9: ; in Loop: Header=BB0_5 Depth=1
cmp w25, #1
b.ne LBB0_4
; %bb.10: ; in Loop: Header=BB0_5 Depth=1
bl _current_file
ldr w24, [x0]
bl _lex
ldr x8, [x0]
ldr x9, [x28]
cmp x8, x9
b.ne LBB0_4
; %bb.11: ; in Loop: Header=BB0_5 Depth=1
mov x25, x0
cbnz w27, LBB0_15
; %bb.12: ; in Loop: Header=BB0_5 Depth=1
mov x0, x25
mov x1, x19
bl _is_ident
cbnz x0, LBB0_22
; %bb.13: ; in Loop: Header=BB0_5 Depth=1
mov x0, x25
mov x1, x20
bl _is_ident
cbnz x0, LBB0_22
; %bb.14: ; in Loop: Header=BB0_5 Depth=1
mov x0, x25
mov x1, x21
bl _is_ident
cbnz x0, LBB0_22
LBB0_15: ; in Loop: Header=BB0_5 Depth=1
mov x0, x25
mov x1, x22
bl _is_ident
cbnz x0, LBB0_18
; %bb.16: ; in Loop: Header=BB0_5 Depth=1
mov x0, x25
mov x1, x23
bl _is_ident
cbnz x0, LBB0_18
; %bb.17: ; in Loop: Header=BB0_5 Depth=1
mov x0, x25
Lloh14:
adrp x1, l_.str.5@PAGE
Lloh15:
add x1, x1, l_.str.5@PAGEOFF
bl _is_ident
cbz x0, LBB0_20
LBB0_18: ; in Loop: Header=BB0_5 Depth=1
add w27, w27, #1
LBB0_19: ; in Loop: Header=BB0_5 Depth=1
bl _skip_line
b LBB0_4
LBB0_20: ; in Loop: Header=BB0_5 Depth=1
cbz w27, LBB0_19
; %bb.21: ; in Loop: Header=BB0_5 Depth=1
mov x0, x25
mov x1, x21
bl _is_ident
cmp x0, #0
cset w8, ne
sub w27, w27, w8
b LBB0_19
LBB0_22:
sub w19, w24, #1
mov x0, x25
bl _unget_token
mov w0, #35
bl _make_keyword
mov w8, #1
stp w8, w19, [x0, #8]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
b _unget_token
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpAdd Lloh14, Lloh15
.cfi_endproc
; -- End function
.comm _EOF,4,2 ; @EOF
.comm _TIDENT,8,3 ; @TIDENT
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "else"
l_.str.1: ; @.str.1
.asciz "elif"
l_.str.2: ; @.str.2
.asciz "endif"
l_.str.3: ; @.str.3
.asciz "if"
l_.str.4: ; @.str.4
.asciz "ifdef"
l_.str.5: ; @.str.5
.asciz "ifndef"
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_skip_cond_incl.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function skip_line
_skip_line: ## @skip_line
.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 _EOF@GOTPCREL(%rip), %rbx
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _readc
cmpl (%rbx), %eax
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpl $10, %eax
jne LBB0_1
## %bb.3:
movl $10, %edi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _unreadc ## TAILCALL
LBB0_4:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EOF,4,2 ## @EOF
.no_dead_strip _skip_line
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function skip_line
_skip_line: ; @skip_line
.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 x19, _EOF@GOTPAGE
Lloh1:
ldr x19, [x19, _EOF@GOTPAGEOFF]
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _readc
ldr w8, [x19]
cmp w0, w8
b.eq LBB0_4
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
cmp w0, #10
b.ne LBB0_1
; %bb.3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _unreadc
LBB0_4:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _EOF,4,2 ; @EOF
.no_dead_strip _skip_line
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_skip_line.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function skip_space
_skip_space: ## @skip_space
.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
xorl %ebx, %ebx
xorl %eax, %eax
callq _do_skip_space
testq %rax, %rax
je LBB0_3
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _do_skip_space
testq %rax, %rax
jne LBB0_1
## %bb.2:
movl $1, %ebx
LBB0_3:
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _skip_space
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function skip_space
_skip_space: ; @skip_space
.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 _do_skip_space
cbz x0, LBB0_3
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _do_skip_space
cbnz x0, LBB0_1
; %bb.2:
mov w0, #1
LBB0_3:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _skip_space
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_skip_space.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function skip_string
_skip_string: ## @skip_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
pushq %rax
.cfi_offset %rbx, -24
xorl %eax, %eax
callq _readc
cmpl $34, %eax
je LBB0_6
## %bb.1:
movq _EOF@GOTPCREL(%rip), %rbx
jmp LBB0_2
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
xorl %eax, %eax
callq _readc
cmpl $34, %eax
je LBB0_6
LBB0_2: ## =>This Inner Loop Header: Depth=1
cmpl (%rbx), %eax
je LBB0_6
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
cmpl $92, %eax
jne LBB0_5
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
xorl %eax, %eax
callq _readc
jmp LBB0_5
LBB0_6:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EOF,4,2 ## @EOF
.no_dead_strip _skip_string
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function skip_string
_skip_string: ; @skip_string
.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
bl _readc
cmp w0, #34
b.eq LBB0_6
; %bb.1:
Lloh0:
adrp x19, _EOF@GOTPAGE
Lloh1:
ldr x19, [x19, _EOF@GOTPAGEOFF]
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
bl _readc
cmp w0, #34
b.eq LBB0_6
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [x19]
cmp w0, w8
b.eq LBB0_6
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
cmp w0, #92
b.ne LBB0_2
; %bb.5: ; in Loop: Header=BB0_3 Depth=1
bl _readc
b LBB0_2
LBB0_6:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _EOF,4,2 ; @EOF
.no_dead_strip _skip_string
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_skip_string.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _token_buffer_stash ## -- Begin function token_buffer_stash
.p2align 4, 0x90
_token_buffer_stash: ## @token_buffer_stash
.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, %rsi
movq _buffers@GOTPCREL(%rip), %rax
movl (%rax), %edi
popq %rbp
jmp _vec_push ## TAILCALL
.cfi_endproc
## -- End function
.comm _buffers,4,2 ## @buffers
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _token_buffer_stash ; -- Begin function token_buffer_stash
.p2align 2
_token_buffer_stash: ; @token_buffer_stash
.cfi_startproc
; %bb.0:
mov x1, x0
Lloh0:
adrp x8, _buffers@GOTPAGE
Lloh1:
ldr x8, [x8, _buffers@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
b _vec_push
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _buffers,4,2 ; @buffers
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_token_buffer_stash.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _token_buffer_unstash ## -- Begin function token_buffer_unstash
.p2align 4, 0x90
_token_buffer_unstash: ## @token_buffer_unstash
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _buffers@GOTPCREL(%rip), %rax
movl (%rax), %edi
popq %rbp
jmp _vec_pop ## TAILCALL
.cfi_endproc
## -- End function
.comm _buffers,4,2 ## @buffers
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _token_buffer_unstash ; -- Begin function token_buffer_unstash
.p2align 2
_token_buffer_unstash: ; @token_buffer_unstash
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _buffers@GOTPAGE
Lloh1:
ldr x8, [x8, _buffers@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
b _vec_pop
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _buffers,4,2 ; @buffers
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_token_buffer_unstash.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _unget_token ## -- Begin function unget_token
.p2align 4, 0x90
_unget_token: ## @unget_token
.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), %rax
movq _TEOF@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_2
## %bb.1:
addq $8, %rsp
popq %rbx
popq %rbp
retq
LBB0_2:
movq %rdi, %rbx
movq _buffers@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _vec_tail
movq %rax, %rdi
movq %rbx, %rsi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _vec_push ## TAILCALL
.cfi_endproc
## -- End function
.comm _TEOF,8,3 ## @TEOF
.comm _buffers,4,2 ## @buffers
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _unget_token ; -- Begin function unget_token
.p2align 2
_unget_token: ; @unget_token
.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
ldr x8, [x0]
Lloh0:
adrp x9, _TEOF@GOTPAGE
Lloh1:
ldr x9, [x9, _TEOF@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_2:
mov x19, x0
Lloh3:
adrp x8, _buffers@GOTPAGE
Lloh4:
ldr x8, [x8, _buffers@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
bl _vec_tail
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _vec_push
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _TEOF,8,3 ; @TEOF
.comm _buffers,4,2 ; @buffers
.subsections_via_symbols
|
AnghaBench/8cc/extr_lex.c_unget_token.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function base
_base: ## @base
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
callq _strdup
movl %eax, %edi
popq %rbp
jmp _basename ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _base
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function base
_base: ; @base
.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 _strdup
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _basename
.cfi_endproc
; -- End function
.no_dead_strip _base
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_base.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function delete_temp_files
_delete_temp_files: ## @delete_temp_files
.cfi_startproc
## %bb.0:
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
movq _tmpfiles@GOTPCREL(%rip), %r14
movl (%r14), %edi
callq _vec_len
testl %eax, %eax
jle LBB0_3
## %bb.1:
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl (%r14), %edi
movl %ebx, %esi
callq _vec_get
movl %eax, %edi
callq _unlink
incl %ebx
movl (%r14), %edi
callq _vec_len
cmpl %eax, %ebx
jl LBB0_2
LBB0_3:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _tmpfiles,4,2 ## @tmpfiles
.no_dead_strip _delete_temp_files
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function delete_temp_files
_delete_temp_files: ; @delete_temp_files
.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 x20, _tmpfiles@GOTPAGE
Lloh1:
ldr x20, [x20, _tmpfiles@GOTPAGEOFF]
ldr w0, [x20]
bl _vec_len
cmp w0, #1
b.lt LBB0_3
; %bb.1:
mov w19, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
ldr w0, [x20]
mov x1, x19
bl _vec_get
bl _unlink
add w19, w19, #1
ldr w0, [x20]
bl _vec_len
cmp w19, w0
b.lt LBB0_2
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _tmpfiles,4,2 ; @tmpfiles
.no_dead_strip _delete_temp_files
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_delete_temp_files.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get_base_file ## -- Begin function get_base_file
.p2align 4, 0x90
_get_base_file: ## @get_base_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _infile@GOTPCREL(%rip), %rax
movq (%rax), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _infile,8,3 ## @infile
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get_base_file ; -- Begin function get_base_file
.p2align 2
_get_base_file: ; @get_base_file
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _infile@GOTPAGE
Lloh1:
ldr x8, [x8, _infile@GOTPAGEOFF]
Lloh2:
ldr x0, [x8]
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _infile,8,3 ; @infile
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_get_base_file.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.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
movq %rsi, %r14
movl %edi, %ebx
movq _stdout@GOTPCREL(%rip), %rax
movl (%rax), %edi
xorl %esi, %esi
callq _setbuf
movq _delete_temp_files@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _atexit
testq %rax, %rax
jne LBB0_1
LBB0_2:
movl %ebx, %edi
movq %r14, %rsi
callq _parseopt
movq _infile@GOTPCREL(%rip), %r12
movl (%r12), %edi
callq _lex_init
xorl %eax, %eax
callq _cpp_init
xorl %eax, %eax
callq _parse_init
xorl %eax, %eax
callq _open_asmfile
movl %eax, %edi
callq _set_output_file
movq _cppdefs@GOTPCREL(%rip), %rbx
movl (%rbx), %edi
callq _buf_len
testq %rax, %rax
jle LBB0_4
## %bb.3:
movl (%rbx), %edi
callq _buf_body
movl %eax, %edi
callq _read_from_string
LBB0_4:
movq _cpponly@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_6
## %bb.5:
xorl %eax, %eax
callq _preprocess
LBB0_6:
xorl %ebx, %ebx
xorl %eax, %eax
callq _read_toplevels
movq %rax, %r14
movq %rax, %rdi
callq _vec_len
testl %eax, %eax
jle LBB0_10
## %bb.7:
movq _dumpast@GOTPCREL(%rip), %r13
leaq L_.str.1(%rip), %r15
jmp LBB0_8
.p2align 4, 0x90
LBB0_16: ## in Loop: Header=BB0_8 Depth=1
movq %rax, %rdi
callq _emit_toplevel
LBB0_17: ## in Loop: Header=BB0_8 Depth=1
incl %ebx
movq %r14, %rdi
callq _vec_len
cmpl %eax, %ebx
jge LBB0_10
LBB0_8: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movl %ebx, %esi
callq _vec_get
cmpq $0, (%r13)
je LBB0_16
## %bb.9: ## in Loop: Header=BB0_8 Depth=1
movq %rax, %rdi
callq _node2s
movq %r15, %rdi
movq %rax, %rsi
callq _printf
jmp LBB0_17
LBB0_10:
xorl %eax, %eax
callq _close_output_file
movq _dumpast@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_23
## %bb.11:
movq _dumpasm@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB0_23
## %bb.12:
movq _outfile@GOTPCREL(%rip), %rbx
cmpq $0, (%rbx)
jne LBB0_14
## %bb.13:
movl (%r12), %edi
callq _base
movl %eax, %edi
movl $111, %esi
callq _replace_suffix
movq %rax, (%rbx)
LBB0_14:
xorl %eax, %eax
callq _fork
movq %rax, %rbx
testq %rax, %rax
js LBB0_15
## %bb.18:
je LBB0_19
LBB0_21:
leaq -44(%rbp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq _waitpid
cmpl $0, -44(%rbp)
jns LBB0_23
## %bb.22:
leaq L_.str.7(%rip), %rdi
callq _error
LBB0_23:
xorl %eax, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_1:
leaq L_.str(%rip), %rdi
callq _perror
jmp LBB0_2
LBB0_15:
leaq L_.str.2(%rip), %rdi
jmp LBB0_20
LBB0_19:
callq _main.cold.1
leaq L_.str.6(%rip), %rdi
LBB0_20:
callq _perror
jmp LBB0_21
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function main.cold.1
_main.cold.1: ## @main.cold.1
.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
movq _outfile@GOTPCREL(%rip), %rax
movq (%rax), %rcx
movq _asmfile@GOTPCREL(%rip), %rax
movl (%rax), %r9d
andq $0, (%rsp)
leaq L_.str.3(%rip), %rdi
leaq L_.str.4(%rip), %rdx
leaq L_.str.5(%rip), %r8
movq %rdi, %rsi
callq _execlp
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _stdout,4,2 ## @stdout
.comm _delete_temp_files,4,2 ## @delete_temp_files
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "atexit"
.comm _infile,4,2 ## @infile
.comm _cppdefs,4,2 ## @cppdefs
.comm _cpponly,8,3 ## @cpponly
.comm _dumpast,8,3 ## @dumpast
L_.str.1: ## @.str.1
.asciz "%s"
.comm _dumpasm,4,2 ## @dumpasm
.comm _outfile,8,3 ## @outfile
L_.str.2: ## @.str.2
.asciz "fork"
L_.str.3: ## @.str.3
.asciz "as"
L_.str.4: ## @.str.4
.asciz "-o"
L_.str.5: ## @.str.5
.asciz "-c"
.comm _asmfile,4,2 ## @asmfile
L_.str.6: ## @.str.6
.asciz "execl failed"
L_.str.7: ## @.str.7
.asciz "as failed"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.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
mov x19, x1
mov x20, x0
Lloh0:
adrp x8, _stdout@GOTPAGE
Lloh1:
ldr x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
mov x1, #0
bl _setbuf
Lloh3:
adrp x8, _delete_temp_files@GOTPAGE
Lloh4:
ldr x8, [x8, _delete_temp_files@GOTPAGEOFF]
Lloh5:
ldr w0, [x8]
bl _atexit
cbnz x0, LBB0_19
LBB0_1:
mov x0, x20
mov x1, x19
bl _parseopt
Lloh6:
adrp x22, _infile@GOTPAGE
Lloh7:
ldr x22, [x22, _infile@GOTPAGEOFF]
ldr w0, [x22]
bl _lex_init
bl _cpp_init
bl _parse_init
bl _open_asmfile
bl _set_output_file
Lloh8:
adrp x19, _cppdefs@GOTPAGE
Lloh9:
ldr x19, [x19, _cppdefs@GOTPAGEOFF]
ldr w0, [x19]
bl _buf_len
cmp x0, #1
b.lt LBB0_3
; %bb.2:
ldr w0, [x19]
bl _buf_body
bl _read_from_string
LBB0_3:
Lloh10:
adrp x8, _cpponly@GOTPAGE
Lloh11:
ldr x8, [x8, _cpponly@GOTPAGEOFF]
Lloh12:
ldr x8, [x8]
cbz x8, LBB0_5
; %bb.4:
bl _preprocess
LBB0_5:
bl _read_toplevels
mov x19, x0
bl _vec_len
Lloh13:
adrp x23, _dumpast@GOTPAGE
Lloh14:
ldr x23, [x23, _dumpast@GOTPAGEOFF]
cmp w0, #1
b.lt LBB0_11
; %bb.6:
mov w20, #0
Lloh15:
adrp x21, l_.str.1@PAGE
Lloh16:
add x21, x21, l_.str.1@PAGEOFF
b LBB0_9
LBB0_7: ; in Loop: Header=BB0_9 Depth=1
bl _emit_toplevel
LBB0_8: ; in Loop: Header=BB0_9 Depth=1
add w20, w20, #1
mov x0, x19
bl _vec_len
cmp w20, w0
b.ge LBB0_11
LBB0_9: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x20
bl _vec_get
ldr x8, [x23]
cbz x8, LBB0_7
; %bb.10: ; in Loop: Header=BB0_9 Depth=1
bl _node2s
mov x1, x0
mov x0, x21
bl _printf
b LBB0_8
LBB0_11:
bl _close_output_file
ldr x8, [x23]
Lloh17:
adrp x9, _dumpasm@GOTPAGE
Lloh18:
ldr x9, [x9, _dumpasm@GOTPAGEOFF]
Lloh19:
ldr w9, [x9]
cmp x8, #0
ccmp w9, #0, #0, eq
b.ne LBB0_18
; %bb.12:
Lloh20:
adrp x19, _outfile@GOTPAGE
Lloh21:
ldr x19, [x19, _outfile@GOTPAGEOFF]
ldr x8, [x19]
cbnz x8, LBB0_14
; %bb.13:
ldr w0, [x22]
bl _base
mov w1, #111
bl _replace_suffix
str x0, [x19]
LBB0_14:
bl _fork
mov x19, x0
tbnz x0, #63, LBB0_20
; %bb.15:
cbz x19, LBB0_21
LBB0_16:
add x1, sp, #12
mov x0, x19
mov w2, #0
bl _waitpid
ldr w8, [sp, #12]
tbz w8, #31, LBB0_18
; %bb.17:
Lloh22:
adrp x0, l_.str.7@PAGE
Lloh23:
add x0, x0, l_.str.7@PAGEOFF
bl _error
LBB0_18:
mov w0, #0
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
add sp, sp, #80
ret
LBB0_19:
Lloh24:
adrp x0, l_.str@PAGE
Lloh25:
add x0, x0, l_.str@PAGEOFF
bl _perror
b LBB0_1
LBB0_20:
Lloh26:
adrp x0, l_.str.2@PAGE
Lloh27:
add x0, x0, l_.str.2@PAGEOFF
b LBB0_22
LBB0_21:
bl _main.cold.1
Lloh28:
adrp x0, l_.str.6@PAGE
Lloh29:
add x0, x0, l_.str.6@PAGEOFF
LBB0_22:
bl _perror
b LBB0_16
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12
.loh AdrpLdrGot Lloh13, Lloh14
.loh AdrpAdd Lloh15, Lloh16
.loh AdrpLdrGotLdr Lloh17, Lloh18, Lloh19
.loh AdrpLdrGot Lloh20, Lloh21
.loh AdrpAdd Lloh22, Lloh23
.loh AdrpAdd Lloh24, Lloh25
.loh AdrpAdd Lloh26, Lloh27
.loh AdrpAdd Lloh28, Lloh29
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function main.cold.1
_main.cold.1: ; @main.cold.1
.cfi_startproc
; %bb.0:
Lloh30:
adrp x8, _outfile@GOTPAGE
Lloh31:
ldr x8, [x8, _outfile@GOTPAGEOFF]
Lloh32:
ldr x3, [x8]
Lloh33:
adrp x8, _asmfile@GOTPAGE
Lloh34:
ldr x8, [x8, _asmfile@GOTPAGEOFF]
Lloh35:
adrp x0, l_.str.3@PAGE
Lloh36:
add x0, x0, l_.str.3@PAGEOFF
Lloh37:
ldr w5, [x8]
Lloh38:
adrp x2, l_.str.4@PAGE
Lloh39:
add x2, x2, l_.str.4@PAGEOFF
Lloh40:
adrp x4, l_.str.5@PAGE
Lloh41:
add x4, x4, l_.str.5@PAGEOFF
mov x1, x0
mov x6, #0
b _execlp
.loh AdrpAdd Lloh40, Lloh41
.loh AdrpAdd Lloh38, Lloh39
.loh AdrpAdd Lloh35, Lloh36
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh37
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.cfi_endproc
; -- End function
.comm _stdout,4,2 ; @stdout
.comm _delete_temp_files,4,2 ; @delete_temp_files
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "atexit"
.comm _infile,4,2 ; @infile
.comm _cppdefs,4,2 ; @cppdefs
.comm _cpponly,8,3 ; @cpponly
.comm _dumpast,8,3 ; @dumpast
l_.str.1: ; @.str.1
.asciz "%s"
.comm _dumpasm,4,2 ; @dumpasm
.comm _outfile,8,3 ; @outfile
l_.str.2: ; @.str.2
.asciz "fork"
l_.str.3: ; @.str.3
.asciz "as"
l_.str.4: ; @.str.4
.asciz "-o"
l_.str.5: ; @.str.5
.asciz "-c"
.comm _asmfile,4,2 ; @asmfile
l_.str.6: ; @.str.6
.asciz "execl failed"
l_.str.7: ; @.str.7
.asciz "as failed"
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_main.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function open_asmfile
_open_asmfile: ## @open_asmfile
.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 _dumpasm@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_4
## %bb.1:
movq _outfile@GOTPCREL(%rip), %rax
movq (%rax), %rdi
testq %rdi, %rdi
jne LBB0_3
## %bb.2:
movq _infile@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _base
movl %eax, %edi
movl $115, %esi
callq _replace_suffix
movq %rax, %rdi
LBB0_3:
movq _asmfile@GOTPCREL(%rip), %rax
movq %rdi, (%rax)
jmp LBB0_7
LBB0_4:
leaq L_.str(%rip), %rdi
callq _format
movq _asmfile@GOTPCREL(%rip), %rbx
movq %rax, (%rbx)
movq %rax, %rdi
movl $2, %esi
callq _mkstemps
testl %eax, %eax
je LBB0_5
LBB0_6:
movq _tmpfiles@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq (%rbx), %rsi
callq _vec_push
movq (%rbx), %rdi
LBB0_7:
leaq L_.str.2(%rip), %rsi
callq _strcmp
testl %eax, %eax
je LBB0_8
## %bb.9:
movq _asmfile@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.3(%rip), %rsi
callq _fopen
testq %rax, %rax
jne LBB0_11
## %bb.10:
leaq L_.str.4(%rip), %rdi
callq _perror
xorl %eax, %eax
jmp LBB0_11
LBB0_8:
movq _stdout@GOTPCREL(%rip), %rax
movq (%rax), %rax
LBB0_11:
addq $8, %rsp
popq %rbx
popq %rbp
retq
LBB0_5:
leaq L_.str.1(%rip), %rdi
callq _perror
jmp LBB0_6
.cfi_endproc
## -- End function
.comm _dumpasm,8,3 ## @dumpasm
.comm _outfile,8,3 ## @outfile
.comm _infile,4,2 ## @infile
.comm _asmfile,8,3 ## @asmfile
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/tmp/8ccXXXXXX.s"
L_.str.1: ## @.str.1
.asciz "mkstemps"
.comm _tmpfiles,4,2 ## @tmpfiles
L_.str.2: ## @.str.2
.asciz "-"
.comm _stdout,8,3 ## @stdout
L_.str.3: ## @.str.3
.asciz "w"
L_.str.4: ## @.str.4
.asciz "fopen"
.no_dead_strip _open_asmfile
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function open_asmfile
_open_asmfile: ; @open_asmfile
.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 x8, _dumpasm@GOTPAGE
Lloh1:
ldr x8, [x8, _dumpasm@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
Lloh3:
adrp x19, _asmfile@GOTPAGE
Lloh4:
ldr x19, [x19, _asmfile@GOTPAGEOFF]
cbz x8, LBB0_4
; %bb.1:
Lloh5:
adrp x8, _outfile@GOTPAGE
Lloh6:
ldr x8, [x8, _outfile@GOTPAGEOFF]
Lloh7:
ldr x0, [x8]
cbnz x0, LBB0_3
; %bb.2:
Lloh8:
adrp x8, _infile@GOTPAGE
Lloh9:
ldr x8, [x8, _infile@GOTPAGEOFF]
Lloh10:
ldr w0, [x8]
bl _base
mov w1, #115
bl _replace_suffix
LBB0_3:
str x0, [x19]
b LBB0_6
LBB0_4:
Lloh11:
adrp x0, l_.str@PAGE
Lloh12:
add x0, x0, l_.str@PAGEOFF
bl _format
str x0, [x19]
mov w1, #2
bl _mkstemps
cbz w0, LBB0_11
LBB0_5:
Lloh13:
adrp x8, _tmpfiles@GOTPAGE
Lloh14:
ldr x8, [x8, _tmpfiles@GOTPAGEOFF]
Lloh15:
ldr w0, [x8]
ldr x1, [x19]
bl _vec_push
ldr x0, [x19]
LBB0_6:
Lloh16:
adrp x1, l_.str.2@PAGE
Lloh17:
add x1, x1, l_.str.2@PAGEOFF
bl _strcmp
cbz w0, LBB0_9
; %bb.7:
ldr x0, [x19]
Lloh18:
adrp x1, l_.str.3@PAGE
Lloh19:
add x1, x1, l_.str.3@PAGEOFF
bl _fopen
cbnz x0, LBB0_10
; %bb.8:
Lloh20:
adrp x0, l_.str.4@PAGE
Lloh21:
add x0, x0, l_.str.4@PAGEOFF
bl _perror
mov x0, #0
b LBB0_10
LBB0_9:
Lloh22:
adrp x8, _stdout@GOTPAGE
Lloh23:
ldr x8, [x8, _stdout@GOTPAGEOFF]
Lloh24:
ldr x0, [x8]
LBB0_10:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_11:
Lloh25:
adrp x0, l_.str.1@PAGE
Lloh26:
add x0, x0, l_.str.1@PAGEOFF
bl _perror
b LBB0_5
.loh AdrpLdrGot Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpAdd Lloh11, Lloh12
.loh AdrpLdrGotLdr Lloh13, Lloh14, Lloh15
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh18, Lloh19
.loh AdrpAdd Lloh20, Lloh21
.loh AdrpLdrGotLdr Lloh22, Lloh23, Lloh24
.loh AdrpAdd Lloh25, Lloh26
.cfi_endproc
; -- End function
.comm _dumpasm,8,3 ; @dumpasm
.comm _outfile,8,3 ; @outfile
.comm _infile,4,2 ; @infile
.comm _asmfile,8,3 ; @asmfile
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "/tmp/8ccXXXXXX.s"
l_.str.1: ; @.str.1
.asciz "mkstemps"
.comm _tmpfiles,4,2 ; @tmpfiles
l_.str.2: ; @.str.2
.asciz "-"
.comm _stdout,8,3 ; @stdout
l_.str.3: ; @.str.3
.asciz "w"
l_.str.4: ; @.str.4
.asciz "fopen"
.no_dead_strip _open_asmfile
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_open_asmfile.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function parse_f_arg
_parse_f_arg: ## @parse_f_arg
.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
leaq L_.str(%rip), %rsi
callq _strcmp
testl %eax, %eax
je LBB0_1
## %bb.2:
leaq L_.str.1(%rip), %rsi
movq %rbx, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_3
## %bb.4:
leaq L_.str.2(%rip), %rsi
movq %rbx, %rdi
callq _strcmp
testl %eax, %eax
je LBB0_5
## %bb.7:
movl $1, %edi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _usage ## TAILCALL
LBB0_1:
movq _dumpast@GOTPCREL(%rip), %rax
movl $1, (%rax)
jmp LBB0_6
LBB0_3:
movq _dumpstack@GOTPCREL(%rip), %rax
movl $1, (%rax)
jmp LBB0_6
LBB0_5:
movq _dumpsource@GOTPCREL(%rip), %rax
movl $0, (%rax)
LBB0_6:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "dump-ast"
.comm _dumpast,4,2 ## @dumpast
L_.str.1: ## @.str.1
.asciz "dump-stack"
.comm _dumpstack,4,2 ## @dumpstack
L_.str.2: ## @.str.2
.asciz "no-dump-source"
.comm _dumpsource,4,2 ## @dumpsource
.no_dead_strip _parse_f_arg
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function parse_f_arg
_parse_f_arg: ; @parse_f_arg
.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
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _strcmp
cbz w0, LBB0_4
; %bb.1:
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
bl _strcmp
cbz w0, LBB0_5
; %bb.2:
Lloh4:
adrp x1, l_.str.2@PAGE
Lloh5:
add x1, x1, l_.str.2@PAGEOFF
mov x0, x19
bl _strcmp
cbz w0, LBB0_7
; %bb.3:
mov w0, #1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _usage
LBB0_4:
Lloh6:
adrp x8, _dumpast@GOTPAGE
Lloh7:
ldr x8, [x8, _dumpast@GOTPAGEOFF]
b LBB0_6
LBB0_5:
Lloh8:
adrp x8, _dumpstack@GOTPAGE
Lloh9:
ldr x8, [x8, _dumpstack@GOTPAGEOFF]
LBB0_6:
mov w9, #1
str w9, [x8]
b LBB0_8
LBB0_7:
Lloh10:
adrp x8, _dumpsource@GOTPAGE
Lloh11:
ldr x8, [x8, _dumpsource@GOTPAGEOFF]
Lloh12:
str wzr, [x8]
LBB0_8:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGot Lloh8, Lloh9
.loh AdrpLdrGotStr Lloh10, Lloh11, Lloh12
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "dump-ast"
.comm _dumpast,4,2 ; @dumpast
l_.str.1: ; @.str.1
.asciz "dump-stack"
.comm _dumpstack,4,2 ; @dumpstack
l_.str.2: ; @.str.2
.asciz "no-dump-source"
.comm _dumpsource,4,2 ; @dumpsource
.no_dead_strip _parse_f_arg
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_parse_f_arg.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function parse_m_arg
_parse_m_arg: ## @parse_m_arg
.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
leaq L_.str(%rip), %rsi
callq _strcmp
testq %rax, %rax
je LBB0_1
## %bb.2:
leaq L_.str.1(%rip), %rdi
movq %rbx, %rsi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _error ## TAILCALL
LBB0_1:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "64"
L_.str.1: ## @.str.1
.asciz "Only 64 is allowed for -m, but got %s"
.no_dead_strip _parse_m_arg
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function parse_m_arg
_parse_m_arg: ; @parse_m_arg
.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
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _strcmp
cbz x0, LBB0_2
; %bb.1:
Lloh2:
adrp x0, l_.str.1@PAGE
Lloh3:
add x0, x0, l_.str.1@PAGEOFF
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _error
LBB0_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "64"
l_.str.1: ; @.str.1
.asciz "Only 64 is allowed for -m, but got %s"
.no_dead_strip _parse_m_arg
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_parse_m_arg.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function parse_warnings_arg
_parse_warnings_arg: ## @parse_warnings_arg
.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
leaq L_.str(%rip), %rsi
callq _strcmp
testq %rax, %rax
je LBB0_1
## %bb.2:
leaq L_.str.1(%rip), %rsi
movq %rbx, %rdi
callq _strcmp
testq %rax, %rax
je LBB0_3
## %bb.4:
leaq L_.str.2(%rip), %rdi
movq %rbx, %rsi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _error ## TAILCALL
LBB0_1:
movq _warning_is_error@GOTPCREL(%rip), %rax
movl $1, (%rax)
LBB0_3:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "error"
.comm _warning_is_error,4,2 ## @warning_is_error
L_.str.1: ## @.str.1
.asciz "all"
L_.str.2: ## @.str.2
.asciz "unknown -W option: %s"
.no_dead_strip _parse_warnings_arg
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function parse_warnings_arg
_parse_warnings_arg: ; @parse_warnings_arg
.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
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _strcmp
cbz x0, LBB0_3
; %bb.1:
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
bl _strcmp
cbz x0, LBB0_4
; %bb.2:
Lloh4:
adrp x0, l_.str.2@PAGE
Lloh5:
add x0, x0, l_.str.2@PAGEOFF
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _error
LBB0_3:
Lloh6:
adrp x8, _warning_is_error@GOTPAGE
Lloh7:
ldr x8, [x8, _warning_is_error@GOTPAGEOFF]
mov w9, #1
Lloh8:
str w9, [x8]
LBB0_4:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGotStr Lloh6, Lloh7, Lloh8
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "error"
.comm _warning_is_error,4,2 ; @warning_is_error
l_.str.1: ; @.str.1
.asciz "all"
l_.str.2: ; @.str.2
.asciz "unknown -W option: %s"
.no_dead_strip _parse_warnings_arg
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_parse_warnings_arg.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function parseopt
_parseopt: ## @parseopt
.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
movq %rsi, %r14
movl %edi, %ebx
xorl %eax, %eax
callq _make_buffer
movq _cppdefs@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
leaq L_.str(%rip), %r15
leaq LJTI0_0(%rip), %r13
movq _optarg@GOTPCREL(%rip), %r12
jmp LBB0_1
LBB0_15: ## in Loop: Header=BB0_1 Depth=1
movq _enable_warning@GOTPCREL(%rip), %rax
movl $0, (%rax)
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq _getopt
## kill: def $eax killed $eax def $rax
incl %eax
cmpl $120, %eax
ja LBB0_17
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl (%r12), %edi
movl $61, %esi
callq _strchr
testq %rax, %rax
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movb $32, (%rax)
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq _cppdefs@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl (%r12), %edx
leaq L_.str.1(%rip), %rsi
callq _buf_printf
jmp LBB0_1
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq _cpponly@GOTPCREL(%rip), %rax
movl $1, (%rax)
jmp LBB0_1
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movl (%r12), %edi
callq _add_include_path
jmp LBB0_1
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq _dumpasm@GOTPCREL(%rip), %rax
movl $1, (%rax)
jmp LBB0_1
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movq _cppdefs@GOTPCREL(%rip), %rax
movl (%rax), %edi
movl (%r12), %edx
leaq L_.str.2(%rip), %rsi
callq _buf_printf
jmp LBB0_1
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movl (%r12), %edi
callq _parse_warnings_arg
jmp LBB0_1
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movq _dontlink@GOTPCREL(%rip), %rax
movl $1, (%rax)
jmp LBB0_1
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
movl (%r12), %edi
callq _parse_f_arg
jmp LBB0_1
LBB0_16: ## in Loop: Header=BB0_1 Depth=1
xorl %edi, %edi
callq _usage
LBB0_17: ## in Loop: Header=BB0_1 Depth=1
movl $1, %edi
callq _usage
jmp LBB0_1
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
movl (%r12), %edi
callq _parse_m_arg
jmp LBB0_1
LBB0_14: ## in Loop: Header=BB0_1 Depth=1
movl (%r12), %eax
movq _outfile@GOTPCREL(%rip), %rcx
movl %eax, (%rcx)
jmp LBB0_1
LBB0_18:
movq _optind@GOTPCREL(%rip), %r15
decl %ebx
cmpl %ebx, (%r15)
je LBB0_20
## %bb.19:
movl $1, %edi
callq _usage
LBB0_20:
movq _dumpast@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB0_25
## %bb.21:
movq _cpponly@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB0_25
## %bb.22:
movq _dumpasm@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB0_25
## %bb.23:
movq _dontlink@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB0_25
## %bb.24:
leaq L_.str.3(%rip), %rdi
callq _error
LBB0_25:
movslq (%r15), %rax
movq (%r14,%rax,8), %rax
movq _infile@GOTPCREL(%rip), %rcx
movq %rax, (%rcx)
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
.long L0_0_set_18
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_5
.long L0_0_set_4
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_3
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_1
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_8
.long L0_0_set_17
.long L0_0_set_9
.long L0_0_set_17
.long L0_0_set_10
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_11
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_12
.long L0_0_set_1
.long L0_0_set_16
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_13
.long L0_0_set_17
.long L0_0_set_14
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_17
.long L0_0_set_15
.end_data_region
## -- End function
.comm _cppdefs,4,2 ## @cppdefs
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "I:ED:O:SU:W:acd:f:gm:o:hw"
.comm _optarg,4,2 ## @optarg
.comm _cpponly,4,2 ## @cpponly
L_.str.1: ## @.str.1
.asciz "#define %s\n"
.comm _dumpasm,4,2 ## @dumpasm
L_.str.2: ## @.str.2
.asciz "#undef %s\n"
.comm _dontlink,4,2 ## @dontlink
.comm _outfile,4,2 ## @outfile
.comm _enable_warning,4,2 ## @enable_warning
.comm _optind,4,2 ## @optind
.comm _dumpast,4,2 ## @dumpast
L_.str.3: ## @.str.3
.asciz "One of -a, -c, -E or -S must be specified"
.comm _infile,8,3 ## @infile
.no_dead_strip _parseopt
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function parseopt
_parseopt: ; @parseopt
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.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
mov x19, x1
mov x20, x0
bl _make_buffer
Lloh0:
adrp x27, _cppdefs@GOTPAGE
Lloh1:
ldr x27, [x27, _cppdefs@GOTPAGEOFF]
str w0, [x27]
Lloh2:
adrp x21, l_.str@PAGE
Lloh3:
add x21, x21, l_.str@PAGEOFF
Lloh4:
adrp x28, lJTI0_0@PAGE
Lloh5:
add x28, x28, lJTI0_0@PAGEOFF
mov w24, #1
Lloh6:
adrp x25, _optarg@GOTPAGE
Lloh7:
ldr x25, [x25, _optarg@GOTPAGEOFF]
Lloh8:
adrp x23, l_.str.2@PAGE
Lloh9:
add x23, x23, l_.str.2@PAGEOFF
Lloh10:
adrp x26, _outfile@GOTPAGE
Lloh11:
ldr x26, [x26, _outfile@GOTPAGEOFF]
Lloh12:
adrp x22, _enable_warning@GOTPAGE
Lloh13:
ldr x22, [x22, _enable_warning@GOTPAGEOFF]
b LBB0_2
LBB0_1: ; in Loop: Header=BB0_2 Depth=1
str wzr, [x22]
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x20
mov x1, x19
mov x2, x21
bl _getopt
add w8, w0, #1
cmp w8, #120
b.hi LBB0_15
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
adr x9, LBB0_1
ldrb w10, [x28, x8]
add x9, x9, x10, lsl #2
br x9
LBB0_4: ; in Loop: Header=BB0_2 Depth=1
ldr w0, [x25]
mov w1, #61
bl _strchr
cbz x0, LBB0_6
; %bb.5: ; in Loop: Header=BB0_2 Depth=1
mov w8, #32
strb w8, [x0]
LBB0_6: ; in Loop: Header=BB0_2 Depth=1
ldr w0, [x27]
ldr w2, [x25]
Lloh14:
adrp x1, l_.str.1@PAGE
Lloh15:
add x1, x1, l_.str.1@PAGEOFF
bl _buf_printf
b LBB0_2
LBB0_7: ; in Loop: Header=BB0_2 Depth=1
Lloh16:
adrp x8, _cpponly@GOTPAGE
Lloh17:
ldr x8, [x8, _cpponly@GOTPAGEOFF]
Lloh18:
str w24, [x8]
b LBB0_2
LBB0_8: ; in Loop: Header=BB0_2 Depth=1
ldr w0, [x25]
bl _add_include_path
b LBB0_2
LBB0_9: ; in Loop: Header=BB0_2 Depth=1
Lloh19:
adrp x8, _dumpasm@GOTPAGE
Lloh20:
ldr x8, [x8, _dumpasm@GOTPAGEOFF]
Lloh21:
str w24, [x8]
b LBB0_2
LBB0_10: ; in Loop: Header=BB0_2 Depth=1
ldr w0, [x27]
ldr w2, [x25]
mov x1, x23
bl _buf_printf
b LBB0_2
LBB0_11: ; in Loop: Header=BB0_2 Depth=1
ldr w0, [x25]
bl _parse_warnings_arg
b LBB0_2
LBB0_12: ; in Loop: Header=BB0_2 Depth=1
Lloh22:
adrp x8, _dontlink@GOTPAGE
Lloh23:
ldr x8, [x8, _dontlink@GOTPAGEOFF]
Lloh24:
str w24, [x8]
b LBB0_2
LBB0_13: ; in Loop: Header=BB0_2 Depth=1
ldr w0, [x25]
bl _parse_f_arg
b LBB0_2
LBB0_14: ; in Loop: Header=BB0_2 Depth=1
mov w0, #0
bl _usage
LBB0_15: ; in Loop: Header=BB0_2 Depth=1
mov w0, #1
bl _usage
b LBB0_2
LBB0_16: ; in Loop: Header=BB0_2 Depth=1
ldr w0, [x25]
bl _parse_m_arg
b LBB0_2
LBB0_17: ; in Loop: Header=BB0_2 Depth=1
ldr w8, [x25]
str w8, [x26]
b LBB0_2
LBB0_18:
Lloh25:
adrp x21, _optind@GOTPAGE
Lloh26:
ldr x21, [x21, _optind@GOTPAGEOFF]
ldr w8, [x21]
sub w9, w20, #1
cmp w8, w9
b.eq LBB0_20
; %bb.19:
mov w0, #1
bl _usage
LBB0_20:
Lloh27:
adrp x8, _dumpast@GOTPAGE
Lloh28:
ldr x8, [x8, _dumpast@GOTPAGEOFF]
Lloh29:
ldr w8, [x8]
Lloh30:
adrp x9, _cpponly@GOTPAGE
Lloh31:
ldr x9, [x9, _cpponly@GOTPAGEOFF]
Lloh32:
ldr w9, [x9]
Lloh33:
adrp x10, _dumpasm@GOTPAGE
Lloh34:
ldr x10, [x10, _dumpasm@GOTPAGEOFF]
Lloh35:
ldr w10, [x10]
Lloh36:
adrp x11, _dontlink@GOTPAGE
Lloh37:
ldr x11, [x11, _dontlink@GOTPAGEOFF]
Lloh38:
ldr w11, [x11]
cmp w8, #0
ccmp w9, #0, #0, eq
ccmp w10, #0, #0, eq
ccmp w11, #0, #0, eq
b.ne LBB0_22
; %bb.21:
Lloh39:
adrp x0, l_.str.3@PAGE
Lloh40:
add x0, x0, l_.str.3@PAGEOFF
bl _error
LBB0_22:
ldrsw x8, [x21]
ldr x8, [x19, x8, lsl #3]
Lloh41:
adrp x9, _infile@GOTPAGE
Lloh42:
ldr x9, [x9, _infile@GOTPAGEOFF]
Lloh43:
str x8, [x9]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh12, Lloh13
.loh AdrpLdrGot Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpLdrGotStr Lloh16, Lloh17, Lloh18
.loh AdrpLdrGotStr Lloh19, Lloh20, Lloh21
.loh AdrpLdrGotStr Lloh22, Lloh23, Lloh24
.loh AdrpLdrGot Lloh25, Lloh26
.loh AdrpLdrGotLdr Lloh36, Lloh37, Lloh38
.loh AdrpLdrGotLdr Lloh33, Lloh34, Lloh35
.loh AdrpLdrGotLdr Lloh30, Lloh31, Lloh32
.loh AdrpLdrGotLdr Lloh27, Lloh28, Lloh29
.loh AdrpAdd Lloh39, Lloh40
.loh AdrpLdrGotStr Lloh41, Lloh42, Lloh43
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_18-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_4-LBB0_1)>>2
.byte (LBB0_7-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_8-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_2-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_9-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_10-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_11-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_12-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_13-LBB0_1)>>2
.byte (LBB0_2-LBB0_1)>>2
.byte (LBB0_14-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_16-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_17-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_15-LBB0_1)>>2
.byte (LBB0_1-LBB0_1)>>2
; -- End function
.comm _cppdefs,4,2 ; @cppdefs
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "I:ED:O:SU:W:acd:f:gm:o:hw"
.comm _optarg,4,2 ; @optarg
.comm _cpponly,4,2 ; @cpponly
l_.str.1: ; @.str.1
.asciz "#define %s\n"
.comm _dumpasm,4,2 ; @dumpasm
l_.str.2: ; @.str.2
.asciz "#undef %s\n"
.comm _dontlink,4,2 ; @dontlink
.comm _outfile,4,2 ; @outfile
.comm _enable_warning,4,2 ; @enable_warning
.comm _optind,4,2 ; @optind
.comm _dumpast,4,2 ; @dumpast
l_.str.3: ; @.str.3
.asciz "One of -a, -c, -E or -S must be specified"
.comm _infile,8,3 ; @infile
.no_dead_strip _parseopt
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_parseopt.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function preprocess
_preprocess: ## @preprocess
.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 %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
xorl %eax, %eax
callq _read_token
movq %rax, %rbx
movq (%rax), %rax
movq _TEOF@GOTPCREL(%rip), %r15
cmpq (%r15), %rax
jne LBB0_1
LBB0_7:
movl $10, %edi
callq _putchar
xorl %edi, %edi
callq _exit
LBB0_1:
leaq L_.str.2(%rip), %r14
jmp LBB0_2
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
movq %rbx, %rdi
callq _tok2s
movq %r14, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq _printf
xorl %eax, %eax
callq _read_token
movq %rax, %rbx
movq (%rax), %rax
cmpq (%r15), %rax
je LBB0_7
LBB0_2: ## =>This Inner Loop Header: Depth=1
cmpq $0, 16(%rbx)
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movl $10, %edi
callq _putchar
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
cmpq $0, 8(%rbx)
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_2 Depth=1
movl $32, %edi
callq _putchar
jmp LBB0_6
.cfi_endproc
## -- End function
.comm _TEOF,8,3 ## @TEOF
.section __TEXT,__cstring,cstring_literals
L_.str.2: ## @.str.2
.asciz "%s"
.no_dead_strip _preprocess
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function preprocess
_preprocess: ; @preprocess
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.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
bl _read_token
ldr x8, [x0]
Lloh0:
adrp x21, _TEOF@GOTPAGE
Lloh1:
ldr x21, [x21, _TEOF@GOTPAGEOFF]
ldr x9, [x21]
cmp x8, x9
b.ne LBB0_2
LBB0_1:
mov w0, #10
bl _putchar
mov w0, #0
bl _exit
LBB0_2:
mov x20, x0
Lloh2:
adrp x19, l_.str.2@PAGE
Lloh3:
add x19, x19, l_.str.2@PAGEOFF
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
mov x0, x20
bl _tok2s
str x0, [sp]
mov x0, x19
bl _printf
bl _read_token
mov x20, x0
ldr x8, [x0]
ldr x9, [x21]
cmp x8, x9
b.eq LBB0_1
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [x20, #16]
cbz x8, LBB0_6
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
mov w0, #10
bl _putchar
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x20, #8]
cbz x8, LBB0_3
; %bb.7: ; in Loop: Header=BB0_4 Depth=1
mov w0, #32
bl _putchar
b LBB0_3
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.cfi_endproc
; -- End function
.comm _TEOF,8,3 ; @TEOF
.section __TEXT,__cstring,cstring_literals
l_.str.2: ; @.str.2
.asciz "%s"
.no_dead_strip _preprocess
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_preprocess.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function replace_suffix
_replace_suffix: ## @replace_suffix
.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 %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %esi, %r14d
movq %rdi, %rsi
leaq L_.str(%rip), %rdi
callq _format
movq %rax, %rbx
movq %rax, %rdi
callq _strlen
movslq %eax, %r15
cmpb $99, -1(%rbx,%r15)
je LBB0_2
## %bb.1:
leaq L_.str.1(%rip), %rdi
callq _error
LBB0_2:
movb %r14b, -1(%rbx,%r15)
movq %rbx, %rax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
L_.str.1: ## @.str.1
.asciz "filename suffix is not .c"
.no_dead_strip _replace_suffix
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function replace_suffix
_replace_suffix: ; @replace_suffix
.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
mov x19, x1
mov x1, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _format
mov x20, x0
bl _strlen
add x21, x20, w0, sxtw
ldurb w8, [x21, #-1]
cmp w8, #99
b.eq LBB0_2
; %bb.1:
Lloh2:
adrp x0, l_.str.1@PAGE
Lloh3:
add x0, x0, l_.str.1@PAGEOFF
bl _error
LBB0_2:
sturb w19, [x21, #-1]
mov x0, x20
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
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh2, Lloh3
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s"
l_.str.1: ; @.str.1
.asciz "filename suffix is not .c"
.no_dead_strip _replace_suffix
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_replace_suffix.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function usage
_usage: ## @usage
.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 %edi, %ebx
testl %edi, %edi
jne LBB0_1
## %bb.2:
movq _stdout@GOTPCREL(%rip), %rax
jmp LBB0_3
LBB0_1:
movq _stderr@GOTPCREL(%rip), %rax
LBB0_3:
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _fprintf
movl %ebx, %edi
callq _exit
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.comm _stdout,4,2 ## @stdout
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage: 8cc [ -E ][ -a ] [ -h ] <file>\n\n\n -I<path> add to include path\n -E print preprocessed source code\n -D name Predefine name as a macro\n -D name=def\n -S Stop before assembly (default)\n -c Do not run linker (default)\n -U name Undefine name\n -fdump-ast print AST\n -fdump-stack Print stacktrace\n -fno-dump-source Do not emit source code as assembly comment\n -o filename Output to the specified file\n -g Do nothing at this moment\n -Wall Enable all warnings\n -Werror Make all warnings into errors\n -O<number> Does nothing at this moment\n -m64 Output 64-bit code (default)\n -w Disable all warnings\n -h print this help\n\nOne of -a, -c, -E or -S must be specified.\n\n"
.no_dead_strip _usage
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function usage
_usage: ; @usage
.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
Lloh0:
adrp x8, _stderr@GOTPAGE
Lloh1:
ldr x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
adrp x9, _stdout@GOTPAGE
Lloh3:
ldr x9, [x9, _stdout@GOTPAGEOFF]
cmp w0, #0
csel x8, x9, x8, eq
ldr w0, [x8]
Lloh4:
adrp x1, l_.str@PAGE
Lloh5:
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov x0, x19
bl _exit
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.comm _stdout,4,2 ; @stdout
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage: 8cc [ -E ][ -a ] [ -h ] <file>\n\n\n -I<path> add to include path\n -E print preprocessed source code\n -D name Predefine name as a macro\n -D name=def\n -S Stop before assembly (default)\n -c Do not run linker (default)\n -U name Undefine name\n -fdump-ast print AST\n -fdump-stack Print stacktrace\n -fno-dump-source Do not emit source code as assembly comment\n -o filename Output to the specified file\n -g Do nothing at this moment\n -Wall Enable all warnings\n -Werror Make all warnings into errors\n -O<number> Does nothing at this moment\n -m64 Output 64-bit code (default)\n -w Disable all warnings\n -h print this help\n\nOne of -a, -c, -E or -S must be specified.\n\n"
.no_dead_strip _usage
.subsections_via_symbols
|
AnghaBench/8cc/extr_main.c_usage.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function do_make_map
_do_make_map: ## @do_make_map
.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 %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %esi, %r15d
movq %rdi, %r14
movl $48, %edi
callq _malloc
movq %rax, %rbx
movq %r14, 40(%rax)
movl %r15d, %edi
movl $8, %esi
callq _calloc
movq %rax, 32(%rbx)
movl %r15d, %edi
movl $8, %esi
callq _calloc
movq %rax, 24(%rbx)
movl %r15d, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 8(%rbx)
movq %rbx, %rax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _do_make_map
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function do_make_map
_do_make_map: ; @do_make_map
.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
mov x19, x1
mov x20, x0
mov w0, #48
bl _malloc
mov x21, x0
str x20, [x0, #40]
mov x0, x19
mov w1, #8
bl _calloc
str x0, [x21, #32]
mov x0, x19
mov w1, #8
bl _calloc
stp xzr, x0, [x21, #16]
str w19, [x21]
str xzr, [x21, #8]
mov x0, x21
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 _do_make_map
.subsections_via_symbols
|
AnghaBench/8cc/extr_map.c_do_make_map.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function hash
_hash: ## @hash
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movb (%rdi), %cl
testb %cl, %cl
je LBB0_1
## %bb.2:
incq %rdi
movb $-59, %al
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
xorb %al, %cl
movzbl %cl, %eax
imull $-109, %eax, %eax
movzbl (%rdi), %ecx
incq %rdi
testb %cl, %cl
jne LBB0_3
jmp LBB0_4
LBB0_1:
movb $-59, %al
LBB0_4:
movsbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _hash
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function hash
_hash: ; @hash
.cfi_startproc
; %bb.0:
ldrb w10, [x0]
cbz w10, LBB0_4
; %bb.1:
add x9, x0, #1
mov w8, #197
mov w11, #-109
LBB0_2: ; =>This Inner Loop Header: Depth=1
eor w8, w10, w8
mul w8, w8, w11
ldrb w10, [x9], #1
cbnz w10, LBB0_2
; %bb.3:
sxtb w0, w8
ret
LBB0_4:
mov w8, #197
sxtb w0, w8
ret
.cfi_endproc
; -- End function
.no_dead_strip _hash
.subsections_via_symbols
|
AnghaBench/8cc/extr_map.c_hash.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_map ## -- Begin function make_map
.p2align 4, 0x90
_make_map: ## @make_map
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _INIT_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %esi
xorl %edi, %edi
popq %rbp
jmp _do_make_map ## TAILCALL
.cfi_endproc
## -- End function
.comm _INIT_SIZE,4,2 ## @INIT_SIZE
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_map ; -- Begin function make_map
.p2align 2
_make_map: ; @make_map
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _INIT_SIZE@GOTPAGE
Lloh1:
ldr x8, [x8, _INIT_SIZE@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
mov x0, #0
b _do_make_map
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _INIT_SIZE,4,2 ; @INIT_SIZE
.subsections_via_symbols
|
AnghaBench/8cc/extr_map.c_make_map.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_map_parent ## -- Begin function make_map_parent
.p2align 4, 0x90
_make_map_parent: ## @make_map_parent
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _INIT_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %esi
popq %rbp
jmp _do_make_map ## TAILCALL
.cfi_endproc
## -- End function
.comm _INIT_SIZE,4,2 ## @INIT_SIZE
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_map_parent ; -- Begin function make_map_parent
.p2align 2
_make_map_parent: ; @make_map_parent
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _INIT_SIZE@GOTPAGE
Lloh1:
ldr x8, [x8, _INIT_SIZE@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
b _do_make_map
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _INIT_SIZE,4,2 ; @INIT_SIZE
.subsections_via_symbols
|
AnghaBench/8cc/extr_map.c_make_map_parent.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _map_get ## -- Begin function map_get
.p2align 4, 0x90
_map_get: ## @map_get
.cfi_startproc
## %bb.0:
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
movq %rsi, %r14
movq %rdi, %rbx
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq %rbx, %rdi
movq %r14, %rsi
callq _map_get_nostack
testq %rax, %rax
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq (%rbx), %rbx
testq %rbx, %rbx
jne LBB0_1
LBB0_3:
popq %rbx
popq %r14
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 _map_get ; -- Begin function map_get
.p2align 2
_map_get: ; @map_get
.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, x1
mov x20, x0
LBB0_1: ; =>This Inner Loop Header: Depth=1
mov x0, x20
mov x1, x19
bl _map_get_nostack
cbnz x0, LBB0_3
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
ldr x20, [x20]
cbnz x20, LBB0_1
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_map.c_map_get.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function map_get_nostack
_map_get_nostack: ## @map_get_nostack
.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
cmpq $0, 16(%rdi)
je LBB0_7
## %bb.1:
movq %rsi, %r14
movq %rdi, %r12
movslq (%rdi), %r13
decq %r13
movq %rsi, %rdi
callq _hash
movslq %eax, %rbx
andq %r13, %rbx
movq 16(%r12), %rax
movq (%rax,%rbx,8), %rdi
testq %rdi, %rdi
je LBB0_7
## %bb.2:
movl %ebx, %r15d
jmp LBB0_3
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
incl %r15d
andl %r13d, %r15d
movslq %r15d, %rbx
movq (%rax,%rbx,8), %rdi
testq %rdi, %rdi
je LBB0_7
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq _TOMBSTONE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rdi
je LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq %r14, %rsi
callq _strcmp
testl %eax, %eax
je LBB0_9
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq 16(%r12), %rax
jmp LBB0_6
LBB0_7:
xorl %eax, %eax
LBB0_8:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_9:
movq 8(%r12), %rax
movq (%rax,%rbx,8), %rax
jmp LBB0_8
.cfi_endproc
## -- End function
.comm _TOMBSTONE,8,3 ## @TOMBSTONE
.no_dead_strip _map_get_nostack
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function map_get_nostack
_map_get_nostack: ; @map_get_nostack
.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
ldr x8, [x0, #16]
cbz x8, LBB0_7
; %bb.1:
mov x20, x1
mov x19, x0
ldrsw x8, [x0]
sub x21, x8, #1
mov x0, x1
bl _hash
; kill: def $w0 killed $w0 def $x0
sxtw x8, w0
and x22, x8, x21
ldr x8, [x19, #16]
ldr x0, [x8, x22, lsl #3]
cbz x0, LBB0_9
; %bb.2:
Lloh0:
adrp x23, _TOMBSTONE@GOTPAGE
Lloh1:
ldr x23, [x23, _TOMBSTONE@GOTPAGEOFF]
mov x24, x22
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
add w9, w24, #1
and w24, w9, w21
sxtw x22, w24
ldr x0, [x8, w24, sxtw #3]
cbz x0, LBB0_9
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x9, [x23]
cmp x0, x9
b.eq LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
mov x1, x20
bl _strcmp
cbz w0, LBB0_8
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x19, #16]
b LBB0_3
LBB0_7:
mov x0, #0
b LBB0_9
LBB0_8:
ldr x8, [x19, #8]
ldr x0, [x8, x22, lsl #3]
LBB0_9:
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
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _TOMBSTONE,8,3 ; @TOMBSTONE
.no_dead_strip _map_get_nostack
.subsections_via_symbols
|
AnghaBench/8cc/extr_map.c_map_get_nostack.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _map_len ## -- Begin function map_len
.p2align 4, 0x90
_map_len: ## @map_len
.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
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 _map_len ; -- Begin function map_len
.p2align 2
_map_len: ; @map_len
.cfi_startproc
; %bb.0:
ldr x0, [x0]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_map.c_map_len.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _map_put ## -- Begin function map_put
.p2align 4, 0x90
_map_put: ## @map_put
.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
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
callq _maybe_rehash
movslq (%r12), %r14
decq %r14
movq %rbx, -64(%rbp) ## 8-byte Spill
movq %rbx, %rdi
callq _hash
movq 8(%r12), %r13
movslq %eax, %rbx
andq %r14, %rbx
movq (%r13,%rbx,8), %rdi
testq %rdi, %rdi
sete %al
je LBB0_8
## %bb.1:
movq %r15, -48(%rbp) ## 8-byte Spill
movq _TOMBSTONE@GOTPCREL(%rip), %rcx
movq (%rcx), %r15
cmpq %r15, %rdi
je LBB0_7
## %bb.2:
movq -64(%rbp), %rsi ## 8-byte Reload
callq _strcmp
testl %eax, %eax
movq %r12, -56(%rbp) ## 8-byte Spill
je LBB0_11
## %bb.3:
movl %ebx, %r12d
.p2align 4, 0x90
LBB0_4: ## =>This Inner Loop Header: Depth=1
incl %r12d
andl %r14d, %r12d
movslq %r12d, %rbx
movq (%r13,%rbx,8), %rdi
testq %rdi, %rdi
sete %al
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
cmpq %r15, %rdi
je LBB0_6
## %bb.10: ## in Loop: Header=BB0_4 Depth=1
movq -64(%rbp), %rsi ## 8-byte Reload
callq _strcmp
testl %eax, %eax
jne LBB0_4
LBB0_11:
movq -56(%rbp), %rax ## 8-byte Reload
movq 16(%rax), %rax
movq -48(%rbp), %rcx ## 8-byte Reload
movq %rcx, (%rax,%rbx,8)
jmp LBB0_12
LBB0_6:
movq -56(%rbp), %r12 ## 8-byte Reload
LBB0_7:
movq -48(%rbp), %r15 ## 8-byte Reload
LBB0_8:
movq -64(%rbp), %rcx ## 8-byte Reload
movq %rcx, (%r13,%rbx,8)
movq 16(%r12), %rcx
movq %r15, (%rcx,%rbx,8)
incl 28(%r12)
testb %al, %al
je LBB0_12
## %bb.9:
incl 24(%r12)
LBB0_12:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TOMBSTONE,8,3 ## @TOMBSTONE
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _map_put ; -- Begin function map_put
.p2align 2
_map_put: ; @map_put
.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 x20, x2
mov x21, x1
mov x19, x0
bl _maybe_rehash
ldrsw x8, [x19]
sub x23, x8, #1
mov x0, x21
bl _hash
; kill: def $w0 killed $w0 def $x0
ldr x22, [x19, #8]
Lloh0:
adrp x8, _TOMBSTONE@GOTPAGE
Lloh1:
ldr x8, [x8, _TOMBSTONE@GOTPAGEOFF]
Lloh2:
ldr x25, [x8]
sxtw x8, w0
and x24, x8, x23
ldr x0, [x22, x24, lsl #3]
cmp x0, #0
cset w8, eq
ccmp x0, x25, #4, ne
b.ne LBB0_3
LBB0_1:
lsl x9, x24, #3
str x21, [x22, x9]
ldr x10, [x19, #16]
str x20, [x10, x9]
ldr w9, [x19, #28]
add w9, w9, #1
str w9, [x19, #28]
cbz w8, LBB0_8
; %bb.2:
ldr w8, [x19, #24]
add w8, w8, #1
str w8, [x19, #24]
b LBB0_8
LBB0_3:
mov x1, x21
bl _strcmp
cbz w0, LBB0_7
; %bb.4:
mov x26, x24
LBB0_5: ; =>This Inner Loop Header: Depth=1
add w8, w26, #1
and w26, w8, w23
sxtw x24, w26
ldr x0, [x22, w26, sxtw #3]
cmp x0, #0
cset w8, eq
ccmp x0, x25, #4, ne
b.eq LBB0_1
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
mov x1, x21
bl _strcmp
cbnz w0, LBB0_5
LBB0_7:
ldr x8, [x19, #16]
str x20, [x8, x24, lsl #3]
LBB0_8:
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
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _TOMBSTONE,8,3 ; @TOMBSTONE
.subsections_via_symbols
|
AnghaBench/8cc/extr_map.c_map_put.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _map_remove ## -- Begin function map_remove
.p2align 4, 0x90
_map_remove: ## @map_remove
.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
cmpq $0, 16(%rdi)
je LBB0_7
## %bb.1:
movq %rsi, %r14
movq %rdi, %r15
movslq (%rdi), %r12
decq %r12
movq %rsi, %rdi
callq _hash
movslq %eax, %rbx
andq %r12, %rbx
movq 16(%r15), %rax
movq (%rax,%rbx,8), %rdi
testq %rdi, %rdi
je LBB0_7
## %bb.2:
movl %ebx, %r13d
jmp LBB0_3
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
incl %r13d
andl %r12d, %r13d
movslq %r13d, %rbx
movq (%rax,%rbx,8), %rdi
testq %rdi, %rdi
je LBB0_7
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq _TOMBSTONE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rdi
je LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq %r14, %rsi
callq _strcmp
testq %rax, %rax
je LBB0_8
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq 16(%r15), %rax
jmp LBB0_6
LBB0_8:
movq _TOMBSTONE@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq 16(%r15), %rcx
movq %rax, (%rcx,%rbx,8)
movq 8(%r15), %rax
movq $0, (%rax,%rbx,8)
decl 4(%r15)
LBB0_7:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TOMBSTONE,8,3 ## @TOMBSTONE
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _map_remove ; -- Begin function map_remove
.p2align 2
_map_remove: ; @map_remove
.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
ldr x8, [x0, #16]
cbz x8, LBB0_8
; %bb.1:
mov x20, x1
mov x19, x0
ldrsw x8, [x0]
sub x21, x8, #1
mov x0, x1
bl _hash
; kill: def $w0 killed $w0 def $x0
sxtw x8, w0
and x22, x8, x21
ldr x8, [x19, #16]
ldr x0, [x8, x22, lsl #3]
cbz x0, LBB0_8
; %bb.2:
Lloh0:
adrp x23, _TOMBSTONE@GOTPAGE
Lloh1:
ldr x23, [x23, _TOMBSTONE@GOTPAGEOFF]
mov x24, x22
b LBB0_4
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
add w9, w24, #1
and w24, w9, w21
sxtw x22, w24
ldr x0, [x8, w24, sxtw #3]
cbz x0, LBB0_8
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x9, [x23]
cmp x0, x9
b.eq LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
mov x1, x20
bl _strcmp
cbz x0, LBB0_7
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x19, #16]
b LBB0_3
LBB0_7:
ldr x8, [x23]
ldr x9, [x19, #16]
lsl x10, x22, #3
str x8, [x9, x10]
ldr x8, [x19, #8]
str xzr, [x8, x10]
ldr w8, [x19, #4]
sub w8, w8, #1
str w8, [x19, #4]
LBB0_8:
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
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _TOMBSTONE,8,3 ; @TOMBSTONE
.subsections_via_symbols
|
AnghaBench/8cc/extr_map.c_map_remove.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 maybe_rehash
LCPI0_0:
.quad 0x3fe6666666666666 ## double 0.69999999999999996
LCPI0_1:
.quad 0x3fd6666666666666 ## double 0.34999999999999998
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_maybe_rehash: ## @maybe_rehash
.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
movq %rdi, %r15
movq (%rdi), %r13
testq %r13, %r13
je LBB0_1
## %bb.2:
movl 16(%r15), %r14d
cvtsi2sd %r14d, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm0, %xmm1
ucomisd 24(%r15), %xmm1
ja LBB0_13
## %bb.3:
movsd 32(%r15), %xmm1 ## xmm1 = mem[0],zero
movsd %xmm1, -48(%rbp) ## 8-byte Spill
mulsd LCPI0_1(%rip), %xmm0
ucomisd %xmm1, %xmm0
setbe %cl
movl %r14d, %r12d
shll %cl, %r12d
movl %r12d, %edi
movl $8, %esi
callq _calloc
movq %rax, %rbx
movl %r12d, %edi
movl $8, %esi
callq _calloc
movsd -48(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
movq %rax, -56(%rbp) ## 8-byte Spill
testl %r14d, %r14d
jle LBB0_12
## %bb.4:
movq %r15, -48(%rbp) ## 8-byte Spill
movq %r12, -64(%rbp) ## 8-byte Spill
decl %r12d
xorl %r15d, %r15d
jmp LBB0_5
.p2align 4, 0x90
LBB0_10: ## in Loop: Header=BB0_5 Depth=1
incq %r15
movslq %r14d, %rax
cmpq %rax, %r15
jge LBB0_11
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_8 Depth 2
movq (%r13,%r15,8), %rdi
testq %rdi, %rdi
je LBB0_10
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq _TOMBSTONE@GOTPCREL(%rip), %rax
cmpq (%rax), %rdi
je LBB0_10
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
callq _hash
.p2align 4, 0x90
LBB0_8: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
andl %r12d, %eax
movslq %eax, %rcx
leal 1(%rcx), %eax
cmpq $0, (%rbx,%rcx,8)
jne LBB0_8
## %bb.9: ## in Loop: Header=BB0_5 Depth=1
movq -48(%rbp), %rdx ## 8-byte Reload
movq (%rdx), %r13
movq (%r13,%r15,8), %rax
movq %rax, (%rbx,%rcx,8)
movq 8(%rdx), %rax
movq (%rax,%r15,8), %rax
movq -56(%rbp), %rsi ## 8-byte Reload
movq %rax, (%rsi,%rcx,8)
movl 16(%rdx), %r14d
jmp LBB0_10
LBB0_1:
movq _INIT_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %ebx
movl %ebx, %edi
movl $8, %esi
callq _calloc
movq %rax, (%r15)
movl %ebx, %edi
movl $8, %esi
callq _calloc
movq %rax, 8(%r15)
movl %ebx, 16(%r15)
jmp LBB0_13
LBB0_11:
movq -48(%rbp), %r15 ## 8-byte Reload
movsd 32(%r15), %xmm0 ## xmm0 = mem[0],zero
movq -64(%rbp), %r12 ## 8-byte Reload
LBB0_12:
movq %rbx, (%r15)
movq -56(%rbp), %rax ## 8-byte Reload
movq %rax, 8(%r15)
movl %r12d, 16(%r15)
movsd %xmm0, 24(%r15)
LBB0_13:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _INIT_SIZE,4,2 ## @INIT_SIZE
.comm _TOMBSTONE,8,3 ## @TOMBSTONE
.no_dead_strip _maybe_rehash
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function maybe_rehash
_maybe_rehash: ; @maybe_rehash
.cfi_startproc
; %bb.0:
stp d9, d8, [sp, #-112]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 112
stp x28, x27, [sp, #16] ; 16-byte Folded Spill
stp x26, x25, [sp, #32] ; 16-byte Folded Spill
stp x24, x23, [sp, #48] ; 16-byte Folded Spill
stp x22, x21, [sp, #64] ; 16-byte Folded Spill
stp x20, x19, [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 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
mov x19, x0
ldr x23, [x0]
cbz x23, LBB0_9
; %bb.1:
ldr d1, [x19, #24]
ldr w24, [x19, #16]
scvtf d0, w24
mov x8, #7378697629483820646
movk x8, #16358, lsl #48
fmov d2, x8
fmul d2, d0, d2
fcmp d1, d2
b.mi LBB0_12
; %bb.2:
ldr d8, [x19, #32]
mov x8, #7378697629483820646
movk x8, #16342, lsl #48
fmov d1, x8
fmul d0, d0, d1
fcmp d8, d0
cset w8, pl
lsl w20, w24, w8
mov x0, x20
mov w1, #8
bl _calloc
mov x21, x0
mov x0, x20
mov w1, #8
bl _calloc
mov x22, x0
cmp w24, #1
b.lt LBB0_11
; %bb.3:
mov x25, #0
sub w26, w20, #1
Lloh0:
adrp x27, _TOMBSTONE@GOTPAGE
Lloh1:
ldr x27, [x27, _TOMBSTONE@GOTPAGEOFF]
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_5 Depth=1
add x25, x25, #1
cmp x25, w24, sxtw
b.ge LBB0_10
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr x0, [x23, x25, lsl #3]
ldr x8, [x27]
cmp x0, #0
ccmp x0, x8, #4, ne
b.eq LBB0_4
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
bl _hash
LBB0_7: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
and w8, w0, w26
ldr x9, [x21, w8, sxtw #3]
add w0, w8, #1
cbnz x9, LBB0_7
; %bb.8: ; in Loop: Header=BB0_5 Depth=1
sxtw x8, w8
lsl x8, x8, #3
lsl x9, x25, #3
ldp x23, x10, [x19]
ldr x11, [x23, x9]
str x11, [x21, x8]
ldr x9, [x10, x9]
str x9, [x22, x8]
ldr w24, [x19, #16]
b LBB0_4
LBB0_9:
Lloh2:
adrp x8, _INIT_SIZE@GOTPAGE
Lloh3:
ldr x8, [x8, _INIT_SIZE@GOTPAGEOFF]
Lloh4:
ldr w20, [x8]
mov x0, x20
mov w1, #8
bl _calloc
str x0, [x19]
mov x0, x20
mov w1, #8
bl _calloc
str x0, [x19, #8]
str w20, [x19, #16]
b LBB0_12
LBB0_10:
ldr d8, [x19, #32]
LBB0_11:
stp x21, x22, [x19]
str w20, [x19, #16]
str d8, [x19, #24]
LBB0_12:
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
ldp x20, x19, [sp, #80] ; 16-byte Folded Reload
ldp x22, x21, [sp, #64] ; 16-byte Folded Reload
ldp x24, x23, [sp, #48] ; 16-byte Folded Reload
ldp x26, x25, [sp, #32] ; 16-byte Folded Reload
ldp x28, x27, [sp, #16] ; 16-byte Folded Reload
ldp d9, d8, [sp], #112 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _INIT_SIZE,4,2 ; @INIT_SIZE
.comm _TOMBSTONE,8,3 ; @TOMBSTONE
.no_dead_strip _maybe_rehash
.subsections_via_symbols
|
AnghaBench/8cc/extr_map.c_maybe_rehash.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function assign_string
_assign_string: ## @assign_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 %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 %ecx, %r14d
movq %rdx, -48(%rbp) ## 8-byte Spill
movq %rsi, %r13
movq %rdi, %r15
movl (%rsi), %eax
cmpl $-1, %eax
jne LBB0_2
## %bb.1:
movq -48(%rbp), %rdi ## 8-byte Reload
callq _strlen
incl %eax
movl %eax, 4(%r13)
movl %eax, (%r13)
LBB0_2:
xorl %r12d, %r12d
testl %eax, %eax
jle LBB0_8
## %bb.3:
movq -48(%rbp), %rcx ## 8-byte Reload
movb (%rcx), %cl
testb %cl, %cl
je LBB0_8
## %bb.4:
movl $1, %edx
movq %r14, -56(%rbp) ## 8-byte Spill
movl %r14d, %ebx
.p2align 4, 0x90
LBB0_6: ## =>This Inner Loop Header: Depth=1
movq %rdx, %r12
movsbl %cl, %esi
movq _type_char@GOTPCREL(%rip), %r14
movl (%r14), %edi
callq _ast_inttype
movl (%r14), %esi
movl %eax, %edi
movl %ebx, %edx
callq _ast_init
movq %r15, %rdi
movl %eax, %esi
callq _vec_push
movl (%r13), %eax
cmpl %eax, %r12d
jge LBB0_7
## %bb.5: ## in Loop: Header=BB0_6 Depth=1
movq -48(%rbp), %rcx ## 8-byte Reload
movzbl (%rcx,%r12), %ecx
leaq 1(%r12), %rdx
incl %ebx
testb %cl, %cl
jne LBB0_6
LBB0_7:
movq -56(%rbp), %r14 ## 8-byte Reload
LBB0_8:
cmpl %eax, %r12d
jge LBB0_11
## %bb.9:
movq _type_char@GOTPCREL(%rip), %rbx
.p2align 4, 0x90
LBB0_10: ## =>This Inner Loop Header: Depth=1
movl (%rbx), %edi
xorl %esi, %esi
callq _ast_inttype
movl (%rbx), %esi
leal (%r14,%r12), %edx
movl %eax, %edi
callq _ast_init
movq %r15, %rdi
movl %eax, %esi
callq _vec_push
incl %r12d
cmpl (%r13), %r12d
jl LBB0_10
LBB0_11:
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _type_char,4,2 ## @type_char
.no_dead_strip _assign_string
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function assign_string
_assign_string: ; @assign_string
.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, x3
mov x22, x2
mov x20, x1
mov x21, x0
ldr w8, [x1]
cmn w8, #1
b.eq LBB0_2
; %bb.1:
cmp w8, #1
b.ge LBB0_3
b LBB0_8
LBB0_2:
mov x0, x22
bl _strlen
add w8, w0, #1
stp w8, w8, [x20]
cmp w8, #1
b.lt LBB0_8
LBB0_3:
ldrb w9, [x22]
cbz w9, LBB0_8
; %bb.4:
mov x10, #0
add x22, x22, #1
Lloh0:
adrp x23, _type_char@GOTPAGE
Lloh1:
ldr x23, [x23, _type_char@GOTPAGEOFF]
mov w24, w19
LBB0_5: ; =>This Inner Loop Header: Depth=1
mov x25, x10
sxtb w1, w9
ldr w0, [x23]
bl _ast_inttype
ldr w1, [x23]
add w2, w24, w25
bl _ast_init
mov x1, x0
mov x0, x21
bl _vec_push
add w9, w25, #1
ldr w8, [x20]
cmp w9, w8
b.ge LBB0_7
; %bb.6: ; in Loop: Header=BB0_5 Depth=1
ldrb w9, [x22, x25]
add x10, x25, #1
cbnz w9, LBB0_5
LBB0_7:
add w22, w25, #1
cmp w22, w8
b.lt LBB0_9
b LBB0_11
LBB0_8:
mov w22, #0
cmp w22, w8
b.ge LBB0_11
LBB0_9:
Lloh2:
adrp x23, _type_char@GOTPAGE
Lloh3:
ldr x23, [x23, _type_char@GOTPAGEOFF]
LBB0_10: ; =>This Inner Loop Header: Depth=1
ldr w0, [x23]
mov w1, #0
bl _ast_inttype
ldr w1, [x23]
add w2, w19, w22
bl _ast_init
mov x1, x0
mov x0, x21
bl _vec_push
add w22, w22, #1
ldr w8, [x20]
cmp w22, w8
b.lt LBB0_10
LBB0_11:
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
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh2, Lloh3
.cfi_endproc
; -- End function
.comm _type_char,4,2 ; @type_char
.no_dead_strip _assign_string
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_assign_string.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function backfill_labels
_backfill_labels: ## @backfill_labels
.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
movq _gotos@GOTPCREL(%rip), %r14
movl (%r14), %edi
callq _vec_len
testl %eax, %eax
jle LBB0_7
## %bb.1:
xorl %ebx, %ebx
jmp LBB0_2
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
movq %rax, 16(%r15)
incl %ebx
movl (%r14), %edi
callq _vec_len
cmpl %eax, %ebx
jge LBB0_7
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl (%r14), %edi
movl %ebx, %esi
callq _vec_get
movq %rax, %r15
movq (%rax), %r13
movq _labels@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %r13, %rsi
callq _map_get
movq %rax, %r12
testq %rax, %rax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq 8(%r15), %rax
movq _AST_GOTO@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
leaq L_.str.2(%rip), %rsi
leaq L_.str.1(%rip), %rax
cmoveq %rax, %rsi
leaq L_.str(%rip), %rdi
movq %r13, %rdx
callq _error
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
movq 16(%r12), %rax
testq %rax, %rax
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_2 Depth=1
xorl %eax, %eax
callq _make_label
movq %rax, 16(%r12)
jmp LBB0_6
LBB0_7:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _gotos,4,2 ## @gotos
.comm _labels,4,2 ## @labels
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "stray %s: %s"
.comm _AST_GOTO,8,3 ## @AST_GOTO
L_.str.1: ## @.str.1
.asciz "goto"
L_.str.2: ## @.str.2
.asciz "unary &&"
.no_dead_strip _backfill_labels
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function backfill_labels
_backfill_labels: ; @backfill_labels
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.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
Lloh0:
adrp x24, _gotos@GOTPAGE
Lloh1:
ldr x24, [x24, _gotos@GOTPAGEOFF]
ldr w0, [x24]
bl _vec_len
cmp w0, #1
b.lt LBB0_7
; %bb.1:
mov w19, #0
Lloh2:
adrp x25, _labels@GOTPAGE
Lloh3:
ldr x25, [x25, _labels@GOTPAGEOFF]
Lloh4:
adrp x26, _AST_GOTO@GOTPAGE
Lloh5:
ldr x26, [x26, _AST_GOTO@GOTPAGEOFF]
Lloh6:
adrp x27, l_.str.2@PAGE
Lloh7:
add x27, x27, l_.str.2@PAGEOFF
Lloh8:
adrp x28, l_.str.1@PAGE
Lloh9:
add x28, x28, l_.str.1@PAGEOFF
Lloh10:
adrp x20, l_.str@PAGE
Lloh11:
add x20, x20, l_.str@PAGEOFF
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
str x0, [x21, #16]
add w19, w19, #1
ldr w0, [x24]
bl _vec_len
cmp w19, w0
b.ge LBB0_7
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w0, [x24]
mov x1, x19
bl _vec_get
mov x21, x0
ldr x23, [x0]
ldr w0, [x25]
mov x1, x23
bl _map_get
mov x22, x0
cbz x0, LBB0_5
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [x22, #16]
cbnz x0, LBB0_2
b LBB0_6
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [x21, #8]
ldr x9, [x26]
cmp x8, x9
csel x1, x28, x27, eq
mov x0, x20
mov x2, x23
bl _error
ldr x0, [x22, #16]
cbnz x0, LBB0_2
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
bl _make_label
str x0, [x22, #16]
b LBB0_2
LBB0_7:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
ldp x20, x19, [sp, #64] ; 16-byte Folded Reload
ldp x22, x21, [sp, #48] ; 16-byte Folded Reload
ldp x24, x23, [sp, #32] ; 16-byte Folded Reload
ldp x26, x25, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #96 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.cfi_endproc
; -- End function
.comm _gotos,4,2 ; @gotos
.comm _labels,4,2 ; @labels
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "stray %s: %s"
.comm _AST_GOTO,8,3 ; @AST_GOTO
l_.str.1: ; @.str.1
.asciz "goto"
l_.str.2: ; @.str.2
.asciz "unary &&"
.no_dead_strip _backfill_labels
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_backfill_labels.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function binop
_binop: ## @binop
.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
movq %rdx, %r14
movq %rsi, %rbx
movl %edi, %r15d
movq (%rsi), %rdi
movq (%rdi), %rcx
movq _KIND_PTR@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movq (%r14), %rax
movq (%rax), %rsi
cmpq %rdx, %rcx
jne LBB0_10
## %bb.1:
cmpq %rcx, %rsi
jne LBB0_7
## %bb.2:
movl %r15d, %edi
callq _valid_pointer_binop
testl %eax, %eax
je LBB0_3
## %bb.4:
cmpl $45, %r15d
jne LBB0_6
LBB0_5:
movq _type_long@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl $45, %esi
jmp LBB0_8
LBB0_10:
cmpq %rdx, %rsi
jne LBB0_12
## %bb.11:
movq %rax, %rdi
movl %r15d, %esi
movq %r14, %rdx
movq %rbx, %rcx
jmp LBB0_9
LBB0_12:
callq _is_arithtype
movl %eax, %edi
callq _assert
movq (%r14), %rdi
callq _is_arithtype
movl %eax, %edi
callq _assert
movq (%rbx), %rdi
movq (%r14), %rsi
callq _usual_arith_conv
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
callq _wrap
movq %rax, %rbx
movq %r12, %rdi
movq %r14, %rsi
callq _wrap
movq %r12, %rdi
movl %r15d, %esi
movq %rbx, %rdx
movq %rax, %rcx
jmp LBB0_9
LBB0_3:
leaq L_.str(%rip), %rdi
callq _error
cmpl $45, %r15d
je LBB0_5
LBB0_6:
movq _type_int@GOTPCREL(%rip), %rax
movq (%rax), %rdi
LBB0_7:
movl %r15d, %esi
LBB0_8:
movq %rbx, %rdx
movq %r14, %rcx
LBB0_9:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp _ast_binop ## TAILCALL
.cfi_endproc
## -- End function
.comm _KIND_PTR,8,3 ## @KIND_PTR
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "invalid pointer arith"
.comm _type_long,8,3 ## @type_long
.comm _type_int,8,3 ## @type_int
.no_dead_strip _binop
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function binop
_binop: ; @binop
.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
mov x19, x2
mov x20, x1
mov x21, x0
ldr x0, [x1]
ldr x9, [x0]
Lloh0:
adrp x8, _KIND_PTR@GOTPAGE
Lloh1:
ldr x8, [x8, _KIND_PTR@GOTPAGEOFF]
Lloh2:
ldr x10, [x8]
ldr x8, [x2]
ldr x11, [x8]
cmp x9, x10
b.ne LBB0_5
; %bb.1:
cmp x11, x9
b.ne LBB0_10
; %bb.2:
mov x0, x21
bl _valid_pointer_binop
cbz w0, LBB0_8
; %bb.3:
cmp w21, #45
b.ne LBB0_9
LBB0_4:
Lloh3:
adrp x8, _type_long@GOTPAGE
Lloh4:
ldr x8, [x8, _type_long@GOTPAGEOFF]
Lloh5:
ldr x0, [x8]
mov w1, #45
b LBB0_11
LBB0_5:
cmp x11, x10
b.ne LBB0_7
; %bb.6:
mov x0, x8
mov x1, x21
mov x2, x19
mov x3, x20
b LBB0_12
LBB0_7:
bl _is_arithtype
bl _assert
ldr x0, [x19]
bl _is_arithtype
bl _assert
ldr x0, [x20]
ldr x1, [x19]
bl _usual_arith_conv
mov x22, x0
mov x1, x20
bl _wrap
mov x20, x0
mov x0, x22
mov x1, x19
bl _wrap
mov x3, x0
mov x0, x22
mov x1, x21
mov x2, x20
b LBB0_12
LBB0_8:
Lloh6:
adrp x0, l_.str@PAGE
Lloh7:
add x0, x0, l_.str@PAGEOFF
bl _error
cmp w21, #45
b.eq LBB0_4
LBB0_9:
Lloh8:
adrp x8, _type_int@GOTPAGE
Lloh9:
ldr x8, [x8, _type_int@GOTPAGEOFF]
Lloh10:
ldr x0, [x8]
LBB0_10:
mov x1, x21
LBB0_11:
mov x2, x20
mov x3, x19
LBB0_12:
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
b _ast_binop
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.cfi_endproc
; -- End function
.comm _KIND_PTR,8,3 ; @KIND_PTR
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "invalid pointer arith"
.comm _type_long,8,3 ; @type_long
.comm _type_int,8,3 ; @type_int
.no_dead_strip _binop
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_binop.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function char_type
_char_type: ## @char_type
.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 -128(%rdi), %eax
cmpl $2, %eax
jb LBB0_5
## %bb.1:
cmpl $130, %edi
je LBB0_6
## %bb.2:
cmpl $131, %edi
jne LBB0_7
## %bb.3:
movq _type_ushort@GOTPCREL(%rip), %rax
jmp LBB0_4
LBB0_5:
movq _type_int@GOTPCREL(%rip), %rax
jmp LBB0_4
LBB0_6:
movq _type_uint@GOTPCREL(%rip), %rax
LBB0_4:
movq (%rax), %rax
popq %rbp
retq
LBB0_7:
leaq L_.str(%rip), %rdi
callq _error
## implicit-def: $rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _type_int,8,3 ## @type_int
.comm _type_ushort,8,3 ## @type_ushort
.comm _type_uint,8,3 ## @type_uint
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "internal error"
.no_dead_strip _char_type
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function char_type
_char_type: ; @char_type
.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
sub w8, w0, #128
cmp w8, #2
b.lo LBB0_4
; %bb.1:
cmp w0, #130
b.eq LBB0_5
; %bb.2:
cmp w0, #131
b.ne LBB0_7
; %bb.3:
Lloh0:
adrp x8, _type_ushort@GOTPAGE
Lloh1:
ldr x8, [x8, _type_ushort@GOTPAGEOFF]
b LBB0_6
LBB0_4:
Lloh2:
adrp x8, _type_int@GOTPAGE
Lloh3:
ldr x8, [x8, _type_int@GOTPAGEOFF]
b LBB0_6
LBB0_5:
Lloh4:
adrp x8, _type_uint@GOTPAGE
Lloh5:
ldr x8, [x8, _type_uint@GOTPAGEOFF]
LBB0_6:
ldr x0, [x8]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
LBB0_7:
Lloh6:
adrp x0, l_.str@PAGE
Lloh7:
add x0, x0, l_.str@PAGEOFF
bl _error
; implicit-def: $x0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _type_int,8,3 ; @type_int
.comm _type_ushort,8,3 ; @type_ushort
.comm _type_uint,8,3 ; @type_uint
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "internal error"
.no_dead_strip _char_type
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_char_type.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function check_case_duplicates
_check_case_duplicates: ## @check_case_duplicates
.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
movq %rdi, %r14
callq _vec_len
movl %eax, %r12d
leal -1(%r12), %r15d
movq %r14, %rdi
movl %r15d, %esi
callq _vec_get
cmpl $2, %r12d
jl LBB0_8
## %bb.1:
movq %rax, %rbx
leaq L_.str.1(%rip), %r13
xorl %r12d, %r12d
jmp LBB0_2
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
movq %r13, %rdi
xorl %eax, %eax
callq _error
LBB0_7: ## in Loop: Header=BB0_2 Depth=1
incl %r12d
cmpl %r12d, %r15d
je LBB0_8
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movl %r12d, %esi
callq _vec_get
movq (%rbx), %rdx
cmpq 8(%rax), %rdx
jl LBB0_7
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq 8(%rbx), %rsi
cmpq %rsi, (%rax)
jl LBB0_7
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
cmpq %rdx, %rsi
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_2 Depth=1
leaq L_.str(%rip), %rdi
movq %rdx, %rsi
xorl %eax, %eax
callq _error
movq (%rbx), %rdx
movq 8(%rbx), %rsi
jmp LBB0_6
LBB0_8:
addq $8, %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 "duplicate case value: %d"
L_.str.1: ## @.str.1
.asciz "duplicate case value: %d ... %d"
.no_dead_strip _check_case_duplicates
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function check_case_duplicates
_check_case_duplicates: ; @check_case_duplicates
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.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
mov x19, x0
bl _vec_len
mov x22, x0
sub w20, w0, #1
mov x0, x19
mov x1, x20
bl _vec_get
cmp w22, #2
b.lt LBB0_8
; %bb.1:
mov x21, x0
mov w22, #0
Lloh0:
adrp x23, l_.str@PAGE
Lloh1:
add x23, x23, l_.str@PAGEOFF
Lloh2:
adrp x24, l_.str.1@PAGE
Lloh3:
add x24, x24, l_.str.1@PAGEOFF
b LBB0_4
LBB0_2: ; in Loop: Header=BB0_4 Depth=1
str x1, [sp]
mov x0, x24
mov x1, x8
bl _error
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
add w22, w22, #1
cmp w20, w22
b.eq LBB0_8
LBB0_4: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x22
bl _vec_get
ldr x1, [x21]
ldr x8, [x0, #8]
cmp x1, x8
b.lt LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldr x9, [x0]
ldr x8, [x21, #8]
cmp x9, x8
b.lt LBB0_3
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
cmp x8, x1
b.ne LBB0_2
; %bb.7: ; in Loop: Header=BB0_4 Depth=1
mov x0, x23
bl _error
ldp x1, x8, [x21]
b LBB0_2
LBB0_8:
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
add sp, sp, #80
ret
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "duplicate case value: %d"
l_.str.1: ; @.str.1
.asciz "duplicate case value: %d ... %d"
.no_dead_strip _check_case_duplicates
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_check_case_duplicates.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function comp_init
_comp_init: ## @comp_init
.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 (%rax), %eax
movq (%rsi), %rcx
xorl %edx, %edx
cmpl (%rcx), %eax
setg %dl
movl $-1, %eax
cmovgel %edx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _comp_init
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function comp_init
_comp_init: ; @comp_init
.cfi_startproc
; %bb.0:
ldr x8, [x0]
ldr w8, [x8]
ldr x9, [x1]
ldr w9, [x9]
cmp w8, w9
cset w8, gt
csinv w0, w8, wzr, ge
ret
.cfi_endproc
; -- End function
.no_dead_strip _comp_init
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_comp_init.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function compute_padding
_compute_padding: ## @compute_padding
.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
cltd
idivl %esi
subl %edx, %esi
testl %edx, %edx
cmovel %edx, %esi
movl %esi, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _compute_padding
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function compute_padding
_compute_padding: ; @compute_padding
.cfi_startproc
; %bb.0:
sdiv w8, w0, w1
msub w8, w8, w1, w0
sub w9, w1, w8
cmp w8, #0
csel w0, wzr, w9, eq
ret
.cfi_endproc
; -- End function
.no_dead_strip _compute_padding
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_compute_padding.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function concatenate_string
_concatenate_string: ## @concatenate_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 %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
movq %rdi, %rbx
movl (%rdi), %r13d
xorl %eax, %eax
callq _make_buffer
movq %rax, %r12
movl 16(%rbx), %esi
movq %rbx, -48(%rbp) ## 8-byte Spill
movq 8(%rbx), %rdx
decq %rdx
movq %rax, %rdi
callq _buf_append
xorl %eax, %eax
callq _peek
movq (%rax), %rax
movq _TSTRING@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_7
## %bb.1:
movq _ENC_NONE@GOTPCREL(%rip), %r14
jmp LBB0_2
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
cmpl %eax, %r13d
cmovel %r15d, %r13d
xorl %eax, %eax
callq _peek
movq (%rax), %rax
movq _TSTRING@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_7
LBB0_2: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _read_token
movq %rax, %rbx
movl 16(%rax), %esi
movq 8(%rax), %rdx
decq %rdx
movq %r12, %rdi
callq _buf_append
movl (%rbx), %r15d
movl (%r14), %eax
cmpl %eax, %r13d
je LBB0_6
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
cmpl %eax, %r15d
je LBB0_6
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
cmpl %r15d, %r13d
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_2 Depth=1
movq %rbx, %rdi
callq _tok2s
movq %rbx, %rdi
leaq L_.str(%rip), %rsi
movl %eax, %edx
callq _errort
movl (%r14), %eax
jmp LBB0_6
LBB0_7:
movq %r12, %rdi
xorl %esi, %esi
callq _buf_write
movq %r12, %rdi
callq _buf_body
movq -48(%rbp), %rbx ## 8-byte Reload
movl %eax, 16(%rbx)
movq %r12, %rdi
callq _buf_len
movq %rax, 8(%rbx)
movl %r13d, (%rbx)
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TSTRING,8,3 ## @TSTRING
.comm _ENC_NONE,4,2 ## @ENC_NONE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unsupported non-standard concatenation of string literals: %s"
.no_dead_strip _concatenate_string
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function concatenate_string
_concatenate_string: ; @concatenate_string
.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, x0
ldr w23, [x0]
bl _make_buffer
mov x20, x0
ldr w1, [x19, #16]
ldr x8, [x19, #8]
sub x2, x8, #1
bl _buf_append
bl _peek
ldr x8, [x0]
Lloh0:
adrp x24, _TSTRING@GOTPAGE
Lloh1:
ldr x24, [x24, _TSTRING@GOTPAGEOFF]
ldr x9, [x24]
cmp x8, x9
b.ne LBB0_5
; %bb.1:
Lloh2:
adrp x25, _ENC_NONE@GOTPAGE
Lloh3:
ldr x25, [x25, _ENC_NONE@GOTPAGEOFF]
Lloh4:
adrp x21, l_.str@PAGE
Lloh5:
add x21, x21, l_.str@PAGEOFF
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
cmp w23, w8
csel w23, w26, w23, eq
bl _peek
ldr x8, [x0]
ldr x9, [x24]
cmp x8, x9
b.ne LBB0_5
LBB0_3: ; =>This Inner Loop Header: Depth=1
bl _read_token
mov x22, x0
ldr w1, [x0, #16]
ldr x8, [x0, #8]
sub x2, x8, #1
mov x0, x20
bl _buf_append
ldr w26, [x22]
ldr w8, [x25]
cmp w23, w8
ccmp w26, w8, #4, ne
ccmp w23, w26, #4, ne
b.eq LBB0_2
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
mov x0, x22
bl _tok2s
mov x2, x0
mov x0, x22
mov x1, x21
bl _errort
ldr w8, [x25]
b LBB0_2
LBB0_5:
mov x0, x20
mov w1, #0
bl _buf_write
mov x0, x20
bl _buf_body
str w0, [x19, #16]
mov x0, x20
bl _buf_len
str x0, [x19, #8]
str w23, [x19]
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
ret
.loh AdrpLdrGot Lloh0, Lloh1
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.cfi_endproc
; -- End function
.comm _TSTRING,8,3 ; @TSTRING
.comm _ENC_NONE,4,2 ; @ENC_NONE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unsupported non-standard concatenation of string literals: %s"
.no_dead_strip _concatenate_string
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_concatenate_string.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function conv
_conv: ## @conv
.cfi_startproc
## %bb.0:
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
testq %rdi, %rdi
je LBB0_1
## %bb.2:
movq %rdi, %rbx
movq (%rdi), %rdi
movl (%rdi), %eax
addl $-128, %eax
cmpl $5, %eax
ja LBB0_8
## %bb.3:
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_9:
movq _type_int@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp _ast_conv ## TAILCALL
LBB0_1:
xorl %ebx, %ebx
LBB0_8:
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
LBB0_7:
cmpl $0, 4(%rdi)
jg LBB0_9
jmp LBB0_8
LBB0_5:
movq _AST_ADDR@GOTPCREL(%rip), %rax
movl (%rax), %r14d
jmp LBB0_6
LBB0_4:
movq _AST_CONV@GOTPCREL(%rip), %rax
movl (%rax), %r14d
movq 8(%rdi), %rdi
LBB0_6:
callq _make_ptr_type
movl %r14d, %edi
movl %eax, %esi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmp _ast_uop ## TAILCALL
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
.long L0_0_set_9
.long L0_0_set_7
.long L0_0_set_5
.long L0_0_set_9
.long L0_0_set_9
.long L0_0_set_4
.end_data_region
## -- End function
.comm _AST_CONV,4,2 ## @AST_CONV
.comm _AST_ADDR,4,2 ## @AST_ADDR
.comm _type_int,4,2 ## @type_int
.no_dead_strip _conv
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function conv
_conv: ; @conv
.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
cbz x0, LBB0_5
; %bb.1:
ldr x0, [x19]
ldr w8, [x0]
sub w8, w8, #128
cmp w8, #5
b.hi LBB0_5
; %bb.2:
Lloh0:
adrp x9, lJTI0_0@PAGE
Lloh1:
add x9, x9, lJTI0_0@PAGEOFF
adr x10, LBB0_3
ldrb w11, [x9, x8]
add x10, x10, x11, lsl #2
br x10
LBB0_3:
Lloh2:
adrp x8, _type_int@GOTPAGE
Lloh3:
ldr x8, [x8, _type_int@GOTPAGEOFF]
Lloh4:
ldr w0, [x8]
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _ast_conv
LBB0_4:
ldr w8, [x0, #4]
cmp w8, #1
b.ge LBB0_3
LBB0_5:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_6:
Lloh5:
adrp x8, _AST_ADDR@GOTPAGE
Lloh6:
ldr x8, [x8, _AST_ADDR@GOTPAGEOFF]
Lloh7:
ldr w20, [x8]
b LBB0_8
LBB0_7:
Lloh8:
adrp x8, _AST_CONV@GOTPAGE
Lloh9:
ldr x8, [x8, _AST_CONV@GOTPAGEOFF]
Lloh10:
ldr w20, [x8]
ldr x0, [x0, #8]
LBB0_8:
bl _make_ptr_type
mov x1, x0
mov x0, x20
mov x2, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _ast_uop
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_3-LBB0_3)>>2
.byte (LBB0_4-LBB0_3)>>2
.byte (LBB0_6-LBB0_3)>>2
.byte (LBB0_3-LBB0_3)>>2
.byte (LBB0_3-LBB0_3)>>2
.byte (LBB0_7-LBB0_3)>>2
; -- End function
.comm _AST_CONV,4,2 ; @AST_CONV
.comm _AST_ADDR,4,2 ; @AST_ADDR
.comm _type_int,4,2 ; @type_int
.no_dead_strip _conv
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_conv.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function copy_incomplete_type
_copy_incomplete_type: ## @copy_incomplete_type
.cfi_startproc
## %bb.0:
testq %rdi, %rdi
je LBB0_1
## %bb.2:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
cmpl $-1, (%rdi)
popq %rbp
je LBB0_4
## %bb.3:
movq %rdi, %rax
retq
LBB0_1:
xorl %edi, %edi
movq %rdi, %rax
retq
LBB0_4:
jmp _copy_type ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _copy_incomplete_type
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function copy_incomplete_type
_copy_incomplete_type: ; @copy_incomplete_type
.cfi_startproc
; %bb.0:
cbz x0, LBB0_2
; %bb.1:
ldr w8, [x0]
cmn w8, #1
b.eq LBB0_3
LBB0_2:
ret
LBB0_3:
b _copy_type
.cfi_endproc
; -- End function
.no_dead_strip _copy_incomplete_type
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_copy_incomplete_type.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function copy_type
_copy_type: ## @copy_type
.cfi_startproc
## %bb.0:
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
movq %rdi, %r14
movl $4, %edi
callq _malloc
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
movl $4, %edx
callq _memcpy
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _copy_type
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function copy_type
_copy_type: ; @copy_type
.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
mov w0, #4
bl _malloc
mov x20, x0
mov x1, x19
mov w2, #4
bl _memcpy
mov x0, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _copy_type
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_copy_type.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function define_builtin
_define_builtin: ## @define_builtin
.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
movq %rsi, %rdi
movq %rdx, %rsi
movl $1, %edx
xorl %ecx, %ecx
callq _make_func_type
movl %eax, %edi
movq %rbx, %rsi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _ast_gvar ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _define_builtin
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function define_builtin
_define_builtin: ; @define_builtin
.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
mov x0, x1
mov x1, x2
mov w2, #1
mov w3, #0
bl _make_func_type
mov x1, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _ast_gvar
.cfi_endproc
; -- End function
.no_dead_strip _define_builtin
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_define_builtin.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function do_read_conditional_expr
_do_read_conditional_expr: ## @do_read_conditional_expr
.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
movq %rdi, %r14
xorl %eax, %eax
callq _read_comma_expr
movl %eax, %edi
callq _conv
movq %rax, %r13
movl $58, %edi
callq _expect
xorl %eax, %eax
callq _read_conditional_expr
movl %eax, %edi
callq _conv
movq %rax, %r15
testq %r13, %r13
movq %r13, %rax
cmoveq %r14, %rax
movq (%rax), %r12
movq (%r15), %rbx
movq %r12, %rdi
callq _is_arithtype
testq %rax, %rax
je LBB0_6
## %bb.1:
movq %rbx, %rdi
callq _is_arithtype
testq %rax, %rax
je LBB0_6
## %bb.2:
movq %r12, %rdi
movq %rbx, %rsi
callq _usual_arith_conv
movq %rax, %r12
testq %r13, %r13
je LBB0_3
## %bb.4:
movq %r12, %rdi
movq %r13, %rsi
callq _wrap
movq %rax, %rbx
jmp LBB0_5
LBB0_6:
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
jmp LBB0_7
LBB0_3:
xorl %ebx, %ebx
LBB0_5:
movq %r12, %rdi
movq %r15, %rsi
callq _wrap
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %rax, %rcx
LBB0_7:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _ast_ternary ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _do_read_conditional_expr
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function do_read_conditional_expr
_do_read_conditional_expr: ; @do_read_conditional_expr
.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, x0
bl _read_comma_expr
bl _conv
mov x21, x0
mov w0, #58
bl _expect
bl _read_conditional_expr
bl _conv
mov x20, x0
cmp x21, #0
csel x8, x19, x21, eq
ldr x23, [x8]
ldr x22, [x0]
mov x0, x23
bl _is_arithtype
cbz x0, LBB0_5
; %bb.1:
mov x0, x22
bl _is_arithtype
cbz x0, LBB0_5
; %bb.2:
mov x0, x23
mov x1, x22
bl _usual_arith_conv
mov x22, x0
cbz x21, LBB0_4
; %bb.3:
mov x0, x22
mov x1, x21
bl _wrap
mov x21, x0
LBB0_4:
mov x0, x22
mov x1, x20
bl _wrap
mov x3, x0
mov x0, x22
mov x1, x19
mov x2, x21
b LBB0_6
LBB0_5:
mov x0, x22
mov x1, x19
mov x2, x21
mov x3, x20
LBB0_6:
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 _ast_ternary
.cfi_endproc
; -- End function
.no_dead_strip _do_read_conditional_expr
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_do_read_conditional_expr.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ensure_arithtype
_ensure_arithtype: ## @ensure_arithtype
.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), %edi
callq _is_arithtype
testl %eax, %eax
je LBB0_2
## %bb.1:
addq $8, %rsp
popq %rbx
popq %rbp
retq
LBB0_2:
movq %rbx, %rdi
callq _node2s
leaq L_.str(%rip), %rdi
movl %eax, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _error ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "arithmetic type expected, but got %s"
.no_dead_strip _ensure_arithtype
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ensure_arithtype
_ensure_arithtype: ; @ensure_arithtype
.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 w0, [x0]
bl _is_arithtype
cbz w0, LBB0_2
; %bb.1:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_2:
mov x0, x19
bl _node2s
mov x1, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _error
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "arithmetic type expected, but got %s"
.no_dead_strip _ensure_arithtype
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_ensure_arithtype.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ensure_assignable
_ensure_assignable: ## @ensure_assignable
.cfi_startproc
## %bb.0:
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
movq %rsi, %r14
movq %rdi, %rbx
callq _is_arithtype
testq %rax, %rax
jne LBB0_2
## %bb.1:
movq (%rbx), %rax
movq _KIND_PTR@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
LBB0_2:
movq %r14, %rdi
callq _is_arithtype
testq %rax, %rax
jne LBB0_5
## %bb.3:
movq (%r14), %rax
movq _KIND_PTR@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_5
LBB0_4:
movq %rbx, %rdi
movq %r14, %rsi
callq _is_same_struct
testq %rax, %rax
je LBB0_6
LBB0_5:
popq %rbx
popq %r14
popq %rbp
retq
LBB0_6:
movq %rbx, %rdi
callq _ty2s
movq %rax, %rbx
movq %r14, %rdi
callq _ty2s
leaq L_.str(%rip), %rdi
movq %rbx, %rsi
movq %rax, %rdx
popq %rbx
popq %r14
popq %rbp
jmp _error ## TAILCALL
.cfi_endproc
## -- End function
.comm _KIND_PTR,8,3 ## @KIND_PTR
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "incompatible kind: <%s> <%s>"
.no_dead_strip _ensure_assignable
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ensure_assignable
_ensure_assignable: ; @ensure_assignable
.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, x1
mov x20, x0
bl _is_arithtype
cbnz x0, LBB0_2
; %bb.1:
ldr x8, [x20]
Lloh0:
adrp x9, _KIND_PTR@GOTPAGE
Lloh1:
ldr x9, [x9, _KIND_PTR@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_4
LBB0_2:
mov x0, x19
bl _is_arithtype
cbnz x0, LBB0_5
; %bb.3:
ldr x8, [x19]
Lloh3:
adrp x9, _KIND_PTR@GOTPAGE
Lloh4:
ldr x9, [x9, _KIND_PTR@GOTPAGEOFF]
Lloh5:
ldr x9, [x9]
cmp x8, x9
b.eq LBB0_5
LBB0_4:
mov x0, x20
mov x1, x19
bl _is_same_struct
cbz x0, LBB0_6
LBB0_5:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_6:
mov x0, x20
bl _ty2s
mov x20, x0
mov x0, x19
bl _ty2s
mov x2, x0
Lloh6:
adrp x0, l_.str@PAGE
Lloh7:
add x0, x0, l_.str@PAGEOFF
mov x1, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _error
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.comm _KIND_PTR,8,3 ; @KIND_PTR
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "incompatible kind: <%s> <%s>"
.no_dead_strip _ensure_assignable
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_ensure_assignable.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ensure_inttype
_ensure_inttype: ## @ensure_inttype
.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), %edi
callq _is_inttype
testl %eax, %eax
je LBB0_2
## %bb.1:
addq $8, %rsp
popq %rbx
popq %rbp
retq
LBB0_2:
movq %rbx, %rdi
callq _node2s
leaq L_.str(%rip), %rdi
movl %eax, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _error ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "integer type expected, but got %s"
.no_dead_strip _ensure_inttype
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ensure_inttype
_ensure_inttype: ; @ensure_inttype
.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 w0, [x0]
bl _is_inttype
cbz w0, LBB0_2
; %bb.1:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_2:
mov x0, x19
bl _node2s
mov x1, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _error
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "integer type expected, but got %s"
.no_dead_strip _ensure_inttype
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_ensure_inttype.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ensure_lvalue
_ensure_lvalue: ## @ensure_lvalue
.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
andl $-4, %eax
cmpl $128, %eax
jne LBB0_2
## %bb.1:
popq %rbp
retq
LBB0_2:
callq _node2s
leaq L_.str(%rip), %rdi
movl %eax, %esi
popq %rbp
jmp _error ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "lvalue expected, but got %s"
.no_dead_strip _ensure_lvalue
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ensure_lvalue
_ensure_lvalue: ; @ensure_lvalue
.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
ldr w8, [x0]
and w8, w8, #0xfffffffc
cmp w8, #128
b.ne LBB0_2
; %bb.1:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
LBB0_2:
bl _node2s
mov x1, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _error
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "lvalue expected, but got %s"
.no_dead_strip _ensure_lvalue
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_ensure_lvalue.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function ensure_not_void
_ensure_not_void: ## @ensure_not_void
.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
movq _KIND_VOID@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_1
## %bb.2:
leaq L_.str(%rip), %rdi
popq %rbp
jmp _error ## TAILCALL
LBB0_1:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _KIND_VOID,8,3 ## @KIND_VOID
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "void is not allowed"
.no_dead_strip _ensure_not_void
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function ensure_not_void
_ensure_not_void: ; @ensure_not_void
.cfi_startproc
; %bb.0:
ldr x8, [x0]
Lloh0:
adrp x9, _KIND_VOID@GOTPAGE
Lloh1:
ldr x9, [x9, _KIND_VOID@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_2
; %bb.1:
Lloh3:
adrp x0, l_.str@PAGE
Lloh4:
add x0, x0, l_.str@PAGEOFF
b _error
LBB0_2:
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.cfi_endproc
; -- End function
.comm _KIND_VOID,8,3 ; @KIND_VOID
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "void is not allowed"
.no_dead_strip _ensure_not_void
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_ensure_not_void.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function env
_env: ## @env
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _localenv@GOTPCREL(%rip), %rax
movq (%rax), %rax
testq %rax, %rax
jne LBB0_2
## %bb.1:
movq _globalenv@GOTPCREL(%rip), %rax
movq (%rax), %rax
LBB0_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _localenv,8,3 ## @localenv
.comm _globalenv,8,3 ## @globalenv
.no_dead_strip _env
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function env
_env: ; @env
.cfi_startproc
; %bb.0:
Lloh0:
adrp x8, _localenv@GOTPAGE
Lloh1:
ldr x8, [x8, _localenv@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
Lloh3:
adrp x9, _globalenv@GOTPAGE
Lloh4:
ldr x9, [x9, _globalenv@GOTPAGEOFF]
Lloh5:
ldr x9, [x9]
cmp x8, #0
csel x0, x9, x8, eq
ret
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _localenv,8,3 ; @localenv
.comm _globalenv,8,3 ; @globalenv
.no_dead_strip _env
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_env.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function eval_struct_ref
_eval_struct_ref: ## @eval_struct_ref
.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 %esi, %ebx
movq _AST_STRUCT_REF@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq %rax, (%rdi)
jne LBB0_3
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq 8(%rdi), %rcx
movq 16(%rdi), %rdi
addl (%rcx), %ebx
cmpq %rax, (%rdi)
je LBB0_1
LBB0_3:
xorl %esi, %esi
callq _eval_intexpr
addl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _AST_STRUCT_REF,8,3 ## @AST_STRUCT_REF
.no_dead_strip _eval_struct_ref
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function eval_struct_ref
_eval_struct_ref: ; @eval_struct_ref
.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, x1
mov x8, x0
Lloh0:
adrp x9, _AST_STRUCT_REF@GOTPAGE
Lloh1:
ldr x9, [x9, _AST_STRUCT_REF@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
ldr x10, [x0]
cmp x10, x9
b.ne LBB0_2
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldp x8, x0, [x8, #8]
ldr w8, [x8]
add w19, w8, w19
ldr x10, [x0]
mov x8, x0
cmp x10, x9
b.eq LBB0_1
b LBB0_3
LBB0_2:
mov x0, x8
LBB0_3:
mov x1, #0
bl _eval_intexpr
add w0, w0, w19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _AST_STRUCT_REF,8,3 ; @AST_STRUCT_REF
.no_dead_strip _eval_struct_ref
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_eval_struct_ref.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function expect
_expect: ## @expect
.cfi_startproc
## %bb.0:
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
movl %edi, %r14d
xorl %eax, %eax
callq _get
movq %rax, %rbx
movq %rax, %rdi
movl %r14d, %esi
callq _is_keyword
testl %eax, %eax
je LBB0_2
## %bb.1:
popq %rbx
popq %r14
popq %rbp
retq
LBB0_2:
movq %rbx, %rdi
callq _tok2s
movsbl %r14b, %edx
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
movl %eax, %ecx
popq %rbx
popq %r14
popq %rbp
jmp _errort ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "'%c' expected, but got %s"
.no_dead_strip _expect
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function expect
_expect: ; @expect
.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
bl _get
mov x20, x0
mov x1, x19
bl _is_keyword
cbz w0, LBB0_2
; %bb.1:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_2:
mov x0, x20
bl _tok2s
mov x3, x0
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
mov x0, x20
mov x2, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _errort
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "'%c' expected, but got %s"
.no_dead_strip _expect
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_expect.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function finish_bitfield
_finish_bitfield: ## @finish_bitfield
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl (%rsi), %eax
leal 7(%rax), %ecx
addl $14, %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
sarl $3, %eax
addl %eax, (%rdi)
movl $0, (%rsi)
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _finish_bitfield
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function finish_bitfield
_finish_bitfield: ; @finish_bitfield
.cfi_startproc
; %bb.0:
ldr w8, [x1]
add w9, w8, #7
add w8, w8, #14
cmp w9, #0
csel w8, w8, w9, lt
ldr w9, [x0]
add w8, w9, w8, asr #3
str w8, [x0]
str wzr, [x1]
ret
.cfi_endproc
; -- End function
.no_dead_strip _finish_bitfield
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_finish_bitfield.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function fix_rectype_flexible_member
_fix_rectype_flexible_member: ## @fix_rectype_flexible_member
.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
movq %rdi, %r14
callq _vec_len
testl %eax, %eax
jle LBB0_10
## %bb.1:
xorl %ebx, %ebx
movq _KIND_ARRAY@GOTPCREL(%rip), %r12
jmp LBB0_2
LBB0_8: ## in Loop: Header=BB0_2 Depth=1
movl $0, 8(%r13)
movq $0, 16(%r13)
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_2 Depth=1
incl %ebx
movq %r14, %rdi
callq _vec_len
cmpl %eax, %ebx
jge LBB0_10
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r14, %rdi
movl %ebx, %esi
callq _vec_get
movq 8(%rax), %r13
movq (%r13), %rcx
cmpq (%r12), %rcx
jne LBB0_9
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
cmpl $-1, 8(%r13)
jne LBB0_9
## %bb.4: ## in Loop: Header=BB0_2 Depth=1
movq (%rax), %r15
movq %r14, %rdi
callq _vec_len
decl %eax
cmpl %eax, %ebx
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_2 Depth=1
movq %r13, %rdi
callq _ty2s
leaq L_.str(%rip), %rdi
movl %eax, %esi
movq %r15, %rdx
callq _error
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
movq %r14, %rdi
callq _vec_len
cmpl $1, %eax
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_2 Depth=1
movq %r13, %rdi
callq _ty2s
leaq L_.str.1(%rip), %rdi
movl %eax, %esi
movq %r15, %rdx
callq _error
jmp LBB0_8
LBB0_10:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _KIND_ARRAY,8,3 ## @KIND_ARRAY
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "flexible member may only appear as the last member: %s %s"
L_.str.1: ## @.str.1
.asciz "flexible member with no other fields: %s %s"
.no_dead_strip _fix_rectype_flexible_member
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function fix_rectype_flexible_member
_fix_rectype_flexible_member: ; @fix_rectype_flexible_member
.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, x0
bl _vec_len
cmp w0, #1
b.lt LBB0_10
; %bb.1:
mov w20, #0
Lloh0:
adrp x25, _KIND_ARRAY@GOTPAGE
Lloh1:
ldr x25, [x25, _KIND_ARRAY@GOTPAGEOFF]
Lloh2:
adrp x21, l_.str.1@PAGE
Lloh3:
add x21, x21, l_.str.1@PAGEOFF
Lloh4:
adrp x22, l_.str@PAGE
Lloh5:
add x22, x22, l_.str@PAGEOFF
b LBB0_4
LBB0_2: ; in Loop: Header=BB0_4 Depth=1
str wzr, [x23, #8]
str xzr, [x23, #16]
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
add w20, w20, #1
mov x0, x19
bl _vec_len
cmp w20, w0
b.ge LBB0_10
LBB0_4: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x20
bl _vec_get
ldr x23, [x0, #8]
ldr x8, [x23]
ldr x9, [x25]
cmp x8, x9
b.ne LBB0_3
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [x23, #8]
cmn w8, #1
b.ne LBB0_3
; %bb.6: ; in Loop: Header=BB0_4 Depth=1
ldr x24, [x0]
mov x0, x19
bl _vec_len
sub w8, w0, #1
cmp w20, w8
b.eq LBB0_8
; %bb.7: ; in Loop: Header=BB0_4 Depth=1
mov x0, x23
bl _ty2s
mov x1, x0
mov x0, x22
mov x2, x24
bl _error
LBB0_8: ; in Loop: Header=BB0_4 Depth=1
mov x0, x19
bl _vec_len
cmp w0, #1
b.ne LBB0_2
; %bb.9: ; in Loop: Header=BB0_4 Depth=1
mov x0, x23
bl _ty2s
mov x1, x0
mov x0, x21
mov x2, x24
bl _error
b LBB0_2
LBB0_10:
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
ret
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _KIND_ARRAY,8,3 ; @KIND_ARRAY
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "flexible member may only appear as the last member: %s %s"
l_.str.1: ; @.str.1
.asciz "flexible member with no other fields: %s %s"
.no_dead_strip _fix_rectype_flexible_member
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_fix_rectype_flexible_member.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function get
_get: ## @get
.cfi_startproc
## %bb.0:
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
xorl %eax, %eax
callq _read_token
movq %rax, %rbx
movq (%rax), %rax
movq _TINVALID@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_2
## %bb.1:
movl 8(%rbx), %edx
leaq L_.str(%rip), %rsi
movq %rbx, %rdi
callq _errort
movq (%rbx), %rax
LBB0_2:
movq _TSTRING@GOTPCREL(%rip), %r14
cmpq (%r14), %rax
jne LBB0_5
## %bb.3:
xorl %eax, %eax
callq _peek
movq (%rax), %rax
cmpq (%r14), %rax
jne LBB0_5
## %bb.4:
movq %rbx, %rdi
callq _concatenate_string
LBB0_5:
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TINVALID,8,3 ## @TINVALID
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "stray character in program: '%c'"
.comm _TSTRING,8,3 ## @TSTRING
.no_dead_strip _get
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function get
_get: ; @get
.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
bl _read_token
mov x19, x0
ldr x8, [x0]
Lloh0:
adrp x9, _TINVALID@GOTPAGE
Lloh1:
ldr x9, [x9, _TINVALID@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_2
; %bb.1:
ldr w2, [x19, #8]
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
mov x0, x19
bl _errort
ldr x8, [x19]
LBB0_2:
Lloh5:
adrp x20, _TSTRING@GOTPAGE
Lloh6:
ldr x20, [x20, _TSTRING@GOTPAGEOFF]
ldr x9, [x20]
cmp x8, x9
b.ne LBB0_5
; %bb.3:
bl _peek
ldr x8, [x0]
ldr x9, [x20]
cmp x8, x9
b.ne LBB0_5
; %bb.4:
mov x0, x19
bl _concatenate_string
LBB0_5:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGot Lloh5, Lloh6
.cfi_endproc
; -- End function
.comm _TINVALID,8,3 ; @TINVALID
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "stray character in program: '%c'"
.comm _TSTRING,8,3 ; @TSTRING
.no_dead_strip _get
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_get.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function get_compound_assign_op
_get_compound_assign_op: ## @get_compound_assign_op
.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), %rcx
movq _TKEYWORD@GOTPCREL(%rip), %rdx
xorl %eax, %eax
cmpq (%rdx), %rcx
jne LBB0_14
## %bb.1:
movl 8(%rdi), %ecx
addl $-128, %ecx
cmpl $10, %ecx
ja LBB0_14
## %bb.2:
movl $43, %eax
leaq LJTI0_0(%rip), %rdx
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
LBB0_9:
movl $94, %eax
popq %rbp
retq
LBB0_3:
movl $45, %eax
popq %rbp
retq
LBB0_12:
movq _OP_SHR@GOTPCREL(%rip), %rax
jmp LBB0_13
LBB0_11:
movq _OP_SAR@GOTPCREL(%rip), %rax
jmp LBB0_13
LBB0_10:
movq _OP_SAL@GOTPCREL(%rip), %rax
LBB0_13:
movl (%rax), %eax
LBB0_14:
popq %rbp
retq
LBB0_8:
movl $124, %eax
popq %rbp
retq
LBB0_4:
movl $42, %eax
popq %rbp
retq
LBB0_6:
movl $37, %eax
popq %rbp
retq
LBB0_5:
movl $47, %eax
popq %rbp
retq
LBB0_7:
movl $38, %eax
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
.long L0_0_set_9
.long L0_0_set_3
.long L0_0_set_12
.long L0_0_set_11
.long L0_0_set_10
.long L0_0_set_8
.long L0_0_set_4
.long L0_0_set_6
.long L0_0_set_5
.long L0_0_set_7
.long L0_0_set_14
.end_data_region
## -- End function
.comm _TKEYWORD,8,3 ## @TKEYWORD
.comm _OP_SAL,4,2 ## @OP_SAL
.comm _OP_SAR,4,2 ## @OP_SAR
.comm _OP_SHR,4,2 ## @OP_SHR
.no_dead_strip _get_compound_assign_op
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function get_compound_assign_op
_get_compound_assign_op: ; @get_compound_assign_op
.cfi_startproc
; %bb.0:
ldr x8, [x0]
Lloh0:
adrp x9, _TKEYWORD@GOTPAGE
Lloh1:
ldr x9, [x9, _TKEYWORD@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_4
; %bb.1:
ldr w8, [x0, #8]
sub w8, w8, #128
cmp w8, #10
b.hi LBB0_4
; %bb.2:
mov w0, #43
Lloh3:
adrp x9, lJTI0_0@PAGE
Lloh4:
add x9, x9, lJTI0_0@PAGEOFF
adr x10, LBB0_3
ldrb w11, [x9, x8]
add x10, x10, x11, lsl #2
br x10
LBB0_3:
mov w0, #94
ret
LBB0_4:
mov w0, #0
LBB0_5:
ret
LBB0_6:
mov w0, #45
ret
LBB0_7:
Lloh5:
adrp x8, _OP_SHR@GOTPAGE
Lloh6:
ldr x8, [x8, _OP_SHR@GOTPAGEOFF]
Lloh7:
ldr w0, [x8]
ret
LBB0_8:
Lloh8:
adrp x8, _OP_SAR@GOTPAGE
Lloh9:
ldr x8, [x8, _OP_SAR@GOTPAGEOFF]
Lloh10:
ldr w0, [x8]
ret
LBB0_9:
Lloh11:
adrp x8, _OP_SAL@GOTPAGE
Lloh12:
ldr x8, [x8, _OP_SAL@GOTPAGEOFF]
Lloh13:
ldr w0, [x8]
ret
LBB0_10:
mov w0, #124
ret
LBB0_11:
mov w0, #42
ret
LBB0_12:
mov w0, #37
ret
LBB0_13:
mov w0, #47
ret
LBB0_14:
mov w0, #38
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13
.cfi_endproc
.section __TEXT,__const
lJTI0_0:
.byte (LBB0_3-LBB0_3)>>2
.byte (LBB0_6-LBB0_3)>>2
.byte (LBB0_7-LBB0_3)>>2
.byte (LBB0_8-LBB0_3)>>2
.byte (LBB0_9-LBB0_3)>>2
.byte (LBB0_10-LBB0_3)>>2
.byte (LBB0_11-LBB0_3)>>2
.byte (LBB0_12-LBB0_3)>>2
.byte (LBB0_13-LBB0_3)>>2
.byte (LBB0_14-LBB0_3)>>2
.byte (LBB0_5-LBB0_3)>>2
; -- End function
.comm _TKEYWORD,8,3 ; @TKEYWORD
.comm _OP_SAL,4,2 ; @OP_SAL
.comm _OP_SAR,4,2 ; @OP_SAR
.comm _OP_SHR,4,2 ; @OP_SHR
.no_dead_strip _get_compound_assign_op
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_get_compound_assign_op.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function get_typedef
_get_typedef: ## @get_typedef
.cfi_startproc
## %bb.0:
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
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %eax, %eax
callq _env
movl %eax, %edi
movq %rbx, %rsi
callq _map_get
testq %rax, %rax
je LBB0_4
## %bb.1:
movq (%rax), %rcx
movq _AST_TYPEDEF@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
jne LBB0_2
## %bb.3:
movq 8(%rax), %r14
jmp LBB0_4
LBB0_2:
xorl %r14d, %r14d
LBB0_4:
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _AST_TYPEDEF,8,3 ## @AST_TYPEDEF
.no_dead_strip _get_typedef
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function get_typedef
_get_typedef: ; @get_typedef
.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
bl _env
mov x1, x19
bl _map_get
cbz x0, LBB0_4
; %bb.1:
ldr x8, [x0]
Lloh0:
adrp x9, _AST_TYPEDEF@GOTPAGE
Lloh1:
ldr x9, [x9, _AST_TYPEDEF@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_3
; %bb.2:
ldr x0, [x0, #8]
b LBB0_4
LBB0_3:
mov x0, #0
LBB0_4:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _AST_TYPEDEF,8,3 ; @AST_TYPEDEF
.no_dead_strip _get_typedef
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_get_typedef.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function is_arithtype
_is_arithtype: ## @is_arithtype
.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
callq _is_inttype
movq %rax, %rcx
movl $1, %eax
testq %rcx, %rcx
jne LBB0_2
## %bb.1:
movq %rbx, %rdi
callq _is_flotype
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
setne %al
LBB0_2:
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _is_arithtype
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function is_arithtype
_is_arithtype: ; @is_arithtype
.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
bl _is_inttype
cbz x0, LBB0_2
; %bb.1:
mov w0, #1
b LBB0_3
LBB0_2:
mov x0, x19
bl _is_flotype
cmp x0, #0
cset w0, ne
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.no_dead_strip _is_arithtype
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_is_arithtype.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function is_funcdef
_is_funcdef: ## @is_funcdef
.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
xorl %eax, %eax
callq _make_vector
movq %rax, %r15
movq _TEOF@GOTPCREL(%rip), %r12
leaq L_.str(%rip), %r14
movq _TIDENT@GOTPCREL(%rip), %r13
jmp LBB0_1
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq %rbx, %rdi
movl $40, %esi
callq _is_keyword
testq %rax, %rax
je LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq %r15, %rdi
callq _skip_parentheses
LBB0_1: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _get
movq %rax, %rbx
movq %r15, %rdi
movq %rax, %rsi
callq _vec_push
movq (%rbx), %rax
cmpq (%r12), %rax
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq %r14, %rdi
callq _error
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq %rbx, %rdi
movl $59, %esi
callq _is_keyword
testq %rax, %rax
jne LBB0_4
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq %rbx, %rdi
callq _is_type
testq %rax, %rax
jne LBB0_1
jmp LBB0_6
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq (%rbx), %rax
cmpq (%r13), %rax
jne LBB0_1
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
xorl %eax, %eax
callq _peek
movq %rax, %rdi
movl $40, %esi
callq _is_keyword
testq %rax, %rax
je LBB0_1
## %bb.10:
xorl %eax, %eax
callq _get
movq %r15, %rdi
movq %rax, %rsi
callq _vec_push
movq %r15, %rdi
callq _skip_parentheses
xorl %eax, %eax
callq _peek
movq %rax, %rdi
movl $123, %esi
callq _is_keyword
movl $1, %ebx
testq %rax, %rax
jne LBB0_13
## %bb.11:
xorl %eax, %eax
callq _peek
movq %rax, %rdi
callq _is_type
xorl %ebx, %ebx
testq %rax, %rax
setne %bl
jmp LBB0_13
LBB0_4:
xorl %ebx, %ebx
jmp LBB0_13
.p2align 4, 0x90
LBB0_12: ## in Loop: Header=BB0_13 Depth=1
movq %r15, %rdi
callq _vec_pop
movl %eax, %edi
callq _unget_token
LBB0_13: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
callq _vec_len
testq %rax, %rax
jg LBB0_12
## %bb.14:
movl %ebx, %eax
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TEOF,8,3 ## @TEOF
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "premature end of input"
.comm _TIDENT,8,3 ## @TIDENT
.no_dead_strip _is_funcdef
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function is_funcdef
_is_funcdef: ; @is_funcdef
.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
bl _make_vector
mov x19, x0
Lloh0:
adrp x22, _TEOF@GOTPAGE
Lloh1:
ldr x22, [x22, _TEOF@GOTPAGEOFF]
Lloh2:
adrp x23, _TIDENT@GOTPAGE
Lloh3:
ldr x23, [x23, _TIDENT@GOTPAGEOFF]
Lloh4:
adrp x20, l_.str@PAGE
Lloh5:
add x20, x20, l_.str@PAGEOFF
b LBB0_3
LBB0_1: ; in Loop: Header=BB0_3 Depth=1
mov x0, x21
mov w1, #40
bl _is_keyword
cbz x0, LBB0_7
; %bb.2: ; in Loop: Header=BB0_3 Depth=1
mov x0, x19
bl _skip_parentheses
LBB0_3: ; =>This Inner Loop Header: Depth=1
bl _get
mov x21, x0
mov x0, x19
mov x1, x21
bl _vec_push
ldr x8, [x21]
ldr x9, [x22]
cmp x8, x9
b.ne LBB0_5
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
mov x0, x20
bl _error
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
mov x0, x21
mov w1, #59
bl _is_keyword
cbnz x0, LBB0_11
; %bb.6: ; in Loop: Header=BB0_3 Depth=1
mov x0, x21
bl _is_type
cbnz x0, LBB0_3
b LBB0_1
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [x21]
ldr x9, [x23]
cmp x8, x9
b.ne LBB0_3
; %bb.8: ; in Loop: Header=BB0_3 Depth=1
bl _peek
mov w1, #40
bl _is_keyword
cbz x0, LBB0_3
; %bb.9:
bl _get
mov x1, x0
mov x0, x19
bl _vec_push
mov x0, x19
bl _skip_parentheses
bl _peek
mov w1, #123
bl _is_keyword
cbz x0, LBB0_15
; %bb.10:
mov w20, #1
b LBB0_12
LBB0_11:
mov w20, #0
LBB0_12:
mov x0, x19
bl _vec_len
cmp x0, #1
b.lt LBB0_14
LBB0_13: ; =>This Inner Loop Header: Depth=1
mov x0, x19
bl _vec_pop
bl _unget_token
mov x0, x19
bl _vec_len
cmp x0, #0
b.gt LBB0_13
LBB0_14:
mov x0, x20
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
ret
LBB0_15:
bl _peek
bl _is_type
cmp x0, #0
cset w20, ne
b LBB0_12
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _TEOF,8,3 ; @TEOF
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "premature end of input"
.comm _TIDENT,8,3 ; @TIDENT
.no_dead_strip _is_funcdef
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_is_funcdef.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function is_poweroftwo
_is_poweroftwo: ## @is_poweroftwo
.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
testl %edi, %edi
jle LBB0_1
## %bb.2:
leal -1(%rdi), %ecx
xorl %eax, %eax
testl %ecx, %edi
sete %al
popq %rbp
retq
LBB0_1:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _is_poweroftwo
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function is_poweroftwo
_is_poweroftwo: ; @is_poweroftwo
.cfi_startproc
; %bb.0:
sub w8, w0, #1
tst w0, w8
cset w8, eq
cmp w0, #1
csel w0, wzr, w8, lt
ret
.cfi_endproc
; -- End function
.no_dead_strip _is_poweroftwo
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_is_poweroftwo.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function is_same_struct
_is_same_struct: ## @is_same_struct
.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
movl (%rdi), %eax
cmpl (%rsi), %eax
jne LBB0_6
## %bb.1:
movq %rsi, %rbx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
cmpl $129, %eax
jne LBB0_3
## %bb.9: ## in Loop: Header=BB0_2 Depth=1
movq 16(%rdi), %rdi
movq 16(%rbx), %rbx
movl (%rdi), %eax
cmpl (%rbx), %eax
je LBB0_2
jmp LBB0_6
LBB0_3:
movb $1, %r12b
cmpl $128, %eax
je LBB0_10
## %bb.4:
cmpl $130, %eax
jne LBB0_7
## %bb.5:
movl 24(%rdi), %eax
cmpl 24(%rbx), %eax
jne LBB0_6
## %bb.8:
movq 16(%rdi), %rdi
movq 16(%rbx), %rsi
callq _is_same_struct
testl %eax, %eax
setne %r12b
jmp LBB0_7
LBB0_10:
movl 8(%rdi), %eax
cmpl 8(%rbx), %eax
jne LBB0_6
## %bb.11:
movl 4(%rdi), %edi
callq _dict_keys
movq %rax, %r15
movl 4(%rbx), %edi
callq _dict_keys
movq %rax, %r14
movq %r15, %rdi
callq _vec_len
movl %eax, %ebx
movq %r14, %rdi
callq _vec_len
cmpl %eax, %ebx
jne LBB0_6
## %bb.12:
movq %r15, %rdi
callq _vec_len
testl %eax, %eax
jle LBB0_7
## %bb.13:
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_15: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movl %ebx, %esi
callq _vec_get
movq %rax, %r12
movq %r14, %rdi
movl %ebx, %esi
callq _vec_get
movq %r12, %rdi
movq %rax, %rsi
callq _is_same_struct
movl %eax, %r12d
testl %eax, %eax
je LBB0_16
## %bb.14: ## in Loop: Header=BB0_15 Depth=1
incl %ebx
movq %r15, %rdi
callq _vec_len
cmpl %eax, %ebx
jl LBB0_15
LBB0_16:
testl %r12d, %r12d
setne %r12b
jmp LBB0_7
LBB0_6:
xorl %r12d, %r12d
LBB0_7:
movzbl %r12b, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _is_same_struct
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function is_same_struct
_is_same_struct: ; @is_same_struct
.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
ldr w8, [x0]
ldr w9, [x1]
cmp w8, w9
b.ne LBB0_16
; %bb.1:
mov x20, x1
LBB0_2: ; =>This Inner Loop Header: Depth=1
cmp w8, #129
b.ne LBB0_4
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
ldr x0, [x0, #16]
ldr x20, [x20, #16]
ldr w8, [x0]
ldr w9, [x20]
cmp w8, w9
b.eq LBB0_2
b LBB0_16
LBB0_4:
cmp w8, #128
b.eq LBB0_8
; %bb.5:
cmp w8, #130
b.ne LBB0_18
; %bb.6:
ldr w8, [x0, #24]
ldr w9, [x20, #24]
cmp w8, w9
b.ne LBB0_16
; %bb.7:
ldr x0, [x0, #16]
ldr x1, [x20, #16]
bl _is_same_struct
cmp w0, #0
b LBB0_15
LBB0_8:
ldr w8, [x0, #8]
ldr w9, [x20, #8]
cmp w8, w9
b.ne LBB0_16
; %bb.9:
ldr w0, [x0, #4]
bl _dict_keys
mov x19, x0
ldr w0, [x20, #4]
bl _dict_keys
mov x20, x0
mov x0, x19
bl _vec_len
mov x21, x0
mov x0, x20
bl _vec_len
cmp w21, w0
b.ne LBB0_16
; %bb.10:
mov x0, x19
bl _vec_len
cmp w0, #1
b.lt LBB0_18
; %bb.11:
mov w21, #0
LBB0_12: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x21
bl _vec_get
mov x22, x0
mov x0, x20
mov x1, x21
bl _vec_get
mov x1, x0
mov x0, x22
bl _is_same_struct
mov x22, x0
cbz w0, LBB0_14
; %bb.13: ; in Loop: Header=BB0_12 Depth=1
add w21, w21, #1
mov x0, x19
bl _vec_len
cmp w21, w0
b.lt LBB0_12
LBB0_14:
cmp w22, #0
LBB0_15:
cset w0, ne
b LBB0_17
LBB0_16:
mov w0, #0
LBB0_17:
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
LBB0_18:
mov w0, #1
b LBB0_17
.cfi_endproc
; -- End function
.no_dead_strip _is_same_struct
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_is_same_struct.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function is_string
_is_string: ## @is_string
.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), %rcx
movq _KIND_ARRAY@GOTPCREL(%rip), %rdx
xorl %eax, %eax
cmpq (%rdx), %rcx
jne LBB0_2
## %bb.1:
movq 8(%rdi), %rax
movq (%rax), %rcx
movq _KIND_CHAR@GOTPCREL(%rip), %rdx
xorl %eax, %eax
cmpq (%rdx), %rcx
sete %al
LBB0_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _KIND_ARRAY,8,3 ## @KIND_ARRAY
.comm _KIND_CHAR,8,3 ## @KIND_CHAR
.no_dead_strip _is_string
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function is_string
_is_string: ; @is_string
.cfi_startproc
; %bb.0:
ldr x8, [x0]
Lloh0:
adrp x9, _KIND_ARRAY@GOTPAGE
Lloh1:
ldr x9, [x9, _KIND_ARRAY@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_2
; %bb.1:
ldr x8, [x0, #8]
ldr x8, [x8]
Lloh3:
adrp x9, _KIND_CHAR@GOTPAGE
Lloh4:
ldr x9, [x9, _KIND_CHAR@GOTPAGEOFF]
Lloh5:
ldr x9, [x9]
cmp x8, x9
cset w0, eq
ret
LBB0_2:
mov w0, #0
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _KIND_ARRAY,8,3 ; @KIND_ARRAY
.comm _KIND_CHAR,8,3 ; @KIND_CHAR
.no_dead_strip _is_string
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_is_string.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function make_ast
_make_ast: ## @make_ast
.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 $4, %edi
callq _malloc
movl (%rbx), %ecx
movl %ecx, (%rax)
movq _source_loc@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %ecx, (%rax)
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _source_loc,4,2 ## @source_loc
.no_dead_strip _make_ast
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function make_ast
_make_ast: ; @make_ast
.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
mov w0, #4
bl _malloc
ldr w8, [x19]
str w8, [x0]
Lloh0:
adrp x8, _source_loc@GOTPAGE
Lloh1:
ldr x8, [x8, _source_loc@GOTPAGEOFF]
Lloh2:
ldr w8, [x8]
str w8, [x0]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _source_loc,4,2 ; @source_loc
.no_dead_strip _make_ast
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_make_ast.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function make_case
_make_case: ## @make_case
.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 %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r14
movl %esi, %r15d
movl %edi, %ebx
movl $16, %edi
callq _malloc
movl %ebx, (%rax)
movl %r15d, 4(%rax)
movq %r14, 8(%rax)
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _make_case
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function make_case
_make_case: ; @make_case
.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
mov x19, x2
mov x20, x1
mov x21, x0
mov w0, #16
bl _malloc
stp w21, w20, [x0]
str x19, [x0, #8]
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 _make_case
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_make_case.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_label ## -- Begin function make_label
.p2align 4, 0x90
_make_label: ## @make_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 _make_label.c(%rip), %esi
leal 1(%rsi), %eax
movl %eax, _make_label.c(%rip)
leaq L_.str(%rip), %rdi
## kill: def $esi killed $esi killed $rsi
popq %rbp
jmp _format ## TAILCALL
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_make_label.c,4,2 ## @make_label.c
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz ".L%d"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_label ; -- Begin function make_label
.p2align 2
_make_label: ; @make_label
.cfi_startproc
; %bb.0:
adrp x8, _make_label.c@PAGE
ldr w1, [x8, _make_label.c@PAGEOFF]
add w9, w1, #1
str w9, [x8, _make_label.c@PAGEOFF]
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
b _format
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_make_label.c,4,2 ; @make_label.c
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz ".L%d"
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_make_label.c
|
anghabench
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.