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 make_numtype _make_numtype: ## @make_numtype .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, %ebx movl %edi, %r15d movl $1, %edi movl $16, %esi callq _calloc movq %rax, %r14 movl %r15d, (%rax) movl %ebx, 4(%rax) movq _KIND_VOID@GOTPCREL(%rip), %rax cmpl %r15d, (%rax) jne LBB0_2 ## %bb.1: movq $0, 8(%r14) jmp LBB0_6 LBB0_2: movq _KIND_BOOL@GOTPCREL(%rip), %rax cmpl %r15d, (%rax) je LBB0_4 ## %bb.3: movq _KIND_CHAR@GOTPCREL(%rip), %rax cmpl %r15d, (%rax) jne LBB0_7 LBB0_4: movabsq $4294967297, %rax ## imm = 0x100000001 LBB0_5: movq %rax, 8(%r14) LBB0_6: movq %r14, %rax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_7: movq _KIND_SHORT@GOTPCREL(%rip), %rax cmpl %r15d, (%rax) jne LBB0_9 ## %bb.8: movabsq $8589934594, %rax ## imm = 0x200000002 jmp LBB0_5 LBB0_9: movq _KIND_INT@GOTPCREL(%rip), %rax cmpl %r15d, (%rax) jne LBB0_11 LBB0_10: movabsq $17179869188, %rax ## imm = 0x400000004 jmp LBB0_5 LBB0_11: movq _KIND_LONG@GOTPCREL(%rip), %rax cmpl %r15d, (%rax) je LBB0_16 ## %bb.12: movq _KIND_LLONG@GOTPCREL(%rip), %rax cmpl %r15d, (%rax) je LBB0_16 ## %bb.13: movq _KIND_FLOAT@GOTPCREL(%rip), %rax cmpl %r15d, (%rax) je LBB0_10 ## %bb.14: movq _KIND_DOUBLE@GOTPCREL(%rip), %rax cmpl %r15d, (%rax) je LBB0_16 ## %bb.15: movq _KIND_LDOUBLE@GOTPCREL(%rip), %rax cmpl %r15d, (%rax) jne LBB0_17 LBB0_16: movabsq $34359738376, %rax ## imm = 0x800000008 jmp LBB0_5 LBB0_17: leaq L_.str(%rip), %rdi callq _error jmp LBB0_6 .cfi_endproc ## -- End function .comm _KIND_VOID,4,2 ## @KIND_VOID .comm _KIND_BOOL,4,2 ## @KIND_BOOL .comm _KIND_CHAR,4,2 ## @KIND_CHAR .comm _KIND_SHORT,4,2 ## @KIND_SHORT .comm _KIND_INT,4,2 ## @KIND_INT .comm _KIND_LONG,4,2 ## @KIND_LONG .comm _KIND_LLONG,4,2 ## @KIND_LLONG .comm _KIND_FLOAT,4,2 ## @KIND_FLOAT .comm _KIND_DOUBLE,4,2 ## @KIND_DOUBLE .comm _KIND_LDOUBLE,4,2 ## @KIND_LDOUBLE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "internal error" .no_dead_strip _make_numtype .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function make_numtype _make_numtype: ; @make_numtype .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 x21, x1 mov x20, x0 mov w0, #1 mov w1, #16 bl _calloc mov x19, x0 stp w20, w21, [x0] Lloh0: adrp x8, _KIND_VOID@GOTPAGE Lloh1: ldr x8, [x8, _KIND_VOID@GOTPAGEOFF] Lloh2: ldr w8, [x8] cmp w8, w20 b.ne LBB0_2 ; %bb.1: str xzr, [x19, #8] b LBB0_6 LBB0_2: Lloh3: adrp x8, _KIND_BOOL@GOTPAGE Lloh4: ldr x8, [x8, _KIND_BOOL@GOTPAGEOFF] Lloh5: ldr w8, [x8] cmp w8, w20 b.eq LBB0_4 ; %bb.3: Lloh6: adrp x8, _KIND_CHAR@GOTPAGE Lloh7: ldr x8, [x8, _KIND_CHAR@GOTPAGEOFF] Lloh8: ldr w8, [x8] cmp w8, w20 b.ne LBB0_7 LBB0_4: movi.2s v0, #1 LBB0_5: str d0, [x19, #8] LBB0_6: 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 ret LBB0_7: Lloh9: adrp x8, _KIND_SHORT@GOTPAGE Lloh10: ldr x8, [x8, _KIND_SHORT@GOTPAGEOFF] Lloh11: ldr w8, [x8] cmp w8, w20 b.ne LBB0_9 ; %bb.8: movi.2s v0, #2 b LBB0_5 LBB0_9: Lloh12: adrp x8, _KIND_INT@GOTPAGE Lloh13: ldr x8, [x8, _KIND_INT@GOTPAGEOFF] Lloh14: ldr w8, [x8] cmp w8, w20 b.ne LBB0_11 LBB0_10: movi.2s v0, #4 b LBB0_5 LBB0_11: Lloh15: adrp x8, _KIND_LONG@GOTPAGE Lloh16: ldr x8, [x8, _KIND_LONG@GOTPAGEOFF] Lloh17: ldr w8, [x8] cmp w8, w20 b.eq LBB0_16 ; %bb.12: Lloh18: adrp x8, _KIND_LLONG@GOTPAGE Lloh19: ldr x8, [x8, _KIND_LLONG@GOTPAGEOFF] Lloh20: ldr w8, [x8] cmp w8, w20 b.eq LBB0_16 ; %bb.13: Lloh21: adrp x8, _KIND_FLOAT@GOTPAGE Lloh22: ldr x8, [x8, _KIND_FLOAT@GOTPAGEOFF] Lloh23: ldr w8, [x8] cmp w8, w20 b.eq LBB0_10 ; %bb.14: Lloh24: adrp x8, _KIND_DOUBLE@GOTPAGE Lloh25: ldr x8, [x8, _KIND_DOUBLE@GOTPAGEOFF] Lloh26: ldr w8, [x8] cmp w8, w20 b.eq LBB0_16 ; %bb.15: Lloh27: adrp x8, _KIND_LDOUBLE@GOTPAGE Lloh28: ldr x8, [x8, _KIND_LDOUBLE@GOTPAGEOFF] Lloh29: ldr w8, [x8] cmp w8, w20 b.ne LBB0_17 LBB0_16: movi.2s v0, #8 b LBB0_5 LBB0_17: Lloh30: adrp x0, l_.str@PAGE Lloh31: add x0, x0, l_.str@PAGEOFF bl _error b LBB0_6 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14 .loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17 .loh AdrpLdrGotLdr Lloh18, Lloh19, Lloh20 .loh AdrpLdrGotLdr Lloh21, Lloh22, Lloh23 .loh AdrpLdrGotLdr Lloh24, Lloh25, Lloh26 .loh AdrpLdrGotLdr Lloh27, Lloh28, Lloh29 .loh AdrpAdd Lloh30, Lloh31 .cfi_endproc ; -- End function .comm _KIND_VOID,4,2 ; @KIND_VOID .comm _KIND_BOOL,4,2 ; @KIND_BOOL .comm _KIND_CHAR,4,2 ; @KIND_CHAR .comm _KIND_SHORT,4,2 ; @KIND_SHORT .comm _KIND_INT,4,2 ; @KIND_INT .comm _KIND_LONG,4,2 ; @KIND_LONG .comm _KIND_LLONG,4,2 ; @KIND_LLONG .comm _KIND_FLOAT,4,2 ; @KIND_FLOAT .comm _KIND_DOUBLE,4,2 ; @KIND_DOUBLE .comm _KIND_LDOUBLE,4,2 ; @KIND_LDOUBLE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "internal error" .no_dead_strip _make_numtype .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_make_numtype.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _make_pair ## -- Begin function make_pair .p2align 4, 0x90 _make_pair: ## @make_pair .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 movl $16, %edi callq _malloc movq %rbx, (%rax) movq %r14, 8(%rax) 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 _make_pair ; -- Begin function make_pair .p2align 2 _make_pair: ; @make_pair .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 mov w0, #16 bl _malloc stp x20, x19, [x0] 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_parse.c_make_pair.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function make_static_label _make_static_label: ## @make_static_label .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, %rdx movl _make_static_label.c(%rip), %esi leal 1(%rsi), %eax movl %eax, _make_static_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_static_label.c,4,2 ## @make_static_label.c .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz ".S%d.%s" .no_dead_strip _make_static_label .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function make_static_label _make_static_label: ; @make_static_label .cfi_startproc ; %bb.0: mov x2, x0 adrp x8, _make_static_label.c@PAGE ldr w1, [x8, _make_static_label.c@PAGEOFF] add w9, w1, #1 str w9, [x8, _make_static_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_static_label.c,4,2 ; @make_static_label.c .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz ".S%d.%s" .no_dead_strip _make_static_label .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_make_static_label.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function make_switch_jump _make_switch_jump: ## @make_switch_jump .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, %r15 movq %rdi, %r14 movq (%rsi), %rsi movq _type_int@GOTPCREL(%rip), %r13 movl (%r13), %ebx cmpq 8(%r15), %rsi jne LBB0_2 ## %bb.1: movq _OP_EQ@GOTPCREL(%rip), %rax movl (%rax), %r12d movl %ebx, %edi callq _ast_inttype movl %ebx, %edi movl %r12d, %esi movq %r14, %rdx jmp LBB0_3 LBB0_2: movq _OP_LE@GOTPCREL(%rip), %rcx movl (%rcx), %r12d movl %ebx, %edi callq _ast_inttype movl %ebx, %edi movl %r12d, %esi movq %rax, %rdx movq %r14, %rcx callq _ast_binop movq %rax, %r12 movl (%r13), %ebx movq _OP_LE@GOTPCREL(%rip), %rax movl (%rax), %r13d movq 8(%r15), %rsi movl %ebx, %edi callq _ast_inttype movl %ebx, %edi movl %r13d, %esi movq %r14, %rdx movq %rax, %rcx callq _ast_binop movq _type_int@GOTPCREL(%rip), %rcx movl (%rcx), %edi movq _OP_LOGAND@GOTPCREL(%rip), %rcx movl (%rcx), %esi movq %r12, %rdx LBB0_3: movq %rax, %rcx callq _ast_binop movq %rax, %rbx movl 16(%r15), %edi callq _ast_jump movq %rbx, %rdi movl %eax, %esi xorl %edx, %edx addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _ast_if ## TAILCALL .cfi_endproc ## -- End function .comm _type_int,4,2 ## @type_int .comm _OP_EQ,4,2 ## @OP_EQ .comm _OP_LE,4,2 ## @OP_LE .comm _OP_LOGAND,4,2 ## @OP_LOGAND .no_dead_strip _make_switch_jump .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function make_switch_jump _make_switch_jump: ; @make_switch_jump .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, x1 mov x20, x0 ldr x1, [x1] ldr x8, [x19, #8] Lloh0: adrp x24, _type_int@GOTPAGE Lloh1: ldr x24, [x24, _type_int@GOTPAGEOFF] ldr w21, [x24] cmp x1, x8 b.ne LBB0_2 ; %bb.1: Lloh2: adrp x8, _OP_EQ@GOTPAGE Lloh3: ldr x8, [x8, _OP_EQ@GOTPAGEOFF] Lloh4: ldr w22, [x8] mov x0, x21 bl _ast_inttype mov x3, x0 mov x0, x21 mov x1, x22 mov x2, x20 b LBB0_3 LBB0_2: Lloh5: adrp x23, _OP_LE@GOTPAGE Lloh6: ldr x23, [x23, _OP_LE@GOTPAGEOFF] ldr w22, [x23] mov x0, x21 bl _ast_inttype mov x2, x0 mov x0, x21 mov x1, x22 mov x3, x20 bl _ast_binop mov x21, x0 ldr w22, [x24] ldr w23, [x23] ldr x1, [x19, #8] mov x0, x22 bl _ast_inttype mov x3, x0 mov x0, x22 mov x1, x23 mov x2, x20 bl _ast_binop mov x3, x0 ldr w0, [x24] Lloh7: adrp x8, _OP_LOGAND@GOTPAGE Lloh8: ldr x8, [x8, _OP_LOGAND@GOTPAGEOFF] Lloh9: ldr w1, [x8] mov x2, x21 LBB0_3: bl _ast_binop mov x20, x0 ldr w0, [x19, #16] bl _ast_jump mov x1, x0 mov x0, x20 mov x2, #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 b _ast_if .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9 .loh AdrpLdrGot Lloh5, Lloh6 .cfi_endproc ; -- End function .comm _type_int,4,2 ; @type_int .comm _OP_EQ,4,2 ; @OP_EQ .comm _OP_LE,4,2 ; @OP_LE .comm _OP_LOGAND,4,2 ; @OP_LOGAND .no_dead_strip _make_switch_jump .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_make_switch_jump.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _make_tempname ## -- Begin function make_tempname .p2align 4, 0x90 _make_tempname: ## @make_tempname .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_tempname.c(%rip), %esi leal 1(%rsi), %eax movl %eax, _make_tempname.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_tempname.c,4,2 ## @make_tempname.c .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz ".T%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _make_tempname ; -- Begin function make_tempname .p2align 2 _make_tempname: ; @make_tempname .cfi_startproc ; %bb.0: adrp x8, _make_tempname.c@PAGE ldr w1, [x8, _make_tempname.c@PAGEOFF] add w9, w1, #1 str w9, [x8, _make_tempname.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_tempname.c,4,2 ; @make_tempname.c .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz ".T%d" .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_make_tempname.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function make_type _make_type: ## @make_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 %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl $4, %edi callq _malloc movl (%rbx), %ecx movl %ecx, (%rax) addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _make_type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function make_type _make_type: ; @make_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 ldr w8, [x19] str w8, [x0] 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 _make_type .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_make_type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function mark_location _mark_location: ## @mark_location .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 _peek movq %rax, %rbx movl $4, %edi callq _malloc movq _source_loc@GOTPCREL(%rip), %rcx movq %rax, (%rcx) movq 8(%rbx), %rcx movl (%rcx), %ecx movl %ecx, 4(%rax) movl (%rbx), %ecx movl %ecx, (%rax) addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _source_loc,8,3 ## @source_loc .no_dead_strip _mark_location .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function mark_location _mark_location: ; @mark_location .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 _peek mov x19, x0 mov w0, #4 bl _malloc Lloh0: adrp x8, _source_loc@GOTPAGE Lloh1: ldr x8, [x8, _source_loc@GOTPAGEOFF] Lloh2: str x0, [x8] ldr x8, [x19, #8] ldr w8, [x8] ldr w9, [x19] stp w9, w8, [x0] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotStr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _source_loc,8,3 ; @source_loc .no_dead_strip _mark_location .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_mark_location.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function maybe_read_brace _maybe_read_brace: ## @maybe_read_brace .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $123, %edi popq %rbp jmp _next_token ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _maybe_read_brace .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function maybe_read_brace _maybe_read_brace: ; @maybe_read_brace .cfi_startproc ; %bb.0: mov w0, #123 b _next_token .cfi_endproc ; -- End function .no_dead_strip _maybe_read_brace .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_maybe_read_brace.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function maybe_skip_comma _maybe_skip_comma: ## @maybe_skip_comma .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $44, %edi popq %rbp jmp _next_token ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _maybe_skip_comma .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function maybe_skip_comma _maybe_skip_comma: ; @maybe_skip_comma .cfi_startproc ; %bb.0: mov w0, #44 b _next_token .cfi_endproc ; -- End function .no_dead_strip _maybe_skip_comma .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_maybe_skip_comma.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function next_token _next_token: ## @next_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 movl %edi, %r14d xorl %eax, %eax callq _get movq %rax, %rbx movq %rax, %rdi movl %r14d, %esi callq _is_keyword movq %rax, %rcx movl $1, %eax testq %rcx, %rcx jne LBB0_2 ## %bb.1: movq %rbx, %rdi callq _unget_token xorl %eax, %eax LBB0_2: popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _next_token .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function next_token _next_token: ; @next_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 x20, x0 bl _get mov x19, x0 mov x1, x20 bl _is_keyword cbz x0, LBB0_2 ; %bb.1: mov w0, #1 b LBB0_3 LBB0_2: mov x0, x19 bl _unget_token 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_token .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_next_token.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function param_types _param_types: ## @param_types .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, %r14 xorl %ebx, %ebx xorl %eax, %eax callq _make_vector movq %rax, %r15 movq %r14, %rdi callq _vec_len testl %eax, %eax jle LBB0_2 .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi movl %ebx, %esi callq _vec_get movl (%rax), %esi movq %r15, %rdi callq _vec_push incl %ebx movq %r14, %rdi callq _vec_len cmpl %eax, %ebx jl LBB0_1 LBB0_2: movq %r15, %rax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _param_types .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function param_types _param_types: ; @param_types .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_vector mov x20, x0 mov x0, x19 bl _vec_len cmp w0, #1 b.lt LBB0_3 ; %bb.1: mov w21, #0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x19 mov x1, x21 bl _vec_get ldr w1, [x0] mov x0, x20 bl _vec_push add w21, w21, #1 mov x0, x19 bl _vec_len cmp w21, w0 b.lt LBB0_2 LBB0_3: 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 .cfi_endproc ; -- End function .no_dead_strip _param_types .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_param_types.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _parse_init ## -- Begin function parse_init .p2align 4, 0x90 _parse_init: ## @parse_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 _type_void@GOTPCREL(%rip), %r15 movl (%r15), %edi callq _make_ptr_type movl %eax, %edi callq _make_vector1 movq %rax, %r14 xorl %eax, %eax callq _make_vector movq %rax, %rbx movl (%r15), %edi callq _make_ptr_type movq %rbx, %rdi movl %eax, %esi callq _vec_push movl (%r15), %edi callq _make_ptr_type movq %rbx, %rdi movl %eax, %esi callq _vec_push movl (%r15), %edi callq _make_ptr_type leaq L_.str(%rip), %rdi movl %eax, %esi movq %r14, %rdx callq _define_builtin movq _type_int@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdi movq %r14, %rdx callq _define_builtin movl (%r15), %esi leaq L_.str.2(%rip), %rdi movq %rbx, %rdx callq _define_builtin movl (%r15), %esi leaq L_.str.3(%rip), %rdi movq %r14, %rdx addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _define_builtin ## TAILCALL .cfi_endproc ## -- End function .comm _type_void,4,2 ## @type_void .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "__builtin_return_address" L_.str.1: ## @.str.1 .asciz "__builtin_reg_class" .comm _type_int,4,2 ## @type_int L_.str.2: ## @.str.2 .asciz "__builtin_va_arg" L_.str.3: ## @.str.3 .asciz "__builtin_va_start" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _parse_init ; -- Begin function parse_init .p2align 2 _parse_init: ; @parse_init .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 x21, _type_void@GOTPAGE Lloh1: ldr x21, [x21, _type_void@GOTPAGEOFF] ldr w0, [x21] bl _make_ptr_type bl _make_vector1 mov x19, x0 bl _make_vector mov x20, x0 ldr w0, [x21] bl _make_ptr_type mov x1, x0 mov x0, x20 bl _vec_push ldr w0, [x21] bl _make_ptr_type mov x1, x0 mov x0, x20 bl _vec_push ldr w0, [x21] bl _make_ptr_type mov x1, x0 Lloh2: adrp x0, l_.str@PAGE Lloh3: add x0, x0, l_.str@PAGEOFF mov x2, x19 bl _define_builtin Lloh4: adrp x8, _type_int@GOTPAGE Lloh5: ldr x8, [x8, _type_int@GOTPAGEOFF] Lloh6: ldr w1, [x8] Lloh7: adrp x0, l_.str.1@PAGE Lloh8: add x0, x0, l_.str.1@PAGEOFF mov x2, x19 bl _define_builtin ldr w1, [x21] Lloh9: adrp x0, l_.str.2@PAGE Lloh10: add x0, x0, l_.str.2@PAGEOFF mov x2, x20 bl _define_builtin ldr w1, [x21] Lloh11: adrp x0, l_.str.3@PAGE Lloh12: add x0, x0, l_.str.3@PAGEOFF mov x2, 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 _define_builtin .loh AdrpAdd Lloh11, Lloh12 .loh AdrpAdd Lloh9, Lloh10 .loh AdrpAdd Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _type_void,4,2 ; @type_void .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "__builtin_return_address" l_.str.1: ; @.str.1 .asciz "__builtin_reg_class" .comm _type_int,4,2 ; @type_int l_.str.2: ; @.str.2 .asciz "__builtin_va_arg" l_.str.3: ; @.str.3 .asciz "__builtin_va_start" .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_parse_init.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 xorl %eax, %eax popq %rbp jmp _peek_token ## TAILCALL .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: b _peek_token .cfi_endproc ; -- End function .no_dead_strip _peek .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_peek.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_abstract_declarator _read_abstract_declarator: ## @read_abstract_declarator .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 _DECL_CAST@GOTPCREL(%rip), %rax movl (%rax), %ecx xorl %edi, %edi xorl %edx, %edx popq %rbp jmp _read_declarator ## TAILCALL .cfi_endproc ## -- End function .comm _DECL_CAST,4,2 ## @DECL_CAST .no_dead_strip _read_abstract_declarator .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_abstract_declarator _read_abstract_declarator: ; @read_abstract_declarator .cfi_startproc ; %bb.0: mov x1, x0 Lloh0: adrp x8, _DECL_CAST@GOTPAGE Lloh1: ldr x8, [x8, _DECL_CAST@GOTPAGEOFF] Lloh2: ldr w3, [x8] mov x0, #0 mov x2, #0 b _read_declarator .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _DECL_CAST,4,2 ; @DECL_CAST .no_dead_strip _read_abstract_declarator .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_abstract_declarator.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_additive_expr _read_additive_expr: ## @read_additive_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 %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 xorl %eax, %eax callq _read_multiplicative_expr jmp LBB0_1 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq %r14, %rdi callq _conv movl %eax, %r14d xorl %eax, %eax callq _read_multiplicative_expr movq %rax, %rdi callq _conv movzbl %bl, %edi movl %r14d, %esi movl %eax, %edx callq _binop LBB0_1: ## =>This Inner Loop Header: Depth=1 movq %rax, %r14 movl $43, %edi callq _next_token movb $43, %bl testq %rax, %rax jne LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $45, %edi callq _next_token movb $45, %bl testq %rax, %rax jne LBB0_4 ## %bb.3: movq %r14, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_additive_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_additive_expr _read_additive_expr: ; @read_additive_expr .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_multiplicative_expr b LBB0_2 LBB0_1: ; in Loop: Header=BB0_2 Depth=1 mov x0, x20 bl _conv mov x20, x0 bl _read_multiplicative_expr bl _conv mov x2, x0 mov x0, x19 mov x1, x20 bl _binop LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x20, x0 mov w19, #43 mov w0, #43 bl _next_token cbnz x0, LBB0_1 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 mov w19, #45 mov w0, #45 bl _next_token cbnz x0, LBB0_1 ; %bb.4: 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 _read_additive_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_additive_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_alignas _read_alignas: ## @read_alignas .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 $40, %edi callq _expect xorl %eax, %eax callq _peek movl %eax, %edi callq _is_type testq %rax, %rax je LBB0_2 ## %bb.1: xorl %eax, %eax callq _read_cast_type movl (%rax), %ebx jmp LBB0_3 LBB0_2: xorl %eax, %eax callq _read_intexpr movl %eax, %ebx LBB0_3: movl $41, %edi callq _expect movl %ebx, %eax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_alignas .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_alignas _read_alignas: ; @read_alignas .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov w0, #40 bl _expect bl _peek bl _is_type cbz x0, LBB0_2 ; %bb.1: bl _read_cast_type ldr w19, [x0] b LBB0_3 LBB0_2: bl _read_intexpr mov x19, x0 LBB0_3: mov w0, #41 bl _expect 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_alignas .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_alignas.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_alignof_operand _read_alignof_operand: ## @read_alignof_operand .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 $40, %edi callq _expect xorl %eax, %eax callq _read_cast_type movq %rax, %rbx movl $41, %edi callq _expect movq _type_ulong@GOTPCREL(%rip), %rax movl (%rax), %edi movl (%rbx), %esi addq $8, %rsp popq %rbx popq %rbp jmp _ast_inttype ## TAILCALL .cfi_endproc ## -- End function .comm _type_ulong,4,2 ## @type_ulong .no_dead_strip _read_alignof_operand .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_alignof_operand _read_alignof_operand: ; @read_alignof_operand .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov w0, #40 bl _expect bl _read_cast_type mov x19, x0 mov w0, #41 bl _expect Lloh0: adrp x8, _type_ulong@GOTPAGE Lloh1: ldr x8, [x8, _type_ulong@GOTPAGEOFF] Lloh2: ldr w0, [x8] ldr w1, [x19] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_inttype .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _type_ulong,4,2 ; @type_ulong .no_dead_strip _read_alignof_operand .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_alignof_operand.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_array_initializer _read_array_initializer: ## @read_array_initializer .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 _read_array_initializer_sub movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _sort_inits ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_array_initializer .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_array_initializer _read_array_initializer: ; @read_array_initializer .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 _read_array_initializer_sub mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _sort_inits .cfi_endproc ; -- End function .no_dead_strip _read_array_initializer .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_array_initializer.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_array_initializer_sub _read_array_initializer_sub: ## @read_array_initializer_sub .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, %r13d movl %edx, -52(%rbp) ## 4-byte Spill movq %rsi, %r14 movq %rdi, -64(%rbp) ## 8-byte Spill xorl %eax, %eax callq _maybe_read_brace movl %eax, -44(%rbp) ## 4-byte Spill movl (%r14), %r12d movq 8(%r14), %rax movl (%rax), %eax movl %eax, -48(%rbp) ## 4-byte Spill xorl %ebx, %ebx jmp LBB0_1 .p2align 4, 0x90 LBB0_18: ## in Loop: Header=BB0_1 Depth=1 movq %r15, %rdi callq _unget_token LBB0_19: ## in Loop: Header=BB0_1 Depth=1 movq 8(%r14), %rsi movl %ebx, %edx imull -48(%rbp), %edx ## 4-byte Folded Reload addl -52(%rbp), %edx ## 4-byte Folded Reload movq -64(%rbp), %rdi ## 8-byte Reload movl %r13d, %ecx callq _read_initializer_elem xorl %r13d, %r13d xorl %eax, %eax callq _maybe_skip_comma incl %ebx LBB0_1: ## =>This Inner Loop Header: Depth=1 testl %r12d, %r12d jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl (%r14), %eax cmpl %eax, %ebx jge LBB0_20 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _get movq %rax, %r15 movq %rax, %rdi movl $125, %esi callq _is_keyword testq %rax, %rax jne LBB0_4 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 movq %r15, %rdi movl $46, %esi callq _is_keyword testq %rax, %rax je LBB0_7 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl %r13d, %eax orl -44(%rbp), %eax ## 4-byte Folded Reload jne LBB0_12 jmp LBB0_10 .p2align 4, 0x90 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movq %r15, %rdi movl $91, %esi callq _is_keyword testl %r13d, %r13d jne LBB0_12 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 testq %rax, %rax je LBB0_12 ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -44(%rbp) ## 4-byte Folded Reload je LBB0_10 .p2align 4, 0x90 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movq %r15, %rdi movl $91, %esi callq _is_keyword testq %rax, %rax je LBB0_18 ## %bb.13: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _peek movq %rax, %r15 xorl %eax, %eax callq _read_intexpr movl %eax, %ebx testl %eax, %eax js LBB0_16 ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 testl %r12d, %r12d jle LBB0_17 ## %bb.15: ## in Loop: Header=BB0_1 Depth=1 cmpl %ebx, (%r14) jg LBB0_17 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 movq %r15, %rdi leaq L_.str(%rip), %rsi movl %ebx, %edx callq _errort LBB0_17: ## in Loop: Header=BB0_1 Depth=1 movl $93, %edi callq _expect movl $1, %r13d jmp LBB0_19 LBB0_4: cmpl $0, -44(%rbp) ## 4-byte Folded Reload jne LBB0_22 ## %bb.5: movq %r15, %rdi callq _unget_token jmp LBB0_22 LBB0_10: movq %r15, %rdi addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _unget_token ## TAILCALL LBB0_20: cmpl $0, -44(%rbp) ## 4-byte Folded Reload je LBB0_23 ## %bb.21: xorl %eax, %eax callq _skip_to_brace LBB0_22: movl (%r14), %eax LBB0_23: testl %eax, %eax jns LBB0_25 ## %bb.24: movl %ebx, (%r14) movl -48(%rbp), %eax ## 4-byte Reload imull %ebx, %eax movl %eax, 4(%r14) LBB0_25: addq $24, %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 "array designator exceeds array bounds: %d" .no_dead_strip _read_array_initializer_sub .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_array_initializer_sub _read_array_initializer_sub: ; @read_array_initializer_sub .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 x25, x3 mov x21, x2 mov x19, x1 mov x22, x0 bl _maybe_read_brace mov x23, x0 mov w20, #0 ldr w28, [x19] ldr x8, [x19, #8] ldr w27, [x8] Lloh0: adrp x24, l_.str@PAGE Lloh1: add x24, x24, l_.str@PAGEOFF b LBB0_3 LBB0_1: ; in Loop: Header=BB0_3 Depth=1 mov x0, x26 bl _unget_token LBB0_2: ; in Loop: Header=BB0_3 Depth=1 ldr x1, [x19, #8] madd w2, w20, w27, w21 mov x0, x22 mov x3, x25 bl _read_initializer_elem bl _maybe_skip_comma mov w25, #0 add w20, w20, #1 LBB0_3: ; =>This Inner Loop Header: Depth=1 cmp w28, #1 b.lt LBB0_5 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [x19] cmp w20, w8 b.ge LBB0_20 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 bl _get mov x26, x0 mov w1, #125 bl _is_keyword cbnz x0, LBB0_17 ; %bb.6: ; in Loop: Header=BB0_3 Depth=1 mov x0, x26 mov w1, #46 bl _is_keyword cbz x0, LBB0_8 ; %bb.7: ; in Loop: Header=BB0_3 Depth=1 orr w8, w25, w23 cbnz w8, LBB0_11 b LBB0_19 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 mov x0, x26 mov w1, #91 bl _is_keyword cbnz w25, LBB0_11 ; %bb.9: ; in Loop: Header=BB0_3 Depth=1 cbz x0, LBB0_11 ; %bb.10: ; in Loop: Header=BB0_3 Depth=1 cbz w23, LBB0_19 LBB0_11: ; in Loop: Header=BB0_3 Depth=1 mov x0, x26 mov w1, #91 bl _is_keyword cbz x0, LBB0_1 ; %bb.12: ; in Loop: Header=BB0_3 Depth=1 bl _peek mov x25, x0 bl _read_intexpr mov x20, x0 tbnz w0, #31, LBB0_15 ; %bb.13: ; in Loop: Header=BB0_3 Depth=1 cmp w28, #1 b.lt LBB0_16 ; %bb.14: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [x19] cmp w8, w20 b.gt LBB0_16 LBB0_15: ; in Loop: Header=BB0_3 Depth=1 mov x0, x25 mov x1, x24 mov x2, x20 bl _errort LBB0_16: ; in Loop: Header=BB0_3 Depth=1 mov w0, #93 bl _expect mov w25, #1 b LBB0_2 LBB0_17: cbnz w23, LBB0_22 ; %bb.18: mov x0, x26 bl _unget_token b LBB0_22 LBB0_19: mov x0, x26 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 LBB0_20: cbz w23, LBB0_23 ; %bb.21: bl _skip_to_brace LBB0_22: ldr w8, [x19] LBB0_23: tbz w8, #31, LBB0_25 ; %bb.24: mul w8, w20, w27 stp w20, w8, [x19] LBB0_25: 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 AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "array designator exceeds array bounds: %d" .no_dead_strip _read_array_initializer_sub .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_array_initializer_sub.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_assignment_expr _read_assignment_expr: ## @read_assignment_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 %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 xorl %eax, %eax callq _read_logor_expr movq %rax, %r12 xorl %eax, %eax callq _get testq %rax, %rax je LBB0_14 ## %bb.1: movq %rax, %rbx movq %rax, %rdi movl $63, %esi callq _is_keyword testq %rax, %rax je LBB0_2 ## %bb.15: movq %r12, %rdi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _do_read_conditional_expr ## TAILCALL LBB0_2: movq %rbx, %rdi callq _get_compound_assign_op movl %eax, %r15d movq %rbx, %rdi movl $61, %esi callq _is_keyword testq %rax, %rax jne LBB0_4 ## %bb.3: testl %r15d, %r15d jne LBB0_4 ## %bb.13: movq %rbx, %rdi callq _unget_token LBB0_14: movq %r12, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq LBB0_4: callq _read_assignment_expr movq %rax, %rdi callq _conv movq %rax, %r14 movq %rbx, %rdi movl $61, %esi callq _is_keyword testq %rax, %rax jne LBB0_6 ## %bb.5: testl %r15d, %r15d je LBB0_7 LBB0_6: movq %r12, %rdi callq _ensure_lvalue LBB0_7: testl %r15d, %r15d je LBB0_9 ## %bb.8: movq %r12, %rdi callq _conv movl %r15d, %edi movq %rax, %rsi movq %r14, %rdx callq _binop movq %rax, %r14 LBB0_9: movq (%r12), %rdi callq _is_arithtype testq %rax, %rax je LBB0_12 ## %bb.10: movq (%r12), %rdi movq (%rdi), %rax movq (%r14), %rcx cmpq (%rcx), %rax je LBB0_12 ## %bb.11: movq %r14, %rsi callq _ast_conv movq %rax, %r14 LBB0_12: movq (%r12), %rdi movl $61, %esi movq %r12, %rdx movq %r14, %rcx popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _ast_binop ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_assignment_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_assignment_expr _read_assignment_expr: ; @read_assignment_expr .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 bl _read_logor_expr mov x19, x0 bl _get cbz x0, LBB0_6 ; %bb.1: mov x22, x0 mov w1, #63 bl _is_keyword cbz x0, LBB0_3 ; %bb.2: 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 _do_read_conditional_expr LBB0_3: mov x0, x22 bl _get_compound_assign_op mov x21, x0 mov x0, x22 mov w1, #61 bl _is_keyword cbnz x0, LBB0_7 ; %bb.4: cbnz w21, LBB0_7 ; %bb.5: mov x0, x22 bl _unget_token LBB0_6: 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 ret LBB0_7: bl _read_assignment_expr bl _conv mov x20, x0 mov x0, x22 mov w1, #61 bl _is_keyword cbnz x0, LBB0_9 ; %bb.8: cbz w21, LBB0_10 LBB0_9: mov x0, x19 bl _ensure_lvalue LBB0_10: cbz w21, LBB0_12 ; %bb.11: mov x0, x19 bl _conv mov x1, x0 mov x0, x21 mov x2, x20 bl _binop mov x20, x0 LBB0_12: ldr x0, [x19] bl _is_arithtype cbz x0, LBB0_15 ; %bb.13: ldr x0, [x19] ldr x8, [x0] ldr x9, [x20] ldr x9, [x9] cmp x8, x9 b.eq LBB0_15 ; %bb.14: mov x1, x20 bl _ast_conv mov x20, x0 LBB0_15: ldr x0, [x19] mov w1, #61 mov x2, x19 mov x3, 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 b _ast_binop .cfi_endproc ; -- End function .no_dead_strip _read_assignment_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_assignment_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_bitand_expr _read_bitand_expr: ## @read_bitand_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 %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _read_equality_expr .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %rax, %rbx movl $38, %edi callq _next_token testq %rax, %rax je LBB0_3 ## %bb.1: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rdi callq _conv movl %eax, %ebx xorl %eax, %eax callq _read_equality_expr movq %rax, %rdi callq _conv movl $38, %edi movl %ebx, %esi movl %eax, %edx callq _binop jmp LBB0_2 LBB0_3: movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_bitand_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_bitand_expr _read_bitand_expr: ; @read_bitand_expr .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_equality_expr LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x19, x0 mov w0, #38 bl _next_token cbz x0, LBB0_3 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 mov x0, x19 bl _conv mov x19, x0 bl _read_equality_expr bl _conv mov x2, x0 mov w0, #38 mov x1, x19 bl _binop b LBB0_1 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_bitand_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_bitand_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_bitor_expr _read_bitor_expr: ## @read_bitor_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 %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _read_bitxor_expr .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %rax, %rbx movl $124, %edi callq _next_token testq %rax, %rax je LBB0_3 ## %bb.1: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rdi callq _conv movl %eax, %ebx xorl %eax, %eax callq _read_bitxor_expr movq %rax, %rdi callq _conv movl $124, %edi movl %ebx, %esi movl %eax, %edx callq _binop jmp LBB0_2 LBB0_3: movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_bitor_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_bitor_expr _read_bitor_expr: ; @read_bitor_expr .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_bitxor_expr LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x19, x0 mov w0, #124 bl _next_token cbz x0, LBB0_3 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 mov x0, x19 bl _conv mov x19, x0 bl _read_bitxor_expr bl _conv mov x2, x0 mov w0, #124 mov x1, x19 bl _binop b LBB0_1 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_bitor_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_bitor_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_bitsize _read_bitsize: ## @read_bitsize .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 %rsi, %r12 movq %rdi, %r14 movq %rsi, %rdi callq _is_inttype testl %eax, %eax jne LBB0_2 ## %bb.1: movq %r12, %rdi callq _ty2s leaq L_.str(%rip), %rdi movl %eax, %esi callq _error LBB0_2: xorl %eax, %eax callq _peek movq %rax, %r15 xorl %eax, %eax callq _read_intexpr movl %eax, %ebx movq (%r12), %rcx movq _KIND_BOOL@GOTPCREL(%rip), %rdx movl $1, %eax cmpq (%rdx), %rcx je LBB0_4 ## %bb.3: movl 8(%r12), %eax shll $3, %eax LBB0_4: testl %ebx, %ebx js LBB0_6 ## %bb.5: cmpl %ebx, %eax jge LBB0_7 LBB0_6: movq %r12, %rdi callq _ty2s movslq %eax, %rdx leaq L_.str.1(%rip), %rsi movq %r15, %rdi movl %ebx, %ecx xorl %eax, %eax callq _errort LBB0_7: testq %r14, %r14 je LBB0_10 ## %bb.8: testl %ebx, %ebx jne LBB0_10 ## %bb.9: leaq L_.str.2(%rip), %rsi movq %r15, %rdi movq %r14, %rdx xorl %eax, %eax callq _errort LBB0_10: movl %ebx, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "non-integer type cannot be a bitfield: %s" .comm _KIND_BOOL,8,3 ## @KIND_BOOL L_.str.1: ## @.str.1 .asciz "invalid bitfield size for %s: %d" L_.str.2: ## @.str.2 .asciz "zero-width bitfield needs to be unnamed: %s" .no_dead_strip _read_bitsize .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_bitsize _read_bitsize: ; @read_bitsize .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 mov x22, x1 mov x19, x0 mov x0, x1 bl _is_inttype cbnz w0, LBB0_2 ; %bb.1: mov x0, x22 bl _ty2s mov x1, x0 Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF bl _error LBB0_2: bl _peek mov x21, x0 bl _read_intexpr mov x20, x0 ldr x8, [x22] Lloh2: adrp x9, _KIND_BOOL@GOTPAGE Lloh3: ldr x9, [x9, _KIND_BOOL@GOTPAGEOFF] Lloh4: ldr x9, [x9] cmp x8, x9 b.ne LBB0_4 ; %bb.3: mov w8, #1 tbz w20, #31, LBB0_5 b LBB0_6 LBB0_4: ldr w8, [x22, #8] lsl w8, w8, #3 tbnz w20, #31, LBB0_6 LBB0_5: cmp w8, w20 b.ge LBB0_7 LBB0_6: mov x0, x22 bl _ty2s ; kill: def $w0 killed $w0 def $x0 sxtw x2, w0 str x20, [sp] Lloh5: adrp x1, l_.str.1@PAGE Lloh6: add x1, x1, l_.str.1@PAGEOFF mov x0, x21 bl _errort LBB0_7: cbz x19, LBB0_10 ; %bb.8: cbnz w20, LBB0_10 ; %bb.9: Lloh7: adrp x1, l_.str.2@PAGE Lloh8: add x1, x1, l_.str.2@PAGEOFF mov x0, x21 mov x2, x19 bl _errort LBB0_10: 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 add sp, sp, #64 ret .loh AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpAdd Lloh5, Lloh6 .loh AdrpAdd Lloh7, Lloh8 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "non-integer type cannot be a bitfield: %s" .comm _KIND_BOOL,8,3 ; @KIND_BOOL l_.str.1: ; @.str.1 .asciz "invalid bitfield size for %s: %d" l_.str.2: ; @.str.2 .asciz "zero-width bitfield needs to be unnamed: %s" .no_dead_strip _read_bitsize .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_bitsize.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_bitxor_expr _read_bitxor_expr: ## @read_bitxor_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 %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _read_bitand_expr .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %rax, %rbx movl $94, %edi callq _next_token testq %rax, %rax je LBB0_3 ## %bb.1: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rdi callq _conv movl %eax, %ebx xorl %eax, %eax callq _read_bitand_expr movq %rax, %rdi callq _conv movl $94, %edi movl %ebx, %esi movl %eax, %edx callq _binop jmp LBB0_2 LBB0_3: movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_bitxor_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_bitxor_expr _read_bitxor_expr: ; @read_bitxor_expr .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_bitand_expr LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x19, x0 mov w0, #94 bl _next_token cbz x0, LBB0_3 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 mov x0, x19 bl _conv mov x19, x0 bl _read_bitand_expr bl _conv mov x2, x0 mov w0, #94 mov x1, x19 bl _binop b LBB0_1 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_bitxor_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_bitxor_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_boolean_expr _read_boolean_expr: ## @read_boolean_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 %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _read_expr movq %rax, %rbx movl (%rax), %edi callq _is_flotype testq %rax, %rax je LBB0_1 ## %bb.2: movq _type_bool@GOTPCREL(%rip), %rax movl (%rax), %edi movq %rbx, %rsi addq $8, %rsp popq %rbx popq %rbp jmp _ast_conv ## TAILCALL LBB0_1: movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .comm _type_bool,4,2 ## @type_bool .no_dead_strip _read_boolean_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_boolean_expr _read_boolean_expr: ; @read_boolean_expr .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_expr mov x19, x0 ldr w0, [x0] bl _is_flotype cbz x0, LBB0_2 ; %bb.1: Lloh0: adrp x8, _type_bool@GOTPAGE Lloh1: ldr x8, [x8, _type_bool@GOTPAGEOFF] Lloh2: 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_2: 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 .cfi_endproc ; -- End function .comm _type_bool,4,2 ; @type_bool .no_dead_strip _read_boolean_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_boolean_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_break_stmt _read_break_stmt: ## @read_break_stmt .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 movl $59, %edi callq _expect movq _lbreak@GOTPCREL(%rip), %r14 movl (%r14), %edi testl %edi, %edi jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _errort movl (%r14), %edi LBB0_2: popq %rbx popq %r14 popq %rbp jmp _ast_jump ## TAILCALL .cfi_endproc ## -- End function .comm _lbreak,4,2 ## @lbreak .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stray break statement" .no_dead_strip _read_break_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_break_stmt _read_break_stmt: ; @read_break_stmt .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, #59 bl _expect Lloh0: adrp x20, _lbreak@GOTPAGE Lloh1: ldr x20, [x20, _lbreak@GOTPAGEOFF] ldr w0, [x20] cbnz w0, LBB0_2 ; %bb.1: Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort ldr w0, [x20] LBB0_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_jump .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .cfi_endproc ; -- End function .comm _lbreak,4,2 ; @lbreak .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stray break statement" .no_dead_strip _read_break_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_break_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_case_label _read_case_label: ## @read_case_label .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 movq _cases@GOTPCREL(%rip), %rbx cmpl $0, (%rbx) jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _errort LBB0_2: xorl %eax, %eax callq _make_label movq %rax, %r15 xorl %eax, %eax callq _read_intexpr movl %eax, %r12d movq _KELLIPSIS@GOTPCREL(%rip), %rax movl (%rax), %edi callq _next_token testq %rax, %rax je LBB0_5 ## %bb.3: xorl %eax, %eax callq _read_intexpr movl %eax, %r13d movl $58, %edi callq _expect cmpl %r13d, %r12d jle LBB0_6 ## %bb.4: leaq L_.str.1(%rip), %rsi movq %r14, %rdi movl %r12d, %edx movl %r13d, %ecx xorl %eax, %eax callq _errort jmp LBB0_6 LBB0_5: movl $58, %edi callq _expect movl %r12d, %r13d LBB0_6: movq %rbx, %r14 movl (%rbx), %ebx movl %r12d, %edi movl %r13d, %esi movq %r15, %rdx callq _make_case movl %ebx, %edi movl %eax, %esi callq _vec_push movl (%r14), %edi callq _check_case_duplicates movq %r15, %rdi callq _ast_dest movl %eax, %edi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _read_label_tail ## TAILCALL .cfi_endproc ## -- End function .comm _cases,4,2 ## @cases .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stray case label" .comm _KELLIPSIS,4,2 ## @KELLIPSIS L_.str.1: ## @.str.1 .asciz "case region is not in correct order: %d ... %d" .no_dead_strip _read_case_label .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_case_label _read_case_label: ; @read_case_label .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 Lloh0: adrp x23, _cases@GOTPAGE Lloh1: ldr x23, [x23, _cases@GOTPAGEOFF] ldr w8, [x23] cbnz w8, LBB0_2 ; %bb.1: Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _errort LBB0_2: bl _make_label mov x19, x0 bl _read_intexpr mov x21, x0 Lloh4: adrp x8, _KELLIPSIS@GOTPAGE Lloh5: ldr x8, [x8, _KELLIPSIS@GOTPAGEOFF] Lloh6: ldr w0, [x8] bl _next_token cbz x0, LBB0_5 ; %bb.3: bl _read_intexpr mov x22, x0 mov w0, #58 bl _expect cmp w21, w22 b.le LBB0_6 ; %bb.4: stp x21, x22, [sp] Lloh7: adrp x1, l_.str.1@PAGE Lloh8: add x1, x1, l_.str.1@PAGEOFF mov x0, x20 bl _errort b LBB0_6 LBB0_5: mov w0, #58 bl _expect mov x22, x21 LBB0_6: ldr w20, [x23] mov x0, x21 mov x1, x22 mov x2, x19 bl _make_case mov x1, x0 mov x0, x20 bl _vec_push ldr w0, [x23] bl _check_case_duplicates mov x0, x19 bl _ast_dest 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 b _read_label_tail .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .loh AdrpAdd Lloh7, Lloh8 .cfi_endproc ; -- End function .comm _cases,4,2 ; @cases .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stray case label" .comm _KELLIPSIS,4,2 ; @KELLIPSIS l_.str.1: ; @.str.1 .asciz "case region is not in correct order: %d ... %d" .no_dead_strip _read_case_label .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_case_label.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_cast_expr _read_cast_expr: ## @read_cast_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 %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 xorl %eax, %eax callq _get movq %rax, %rbx movq %rax, %rdi movl $40, %esi callq _is_keyword testq %rax, %rax je LBB0_4 ## %bb.1: xorl %eax, %eax callq _peek movq %rax, %rdi callq _is_type testq %rax, %rax je LBB0_4 ## %bb.2: xorl %eax, %eax callq _read_cast_type movq %rax, %rbx movl $41, %edi callq _expect xorl %eax, %eax callq _peek movq %rax, %rdi movl $123, %esi callq _is_keyword testq %rax, %rax je LBB0_3 ## %bb.5: movq %rbx, %rdi callq _read_compound_literal movq %rax, %rdi popq %rbx popq %r14 popq %rbp jmp _read_postfix_expr_tail ## TAILCALL LBB0_4: movq %rbx, %rdi callq _unget_token xorl %eax, %eax popq %rbx popq %r14 popq %rbp jmp _read_unary_expr ## TAILCALL LBB0_3: movq _OP_CAST@GOTPCREL(%rip), %rax movl (%rax), %r14d callq _read_cast_expr movl %r14d, %edi movq %rbx, %rsi movq %rax, %rdx popq %rbx popq %r14 popq %rbp jmp _ast_uop ## TAILCALL .cfi_endproc ## -- End function .comm _OP_CAST,4,2 ## @OP_CAST .no_dead_strip _read_cast_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_cast_expr _read_cast_expr: ; @read_cast_expr .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 _get mov x19, x0 mov w1, #40 bl _is_keyword cbz x0, LBB0_4 ; %bb.1: bl _peek bl _is_type cbz x0, LBB0_4 ; %bb.2: bl _read_cast_type mov x19, x0 mov w0, #41 bl _expect bl _peek mov w1, #123 bl _is_keyword cbz x0, LBB0_5 ; %bb.3: mov x0, x19 bl _read_compound_literal ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_postfix_expr_tail LBB0_4: mov x0, x19 bl _unget_token ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_unary_expr LBB0_5: Lloh0: adrp x8, _OP_CAST@GOTPAGE Lloh1: ldr x8, [x8, _OP_CAST@GOTPAGEOFF] Lloh2: ldr w20, [x8] bl _read_cast_expr mov x2, x0 mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_uop .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _OP_CAST,4,2 ; @OP_CAST .no_dead_strip _read_cast_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_cast_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_cast_type _read_cast_type: ## @read_cast_type .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 _read_decl_spec movl %eax, %edi popq %rbp jmp _read_abstract_declarator ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_cast_type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_cast_type _read_cast_type: ; @read_cast_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 mov x0, #0 bl _read_decl_spec ldp x29, x30, [sp], #16 ; 16-byte Folded Reload b _read_abstract_declarator .cfi_endproc ; -- End function .no_dead_strip _read_cast_type .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_cast_type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_comma_expr _read_comma_expr: ## @read_comma_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 %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _read_assignment_expr .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %rax, %rbx movl $44, %edi callq _next_token testq %rax, %rax je LBB0_3 ## %bb.1: ## in Loop: Header=BB0_2 Depth=1 xorl %eax, %eax callq _read_assignment_expr movl (%rax), %edi movl $44, %esi movq %rbx, %rdx movq %rax, %rcx callq _ast_binop jmp LBB0_2 LBB0_3: movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_comma_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_comma_expr _read_comma_expr: ; @read_comma_expr .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_assignment_expr LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x19, x0 mov w0, #44 bl _next_token cbz x0, LBB0_3 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 bl _read_assignment_expr mov x3, x0 ldr w0, [x0] mov w1, #44 mov x2, x19 bl _ast_binop b LBB0_1 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_comma_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_comma_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_compound_literal _read_compound_literal: ## @read_compound_literal .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, %rbx xorl %eax, %eax callq _make_label movq %rax, %r14 movq %rbx, %rdi callq _read_decl_init movq %rax, %r15 movq %rbx, %rdi movq %r14, %rsi callq _ast_lvar movq %r15, (%rax) addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_compound_literal .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_compound_literal _read_compound_literal: ; @read_compound_literal .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_label mov x20, x0 mov x0, x19 bl _read_decl_init mov x21, x0 mov x0, x19 mov x1, x20 bl _ast_lvar str x21, [x0] 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 _read_compound_literal .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_compound_literal.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_compound_stmt _read_compound_stmt: ## @read_compound_stmt .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 _localenv@GOTPCREL(%rip), %r15 movq (%r15), %r14 movq %r14, %rdi callq _make_map_parent movq %rax, (%r15) xorl %eax, %eax callq _make_vector movq %rax, %rbx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movl $125, %edi callq _next_token testq %rax, %rax jne LBB0_3 ## %bb.1: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rdi callq _read_decl_or_stmt jmp LBB0_2 LBB0_3: movq %r14, (%r15) movq %rbx, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _ast_compound_stmt ## TAILCALL .cfi_endproc ## -- End function .comm _localenv,8,3 ## @localenv .no_dead_strip _read_compound_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_compound_stmt _read_compound_stmt: ; @read_compound_stmt .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 x21, _localenv@GOTPAGE Lloh1: ldr x21, [x21, _localenv@GOTPAGEOFF] ldr x19, [x21] mov x0, x19 bl _make_map_parent str x0, [x21] bl _make_vector mov x20, x0 LBB0_1: ; =>This Inner Loop Header: Depth=1 mov w0, #125 bl _next_token cbnz x0, LBB0_3 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 mov x0, x20 bl _read_decl_or_stmt b LBB0_1 LBB0_3: str x19, [x21] 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 b _ast_compound_stmt .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _localenv,8,3 ; @localenv .no_dead_strip _read_compound_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_compound_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_conditional_expr _read_conditional_expr: ## @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 %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _read_logor_expr movq %rax, %rbx movl $63, %edi callq _next_token testl %eax, %eax je LBB0_1 ## %bb.2: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _do_read_conditional_expr ## TAILCALL LBB0_1: movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _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 read_conditional_expr _read_conditional_expr: ; @read_conditional_expr .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_logor_expr mov x19, x0 mov w0, #63 bl _next_token cbz w0, LBB0_2 ; %bb.1: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _do_read_conditional_expr LBB0_2: 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_conditional_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_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 read_continue_stmt _read_continue_stmt: ## @read_continue_stmt .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 movl $59, %edi callq _expect movq _lcontinue@GOTPCREL(%rip), %r14 movl (%r14), %edi testl %edi, %edi jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _errort movl (%r14), %edi LBB0_2: popq %rbx popq %r14 popq %rbp jmp _ast_jump ## TAILCALL .cfi_endproc ## -- End function .comm _lcontinue,4,2 ## @lcontinue .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stray continue statement" .no_dead_strip _read_continue_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_continue_stmt _read_continue_stmt: ; @read_continue_stmt .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, #59 bl _expect Lloh0: adrp x20, _lcontinue@GOTPAGE Lloh1: ldr x20, [x20, _lcontinue@GOTPAGEOFF] ldr w0, [x20] cbnz w0, LBB0_2 ; %bb.1: Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort ldr w0, [x20] LBB0_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_jump .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .cfi_endproc ; -- End function .comm _lcontinue,4,2 ; @lcontinue .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stray continue statement" .no_dead_strip _read_continue_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_continue_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_decl _read_decl: ## @read_decl .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 $40, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %esi, %r15d movq %rdi, %rbx movl $0, -44(%rbp) leaq -44(%rbp), %rdi callq _read_decl_spec_opt movq %rax, %r12 movl $59, %edi callq _next_token testq %rax, %rax je LBB0_1 LBB0_19: addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_1: testl %r15d, %r15d je LBB0_2 ## %bb.3: movq _ast_gvar@GOTPCREL(%rip), %rax jmp LBB0_4 LBB0_2: movq _ast_lvar@GOTPCREL(%rip), %rax LBB0_4: movq %rax, -72(%rbp) ## 8-byte Spill movq %rbx, -64(%rbp) ## 8-byte Spill .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 movq $0, -56(%rbp) movq %r12, %rdi callq _copy_incomplete_type movq _DECL_BODY@GOTPCREL(%rip), %rcx movl (%rcx), %ecx leaq -56(%rbp), %rdi movl %eax, %esi xorl %edx, %edx callq _read_declarator movq %rax, %r13 movl -44(%rbp), %r14d movq _S_STATIC@GOTPCREL(%rip), %rax movl (%rax), %ebx xorl %eax, %eax cmpl %ebx, %r14d sete %al movl %eax, (%r13) movl -44(%rbp), %eax movq _S_TYPEDEF@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -56(%rbp), %rsi movq %r13, %rdi callq _ast_typedef jmp LBB0_16 .p2align 4, 0x90 LBB0_7: ## in Loop: Header=BB0_5 Depth=1 movq %r13, %rdi callq _ensure_not_void movq -56(%rbp), %rsi testl %r15d, %r15d jne LBB0_10 ## %bb.8: ## in Loop: Header=BB0_5 Depth=1 cmpl %ebx, %r14d jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_5 Depth=1 movq %r13, %rdi callq _read_static_local_var jmp LBB0_16 .p2align 4, 0x90 LBB0_10: ## in Loop: Header=BB0_5 Depth=1 movq %r13, %rdi callq *-72(%rbp) ## 8-byte Folded Reload movq %rax, %r14 movl $61, %edi callq _next_token testq %rax, %rax je LBB0_12 ## %bb.11: ## in Loop: Header=BB0_5 Depth=1 movq %r13, %rdi callq _read_decl_init movq %r14, %rdi movq %rax, %rsi LBB0_15: ## in Loop: Header=BB0_5 Depth=1 callq _ast_decl movq -64(%rbp), %rdi ## 8-byte Reload movl %eax, %esi callq _vec_push jmp LBB0_16 LBB0_12: ## in Loop: Header=BB0_5 Depth=1 movl -44(%rbp), %eax movq _S_EXTERN@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax je LBB0_16 ## %bb.13: ## in Loop: Header=BB0_5 Depth=1 movq 8(%r13), %rax movq _KIND_FUNC@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_14 .p2align 4, 0x90 LBB0_16: ## in Loop: Header=BB0_5 Depth=1 movl $59, %edi callq _next_token testq %rax, %rax jne LBB0_19 ## %bb.17: ## in Loop: Header=BB0_5 Depth=1 movl $44, %edi callq _next_token testq %rax, %rax jne LBB0_5 ## %bb.18: ## in Loop: Header=BB0_5 Depth=1 xorl %eax, %eax callq _peek movl %eax, %ebx xorl %eax, %eax callq _peek movl %eax, %edi callq _tok2s movl %ebx, %edi leaq L_.str(%rip), %rsi movl %eax, %edx callq _errort jmp LBB0_5 LBB0_14: ## in Loop: Header=BB0_5 Depth=1 movq %r14, %rdi xorl %esi, %esi jmp LBB0_15 .cfi_endproc ## -- End function .comm _DECL_BODY,4,2 ## @DECL_BODY .comm _S_STATIC,4,2 ## @S_STATIC .comm _S_TYPEDEF,4,2 ## @S_TYPEDEF .comm _S_EXTERN,4,2 ## @S_EXTERN .comm _KIND_FUNC,8,3 ## @KIND_FUNC .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "';' or ',' are expected, but got %s" .no_dead_strip _read_decl .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_decl _read_decl: ; @read_decl .cfi_startproc ; %bb.0: sub sp, sp, #112 .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 mov x19, x1 mov x20, x0 str wzr, [sp, #12] add x0, sp, #12 bl _read_decl_spec_opt mov x21, x0 mov w0, #59 bl _next_token cbz x0, LBB0_2 LBB0_1: 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 add sp, sp, #112 ret LBB0_2: Lloh0: adrp x8, _ast_lvar@GOTPAGE Lloh1: ldr x8, [x8, _ast_lvar@GOTPAGEOFF] Lloh2: adrp x9, _ast_gvar@GOTPAGE Lloh3: ldr x9, [x9, _ast_gvar@GOTPAGEOFF] cmp w19, #0 csel x25, x9, x8, ne Lloh4: adrp x26, _DECL_BODY@GOTPAGE Lloh5: ldr x26, [x26, _DECL_BODY@GOTPAGEOFF] Lloh6: adrp x27, _S_STATIC@GOTPAGE Lloh7: ldr x27, [x27, _S_STATIC@GOTPAGEOFF] Lloh8: adrp x28, _S_TYPEDEF@GOTPAGE Lloh9: ldr x28, [x28, _S_TYPEDEF@GOTPAGEOFF] LBB0_3: ; =>This Inner Loop Header: Depth=1 str xzr, [sp] mov x0, x21 bl _copy_incomplete_type mov x1, x0 ldr w3, [x26] mov x0, sp mov x2, #0 bl _read_declarator mov x23, x0 ldr w24, [sp, #12] ldr w22, [x27] cmp w24, w22 cset w8, eq str w8, [x0] ldr w8, [sp, #12] ldr w9, [x28] cmp w8, w9 b.ne LBB0_5 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 ldr x1, [sp] mov x0, x23 bl _ast_typedef b LBB0_11 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 mov x0, x23 bl _ensure_not_void ldr x1, [sp] cbnz w19, LBB0_8 ; %bb.6: ; in Loop: Header=BB0_3 Depth=1 cmp w24, w22 b.ne LBB0_8 ; %bb.7: ; in Loop: Header=BB0_3 Depth=1 mov x0, x23 bl _read_static_local_var b LBB0_11 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 mov x0, x23 blr x25 mov x24, x0 mov w0, #61 bl _next_token cbz x0, LBB0_14 ; %bb.9: ; in Loop: Header=BB0_3 Depth=1 mov x0, x23 bl _read_decl_init mov x1, x0 mov x0, x24 LBB0_10: ; in Loop: Header=BB0_3 Depth=1 bl _ast_decl mov x1, x0 mov x0, x20 bl _vec_push LBB0_11: ; in Loop: Header=BB0_3 Depth=1 mov w0, #59 bl _next_token cbnz x0, LBB0_1 ; %bb.12: ; in Loop: Header=BB0_3 Depth=1 mov w0, #44 bl _next_token cbnz x0, LBB0_3 ; %bb.13: ; in Loop: Header=BB0_3 Depth=1 bl _peek mov x23, x0 bl _peek bl _tok2s mov x2, x0 mov x0, x23 Lloh10: adrp x1, l_.str@PAGE Lloh11: add x1, x1, l_.str@PAGEOFF bl _errort b LBB0_3 LBB0_14: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #12] Lloh12: adrp x9, _S_EXTERN@GOTPAGE Lloh13: ldr x9, [x9, _S_EXTERN@GOTPAGEOFF] Lloh14: ldr w9, [x9] cmp w8, w9 b.eq LBB0_11 ; %bb.15: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [x23, #8] Lloh15: adrp x9, _KIND_FUNC@GOTPAGE Lloh16: ldr x9, [x9, _KIND_FUNC@GOTPAGEOFF] Lloh17: ldr x9, [x9] cmp x8, x9 b.eq LBB0_11 ; %bb.16: ; in Loop: Header=BB0_3 Depth=1 mov x0, x24 mov x1, #0 b LBB0_10 .loh AdrpLdrGot Lloh8, Lloh9 .loh AdrpLdrGot Lloh6, Lloh7 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh10, Lloh11 .loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14 .loh AdrpLdrGotLdr Lloh15, Lloh16, Lloh17 .cfi_endproc ; -- End function .comm _DECL_BODY,4,2 ; @DECL_BODY .comm _S_STATIC,4,2 ; @S_STATIC .comm _S_TYPEDEF,4,2 ; @S_TYPEDEF .comm _S_EXTERN,4,2 ; @S_EXTERN .comm _KIND_FUNC,8,3 ; @KIND_FUNC .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "';' or ',' are expected, but got %s" .no_dead_strip _read_decl .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_decl.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_decl_init _read_decl_init: ## @read_decl_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, %r14 xorl %eax, %eax callq _make_vector movq %rax, %rbx xorl %eax, %eax callq _peek movl %eax, %edi movl $123, %esi callq _is_keyword testq %rax, %rax jne LBB0_2 ## %bb.1: movq %r14, %rdi callq _is_string testq %rax, %rax je LBB0_3 LBB0_2: movq %rbx, %rdi movq %r14, %rsi xorl %edx, %edx xorl %ecx, %ecx callq _read_initializer_list LBB0_7: movq %rbx, %rax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq LBB0_3: xorl %eax, %eax callq _read_assignment_expr movl %eax, %edi callq _conv movq %rax, %r15 movq (%rax), %rdi callq _is_arithtype testq %rax, %rax je LBB0_6 ## %bb.4: movq (%r15), %rax movq (%rax), %rax cmpq (%r14), %rax je LBB0_6 ## %bb.5: movq %r14, %rdi movq %r15, %rsi callq _ast_conv movq %rax, %r15 LBB0_6: movq %r15, %rdi movq %r14, %rsi xorl %edx, %edx callq _ast_init movq %rbx, %rdi movl %eax, %esi callq _vec_push jmp LBB0_7 .cfi_endproc ## -- End function .no_dead_strip _read_decl_init .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_decl_init _read_decl_init: ; @read_decl_init .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 x20, x0 bl _make_vector mov x19, x0 bl _peek mov w1, #123 bl _is_keyword cbnz x0, LBB0_2 ; %bb.1: mov x0, x20 bl _is_string cbz x0, LBB0_4 LBB0_2: mov x0, x19 mov x1, x20 mov w2, #0 mov w3, #0 bl _read_initializer_list LBB0_3: 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 ret LBB0_4: bl _read_assignment_expr bl _conv mov x21, x0 ldr x0, [x0] bl _is_arithtype cbz x0, LBB0_7 ; %bb.5: ldr x8, [x21] ldr x8, [x8] ldr x9, [x20] cmp x8, x9 b.eq LBB0_7 ; %bb.6: mov x0, x20 mov x1, x21 bl _ast_conv mov x21, x0 LBB0_7: mov x0, x21 mov x1, x20 mov w2, #0 bl _ast_init mov x1, x0 mov x0, x19 bl _vec_push b LBB0_3 .cfi_endproc ; -- End function .no_dead_strip _read_decl_init .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_decl_init.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_decl_or_stmt _read_decl_or_stmt: ## @read_decl_or_stmt .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 xorl %eax, %eax callq _peek movq %rax, %rbx movq (%rax), %rax movq _TEOF@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi callq _error LBB0_2: xorl %eax, %eax callq _mark_location movq %rbx, %rdi callq _is_type testq %rax, %rax je LBB0_3 ## %bb.6: movq %r14, %rdi xorl %esi, %esi popq %rbx popq %r14 popq %rbp jmp _read_decl ## TAILCALL LBB0_3: movq _KSTATIC_ASSERT@GOTPCREL(%rip), %rax movl (%rax), %edi callq _next_token testq %rax, %rax je LBB0_4 ## %bb.7: xorl %eax, %eax popq %rbx popq %r14 popq %rbp jmp _read_static_assert ## TAILCALL LBB0_4: xorl %eax, %eax callq _read_stmt testq %rax, %rax je LBB0_5 ## %bb.8: movq %r14, %rdi movq %rax, %rsi popq %rbx popq %r14 popq %rbp jmp _vec_push ## TAILCALL LBB0_5: popq %rbx popq %r14 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 _KSTATIC_ASSERT,4,2 ## @KSTATIC_ASSERT .no_dead_strip _read_decl_or_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_decl_or_stmt _read_decl_or_stmt: ; @read_decl_or_stmt .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 _peek mov x20, x0 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: Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF bl _error LBB0_2: bl _mark_location mov x0, x20 bl _is_type cbz x0, LBB0_4 ; %bb.3: mov x0, x19 mov w1, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_decl LBB0_4: Lloh5: adrp x8, _KSTATIC_ASSERT@GOTPAGE Lloh6: ldr x8, [x8, _KSTATIC_ASSERT@GOTPAGEOFF] Lloh7: ldr w0, [x8] bl _next_token cbz x0, LBB0_6 ; %bb.5: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_static_assert LBB0_6: bl _read_stmt cbz x0, LBB0_8 ; %bb.7: mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _vec_push LBB0_8: 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 AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _TEOF,8,3 ; @TEOF .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "premature end of input" .comm _KSTATIC_ASSERT,4,2 ; @KSTATIC_ASSERT .no_dead_strip _read_decl_or_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_decl_or_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_decl_spec_opt _read_decl_spec_opt: ## @read_decl_spec_opt .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 _peek movl %eax, %edi callq _is_type testq %rax, %rax je LBB0_1 ## %bb.2: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _read_decl_spec ## TAILCALL LBB0_1: xorl %eax, %eax callq _peek leaq L_.str(%rip), %rsi movl %eax, %edi callq _warnt movq _type_int@GOTPCREL(%rip), %rax movq (%rax), %rax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "type specifier missing, assuming int" .comm _type_int,8,3 ## @type_int .no_dead_strip _read_decl_spec_opt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_decl_spec_opt _read_decl_spec_opt: ; @read_decl_spec_opt .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 _peek bl _is_type cbz x0, LBB0_2 ; %bb.1: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_decl_spec LBB0_2: bl _peek Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF bl _warnt Lloh2: adrp x8, _type_int@GOTPAGE Lloh3: ldr x8, [x8, _type_int@GOTPAGEOFF] Lloh4: ldr x0, [x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "type specifier missing, assuming int" .comm _type_int,8,3 ; @type_int .no_dead_strip _read_decl_spec_opt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_decl_spec_opt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_declarator _read_declarator: ## @read_declarator .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 %ecx, %r12d movq %rdx, %r14 movq %rsi, %rbx movq %rdi, %r15 .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 movl $40, %edi callq _next_token testq %rax, %rax jne LBB0_2 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movl $42, %edi callq _next_token testq %rax, %rax je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _skip_type_qualifiers movq %rbx, %rdi callq _make_ptr_type movq %rax, %rbx jmp LBB0_1 LBB0_2: xorl %eax, %eax callq _peek movl %eax, %edi callq _is_type testq %rax, %rax je LBB0_3 ## %bb.15: movq %rbx, %rdi movq %r14, %rsi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _read_declarator_func ## TAILCALL LBB0_3: xorl %eax, %eax callq _make_stub_type movq %rax, %r13 movq %r15, %rdi movq %rax, %rsi movq %r14, %rdx movl %r12d, %ecx callq _read_declarator movq %rax, %r15 movl $41, %edi callq _expect movq %rbx, %rdi movq %r14, %rsi callq _read_declarator_tail movl (%rax), %eax movl %eax, (%r13) movq %r15, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_6: xorl %eax, %eax callq _get movq %rax, %r13 movq (%rax), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_11 ## %bb.7: movq _DECL_CAST@GOTPCREL(%rip), %rax cmpl %r12d, (%rax) jne LBB0_9 ## %bb.8: movq %r13, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %r13, %rdi movl %eax, %edx callq _errort LBB0_9: movq 8(%r13), %rax movq %rax, (%r15) jmp LBB0_10 LBB0_11: movq _DECL_BODY@GOTPCREL(%rip), %rax cmpl %r12d, (%rax) je LBB0_13 ## %bb.12: movq _DECL_PARAM@GOTPCREL(%rip), %rax cmpl %r12d, (%rax) jne LBB0_14 LBB0_13: movq %r13, %rdi callq _tok2s leaq L_.str.1(%rip), %rsi movq %r13, %rdi movl %eax, %edx callq _errort LBB0_14: movq %r13, %rdi callq _unget_token LBB0_10: movq %rbx, %rdi movq %r14, %rsi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _read_declarator_tail ## TAILCALL .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .comm _DECL_CAST,4,2 ## @DECL_CAST .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "identifier is not expected, but got %s" .comm _DECL_BODY,4,2 ## @DECL_BODY .comm _DECL_PARAM,4,2 ## @DECL_PARAM L_.str.1: ## @.str.1 .asciz "identifier, ( or * are expected, but got %s" .no_dead_strip _read_declarator .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_declarator _read_declarator: ; @read_declarator .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 x22, x3 mov x19, x2 mov x20, x1 mov x21, x0 LBB0_1: ; =>This Inner Loop Header: Depth=1 mov w0, #40 bl _next_token cbnz x0, LBB0_4 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 mov w0, #42 bl _next_token cbz x0, LBB0_7 ; %bb.3: ; in Loop: Header=BB0_1 Depth=1 bl _skip_type_qualifiers mov x0, x20 bl _make_ptr_type mov x20, x0 b LBB0_1 LBB0_4: bl _peek bl _is_type cbz x0, LBB0_6 ; %bb.5: mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload b _read_declarator_func LBB0_6: bl _make_stub_type mov x23, x0 mov x0, x21 mov x1, x23 mov x2, x19 mov x3, x22 bl _read_declarator mov x21, x0 mov w0, #41 bl _expect mov x0, x20 mov x1, x19 bl _read_declarator_tail ldr w8, [x0] str w8, [x23] 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 ret LBB0_7: bl _get mov x23, x0 ldr x8, [x0] Lloh0: adrp x9, _TIDENT@GOTPAGE Lloh1: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_11 ; %bb.8: Lloh3: adrp x8, _DECL_CAST@GOTPAGE Lloh4: ldr x8, [x8, _DECL_CAST@GOTPAGEOFF] Lloh5: ldr w8, [x8] cmp w8, w22 b.ne LBB0_10 ; %bb.9: mov x0, x23 bl _tok2s mov x2, x0 Lloh6: adrp x1, l_.str@PAGE Lloh7: add x1, x1, l_.str@PAGEOFF mov x0, x23 bl _errort LBB0_10: ldr x8, [x23, #8] str x8, [x21] b LBB0_14 LBB0_11: Lloh8: adrp x8, _DECL_BODY@GOTPAGE Lloh9: ldr x8, [x8, _DECL_BODY@GOTPAGEOFF] Lloh10: ldr w8, [x8] Lloh11: adrp x9, _DECL_PARAM@GOTPAGE Lloh12: ldr x9, [x9, _DECL_PARAM@GOTPAGEOFF] Lloh13: ldr w9, [x9] cmp w8, w22 ccmp w9, w22, #4, ne b.ne LBB0_13 ; %bb.12: mov x0, x23 bl _tok2s mov x2, x0 Lloh14: adrp x1, l_.str.1@PAGE Lloh15: add x1, x1, l_.str.1@PAGEOFF mov x0, x23 bl _errort LBB0_13: mov x0, x23 bl _unget_token LBB0_14: mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload b _read_declarator_tail .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13 .loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10 .loh AdrpAdd Lloh14, Lloh15 .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .comm _DECL_CAST,4,2 ; @DECL_CAST .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "identifier is not expected, but got %s" .comm _DECL_BODY,4,2 ; @DECL_BODY .comm _DECL_PARAM,4,2 ; @DECL_PARAM l_.str.1: ; @.str.1 .asciz "identifier, ( or * are expected, but got %s" .no_dead_strip _read_declarator .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_declarator.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_declarator_array _read_declarator_array: ## @read_declarator_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %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 movl $93, %edi callq _next_token movl $-1, %r15d testq %rax, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax callq _read_intexpr movl %eax, %r15d movl $93, %edi callq _expect LBB0_2: xorl %eax, %eax callq _peek movq %rax, %r12 movq %r14, %rdi xorl %esi, %esi callq _read_declarator_tail movq %rax, %rbx movq (%rax), %rax movq _KIND_FUNC@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_4 ## %bb.3: leaq L_.str(%rip), %rsi movq %r12, %rdi callq _errort LBB0_4: movq %rbx, %rdi movl %r15d, %esi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _make_array_type ## TAILCALL .cfi_endproc ## -- End function .comm _KIND_FUNC,8,3 ## @KIND_FUNC .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "array of functions" .no_dead_strip _read_declarator_array .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_declarator_array _read_declarator_array: ; @read_declarator_array .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 x20, x0 mov w0, #93 bl _next_token cbz x0, LBB0_2 ; %bb.1: mov w19, #-1 b LBB0_3 LBB0_2: bl _read_intexpr mov x19, x0 mov w0, #93 bl _expect LBB0_3: bl _peek mov x21, x0 mov x0, x20 mov x1, #0 bl _read_declarator_tail mov x20, x0 ldr x8, [x0] Lloh0: adrp x9, _KIND_FUNC@GOTPAGE Lloh1: ldr x9, [x9, _KIND_FUNC@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_5 ; %bb.4: Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x21 bl _errort LBB0_5: mov x0, x20 mov x1, 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 _make_array_type .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _KIND_FUNC,8,3 ; @KIND_FUNC .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "array of functions" .no_dead_strip _read_declarator_array .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_declarator_array.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_declarator_func _read_declarator_func: ## @read_declarator_func .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 movq (%rdi), %rax movq _KIND_FUNC@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi callq _error movq (%rbx), %rax LBB0_2: movq _KIND_ARRAY@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_4 ## %bb.3: leaq L_.str.1(%rip), %rdi callq _error LBB0_4: movq %r14, %rdi movq %rbx, %rsi popq %rbx popq %r14 popq %rbp jmp _read_func_param_list ## TAILCALL .cfi_endproc ## -- End function .comm _KIND_FUNC,8,3 ## @KIND_FUNC .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "function returning a function" .comm _KIND_ARRAY,8,3 ## @KIND_ARRAY L_.str.1: ## @.str.1 .asciz "function returning an array" .no_dead_strip _read_declarator_func .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_declarator_func _read_declarator_func: ; @read_declarator_func .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, x1 mov x19, x0 ldr x8, [x0] Lloh0: adrp x9, _KIND_FUNC@GOTPAGE Lloh1: ldr x9, [x9, _KIND_FUNC@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 bl _error ldr x8, [x19] LBB0_2: Lloh5: adrp x9, _KIND_ARRAY@GOTPAGE Lloh6: ldr x9, [x9, _KIND_ARRAY@GOTPAGEOFF] Lloh7: ldr x9, [x9] cmp x8, x9 b.ne LBB0_4 ; %bb.3: Lloh8: adrp x0, l_.str.1@PAGE Lloh9: add x0, x0, l_.str.1@PAGEOFF bl _error LBB0_4: mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_func_param_list .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpAdd Lloh8, Lloh9 .cfi_endproc ; -- End function .comm _KIND_FUNC,8,3 ; @KIND_FUNC .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "function returning a function" .comm _KIND_ARRAY,8,3 ; @KIND_ARRAY l_.str.1: ; @.str.1 .asciz "function returning an array" .no_dead_strip _read_declarator_func .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_declarator_func.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_declarator_params _read_declarator_params: ## @read_declarator_params .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 %rsi, %r13 movq %rdi, %r15 xorl %r12d, %r12d testq %rsi, %rsi sete %bl movq %rdx, -48(%rbp) ## 8-byte Spill movl $0, (%rdx) xorl %eax, %eax callq _peek movq %rax, %r14 movq _KELLIPSIS@GOTPCREL(%rip), %rax movl (%rax), %edi callq _next_token testq %rax, %rax je LBB0_5 LBB0_1: movq -48(%rbp), %rbx ## 8-byte Reload movq %r15, %rdi callq _vec_len testq %rax, %rax jne LBB0_3 ## %bb.2: leaq L_.str(%rip), %rsi movq %r14, %rdi xorl %eax, %eax callq _errort LBB0_3: movl $41, %edi callq _expect movl $1, (%rbx) LBB0_4: addq $24, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_5: movb %bl, %r12b jmp LBB0_6 .p2align 4, 0x90 LBB0_11: ## in Loop: Header=BB0_6 Depth=1 xorl %eax, %eax callq _peek movq %rax, %r14 movq _KELLIPSIS@GOTPCREL(%rip), %rax movl (%rax), %edi callq _next_token testq %rax, %rax jne LBB0_1 LBB0_6: ## =>This Inner Loop Header: Depth=1 leaq -56(%rbp), %rdi movl %r12d, %esi callq _read_func_param movq %rax, %rbx movq %rax, %rdi callq _ensure_not_void movq %r15, %rdi movq %rbx, %rsi callq _vec_push testq %r13, %r13 je LBB0_8 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 movq -56(%rbp), %rsi movq %rbx, %rdi callq _ast_lvar movq %r13, %rdi movq %rax, %rsi callq _vec_push LBB0_8: ## in Loop: Header=BB0_6 Depth=1 xorl %eax, %eax callq _get movq %rax, %rbx movq %rax, %rdi movl $41, %esi callq _is_keyword testq %rax, %rax jne LBB0_4 ## %bb.9: ## in Loop: Header=BB0_6 Depth=1 movq %rbx, %rdi movl $44, %esi callq _is_keyword testq %rax, %rax jne LBB0_11 ## %bb.10: ## in Loop: Header=BB0_6 Depth=1 movq %rbx, %rdi callq _tok2s movq %rbx, %rdi leaq L_.str.1(%rip), %rsi movl %eax, %edx xorl %eax, %eax callq _errort jmp LBB0_11 .cfi_endproc ## -- End function .comm _KELLIPSIS,4,2 ## @KELLIPSIS .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "at least one parameter is required before \"...\"" L_.str.1: ## @.str.1 .asciz "comma expected, but got %s" .no_dead_strip _read_declarator_params .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_declarator_params _read_declarator_params: ; @read_declarator_params .cfi_startproc ; %bb.0: sub sp, sp, #96 .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 mov x19, x2 mov x21, x1 mov x20, x0 cmp x1, #0 cset w22, eq str wzr, [x2] bl _peek mov x24, x0 Lloh0: adrp x25, _KELLIPSIS@GOTPAGE Lloh1: ldr x25, [x25, _KELLIPSIS@GOTPAGEOFF] ldr w0, [x25] bl _next_token cbz x0, LBB0_5 LBB0_1: mov x0, x20 bl _vec_len cbnz x0, LBB0_3 ; %bb.2: Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x24 bl _errort LBB0_3: mov w0, #41 bl _expect mov w8, #1 str w8, [x19] LBB0_4: 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 add sp, sp, #96 ret LBB0_5: Lloh4: adrp x23, l_.str.1@PAGE Lloh5: add x23, x23, l_.str.1@PAGEOFF b LBB0_7 LBB0_6: ; in Loop: Header=BB0_7 Depth=1 bl _peek mov x24, x0 ldr w0, [x25] bl _next_token cbnz x0, LBB0_1 LBB0_7: ; =>This Inner Loop Header: Depth=1 add x0, sp, #8 mov x1, x22 bl _read_func_param mov x24, x0 bl _ensure_not_void mov x0, x20 mov x1, x24 bl _vec_push cbz x21, LBB0_9 ; %bb.8: ; in Loop: Header=BB0_7 Depth=1 ldr x1, [sp, #8] mov x0, x24 bl _ast_lvar mov x1, x0 mov x0, x21 bl _vec_push LBB0_9: ; in Loop: Header=BB0_7 Depth=1 bl _get mov x24, x0 mov w1, #41 bl _is_keyword cbnz x0, LBB0_4 ; %bb.10: ; in Loop: Header=BB0_7 Depth=1 mov x0, x24 mov w1, #44 bl _is_keyword cbnz x0, LBB0_6 ; %bb.11: ; in Loop: Header=BB0_7 Depth=1 mov x0, x24 bl _tok2s ; kill: def $w0 killed $w0 def $x0 str x0, [sp] mov x0, x24 mov x1, x23 bl _errort b LBB0_6 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _KELLIPSIS,4,2 ; @KELLIPSIS .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "at least one parameter is required before \"...\"" l_.str.1: ; @.str.1 .asciz "comma expected, but got %s" .no_dead_strip _read_declarator_params .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_declarator_params.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_declarator_params_oldstyle _read_declarator_params_oldstyle: ## @read_declarator_params_oldstyle .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, %r12 movq _TIDENT@GOTPCREL(%rip), %r13 movq _type_int@GOTPCREL(%rip), %r14 leaq L_.str(%rip), %r15 .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _get movq %rax, %rbx movq (%rax), %rax cmpq (%r13), %rax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi callq _tok2s movq %rbx, %rdi movq %r15, %rsi movl %eax, %edx callq _errort LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movl (%r14), %edi movl 8(%rbx), %esi callq _ast_lvar movq %r12, %rdi movl %eax, %esi callq _vec_push movl $41, %edi callq _next_token testq %rax, %rax jne LBB0_6 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movl $44, %edi callq _next_token testq %rax, %rax jne LBB0_1 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _get movq %rax, %rdi callq _tok2s movq %rbx, %rdi leaq L_.str.1(%rip), %rsi movl %eax, %edx callq _errort jmp LBB0_1 LBB0_6: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "identifier expected, but got %s" .comm _type_int,4,2 ## @type_int L_.str.1: ## @.str.1 .asciz "comma expected, but got %s" .no_dead_strip _read_declarator_params_oldstyle .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_declarator_params_oldstyle _read_declarator_params_oldstyle: ; @read_declarator_params_oldstyle .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 Lloh0: adrp x23, _TIDENT@GOTPAGE Lloh1: ldr x23, [x23, _TIDENT@GOTPAGEOFF] Lloh2: adrp x24, _type_int@GOTPAGE Lloh3: ldr x24, [x24, _type_int@GOTPAGEOFF] Lloh4: adrp x20, l_.str.1@PAGE Lloh5: add x20, x20, l_.str.1@PAGEOFF Lloh6: adrp x21, l_.str@PAGE Lloh7: add x21, x21, l_.str@PAGEOFF LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _get mov x22, x0 ldr x8, [x0] ldr x9, [x23] cmp x8, x9 b.eq LBB0_3 ; %bb.2: ; in Loop: Header=BB0_1 Depth=1 mov x0, x22 bl _tok2s mov x2, x0 mov x0, x22 mov x1, x21 bl _errort LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w0, [x24] ldr w1, [x22, #8] bl _ast_lvar mov x1, x0 mov x0, x19 bl _vec_push mov w0, #41 bl _next_token cbnz x0, LBB0_6 ; %bb.4: ; in Loop: Header=BB0_1 Depth=1 mov w0, #44 bl _next_token cbnz x0, LBB0_1 ; %bb.5: ; in Loop: Header=BB0_1 Depth=1 bl _get bl _tok2s mov x2, x0 mov x0, x22 mov x1, x20 bl _errort b LBB0_1 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 ret .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "identifier expected, but got %s" .comm _type_int,4,2 ; @type_int l_.str.1: ; @.str.1 .asciz "comma expected, but got %s" .no_dead_strip _read_declarator_params_oldstyle .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_declarator_params_oldstyle.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_declarator_tail _read_declarator_tail: ## @read_declarator_tail .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 movl $91, %edi callq _next_token testq %rax, %rax je LBB0_1 ## %bb.3: movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp _read_declarator_array ## TAILCALL LBB0_1: movl $40, %edi callq _next_token testq %rax, %rax je LBB0_2 ## %bb.4: movq %rbx, %rdi movq %r14, %rsi popq %rbx popq %r14 popq %rbp jmp _read_declarator_func ## TAILCALL LBB0_2: movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_declarator_tail .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_declarator_tail _read_declarator_tail: ; @read_declarator_tail .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, x1 mov x19, x0 mov w0, #91 bl _next_token cbz x0, LBB0_2 ; %bb.1: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_declarator_array LBB0_2: mov w0, #40 bl _next_token cbz x0, LBB0_4 ; %bb.3: mov x0, x19 mov x1, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_declarator_func LBB0_4: 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_declarator_tail .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_declarator_tail.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_default_label _read_default_label: ## @read_default_label .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 movl $58, %edi callq _expect movq _defaultcase@GOTPCREL(%rip), %r14 cmpq $0, (%r14) je LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _errort LBB0_2: xorl %eax, %eax callq _make_label movq %rax, (%r14) movq %rax, %rdi callq _ast_dest movl %eax, %edi popq %rbx popq %r14 popq %rbp jmp _read_label_tail ## TAILCALL .cfi_endproc ## -- End function .comm _defaultcase,8,3 ## @defaultcase .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "duplicate default" .no_dead_strip _read_default_label .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_default_label _read_default_label: ; @read_default_label .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, #58 bl _expect Lloh0: adrp x20, _defaultcase@GOTPAGE Lloh1: ldr x20, [x20, _defaultcase@GOTPAGEOFF] ldr x8, [x20] cbz x8, LBB0_2 ; %bb.1: Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x19 bl _errort LBB0_2: bl _make_label str x0, [x20] bl _ast_dest ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_label_tail .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .cfi_endproc ; -- End function .comm _defaultcase,8,3 ; @defaultcase .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "duplicate default" .no_dead_strip _read_default_label .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_default_label.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_do_stmt _read_do_stmt: ## @read_do_stmt .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_label movq %rax, %r12 xorl %eax, %eax callq _make_label movq %rax, %r14 movq %r12, %rdi movq %rax, %rsi callq _SET_JUMP_LABELS xorl %eax, %eax callq _read_stmt movq %rax, %r15 xorl %eax, %eax callq _RESTORE_JUMP_LABELS xorl %eax, %eax callq _get movq %rax, %rbx movq _KWHILE@GOTPCREL(%rip), %rax movl (%rax), %esi movq %rbx, %rdi callq _is_keyword testl %eax, %eax jne LBB0_2 ## %bb.1: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_2: movl $40, %edi callq _expect xorl %eax, %eax callq _read_boolean_expr movq %rax, %r13 movl $41, %edi callq _expect movl $59, %edi callq _expect xorl %eax, %eax callq _make_vector movq %rax, %rbx movq %r12, %rdi callq _ast_dest movq %rbx, %rdi movq %rax, %rsi callq _vec_push testq %r15, %r15 je LBB0_4 ## %bb.3: movq %rbx, %rdi movq %r15, %rsi callq _vec_push LBB0_4: movq %r12, %rdi callq _ast_jump movq %r13, %rdi movl %eax, %esi xorl %edx, %edx callq _ast_if movq %rbx, %rdi movq %rax, %rsi callq _vec_push movq %r14, %rdi callq _ast_dest movq %rbx, %rdi movq %rax, %rsi callq _vec_push movq %rbx, %rdi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _ast_compound_stmt ## TAILCALL .cfi_endproc ## -- End function .comm _KWHILE,4,2 ## @KWHILE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "'while' is expected, but got %s" .no_dead_strip _read_do_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_do_stmt _read_do_stmt: ; @read_do_stmt .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_label mov x20, x0 bl _make_label mov x19, x0 mov x0, x20 mov x1, x19 bl _SET_JUMP_LABELS bl _read_stmt mov x21, x0 bl _RESTORE_JUMP_LABELS bl _get mov x22, x0 Lloh0: adrp x8, _KWHILE@GOTPAGE Lloh1: ldr x8, [x8, _KWHILE@GOTPAGEOFF] Lloh2: ldr w1, [x8] bl _is_keyword cbnz w0, LBB0_2 ; %bb.1: mov x0, x22 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x22 bl _errort LBB0_2: mov w0, #40 bl _expect bl _read_boolean_expr mov x23, x0 mov w0, #41 bl _expect mov w0, #59 bl _expect bl _make_vector mov x22, x0 mov x0, x20 bl _ast_dest mov x1, x0 mov x0, x22 bl _vec_push cbz x21, LBB0_4 ; %bb.3: mov x0, x22 mov x1, x21 bl _vec_push LBB0_4: mov x0, x20 bl _ast_jump mov x1, x0 mov x0, x23 mov x2, #0 bl _ast_if mov x1, x0 mov x0, x22 bl _vec_push mov x0, x19 bl _ast_dest mov x1, x0 mov x0, x22 bl _vec_push mov x0, x22 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_compound_stmt .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _KWHILE,4,2 ; @KWHILE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "'while' is expected, but got %s" .no_dead_strip _read_do_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_do_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_enum_def _read_enum_def: ## @read_enum_def .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 _get movq %rax, %rbx movq (%rax), %rax movq _TIDENT@GOTPCREL(%rip), %r15 cmpq (%r15), %rax jne LBB0_7 ## %bb.1: movq 8(%rbx), %r14 xorl %eax, %eax callq _get movq %rax, %rbx testq %r14, %r14 je LBB0_7 ## %bb.2: movq _tags@GOTPCREL(%rip), %r12 movl (%r12), %edi movq %r14, %rsi callq _map_get testq %rax, %rax je LBB0_5 ## %bb.3: movq (%rax), %rax movq _KIND_ENUM@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_5 ## %bb.4: leaq L_.str(%rip), %rsi movq %rbx, %rdi movq %r14, %rdx callq _errort LBB0_5: movq %rbx, %rdi movl $123, %esi callq _is_keyword movl (%r12), %edi testq %rax, %rax je LBB0_6 ## %bb.11: movq _type_enum@GOTPCREL(%rip), %rax movq (%rax), %rdx movq %r14, %rsi callq _map_put jmp LBB0_12 LBB0_7: movq %rbx, %rdi movl $123, %esi callq _is_keyword testq %rax, %rax je LBB0_8 LBB0_12: xorl %eax, %eax callq _get movq %rax, %rbx movq %rax, %rdi movl $125, %esi callq _is_keyword testq %rax, %rax jne LBB0_22 ## %bb.13: movq _type_int@GOTPCREL(%rip), %r14 xorl %r12d, %r12d jmp LBB0_14 .p2align 4, 0x90 LBB0_21: ## in Loop: Header=BB0_14 Depth=1 incl %r12d xorl %eax, %eax callq _get movq %rax, %rbx movq %rax, %rdi movl $125, %esi callq _is_keyword testq %rax, %rax jne LBB0_22 LBB0_14: ## =>This Inner Loop Header: Depth=1 movq (%rbx), %rax cmpq (%r15), %rax je LBB0_16 ## %bb.15: ## in Loop: Header=BB0_14 Depth=1 movq %rbx, %rdi callq _tok2s movq %rbx, %rdi leaq L_.str.2(%rip), %rsi movq %rax, %rdx callq _errort LBB0_16: ## in Loop: Header=BB0_14 Depth=1 movq 8(%rbx), %r13 movl $61, %edi callq _next_token testq %rax, %rax je LBB0_18 ## %bb.17: ## in Loop: Header=BB0_14 Depth=1 xorl %eax, %eax callq _read_intexpr movl %eax, %r12d LBB0_18: ## in Loop: Header=BB0_14 Depth=1 movq (%r14), %rdi movl %r12d, %esi callq _ast_inttype movq %rax, %rbx xorl %eax, %eax callq _env movl %eax, %edi movq %r13, %rsi movq %rbx, %rdx callq _map_put movl $44, %edi callq _next_token testq %rax, %rax jne LBB0_21 ## %bb.19: ## in Loop: Header=BB0_14 Depth=1 movl $125, %edi callq _next_token testq %rax, %rax jne LBB0_22 ## %bb.20: ## in Loop: Header=BB0_14 Depth=1 xorl %eax, %eax callq _peek movq %rax, %rbx xorl %eax, %eax callq _peek movq %rax, %rdi callq _tok2s movq %rbx, %rdi leaq L_.str.3(%rip), %rsi movq %rax, %rdx callq _errort jmp LBB0_21 LBB0_8: xorl %r14d, %r14d LBB0_9: leaq L_.str.1(%rip), %rsi movq %rbx, %rdi movq %r14, %rdx callq _errort LBB0_10: movq %rbx, %rdi callq _unget_token LBB0_22: movq _type_int@GOTPCREL(%rip), %rax movq (%rax), %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_6: movq %r14, %rsi callq _map_get testq %rax, %rax jne LBB0_10 jmp LBB0_9 .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .comm _tags,4,2 ## @tags .comm _KIND_ENUM,8,3 ## @KIND_ENUM .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "declarations of %s does not match" L_.str.1: ## @.str.1 .asciz "enum tag %s is not defined" .comm _type_int,8,3 ## @type_int .comm _type_enum,8,3 ## @type_enum L_.str.2: ## @.str.2 .asciz "identifier expected, but got %s" L_.str.3: ## @.str.3 .asciz "',' or '}' expected, but got %s" .no_dead_strip _read_enum_def .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_enum_def _read_enum_def: ; @read_enum_def .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 bl _get mov x19, x0 ldr x8, [x0] Lloh0: adrp x25, _TIDENT@GOTPAGE Lloh1: ldr x25, [x25, _TIDENT@GOTPAGEOFF] ldr x9, [x25] Lloh2: adrp x24, _type_int@GOTPAGE Lloh3: ldr x24, [x24, _type_int@GOTPAGEOFF] cmp x8, x9 b.ne LBB0_7 ; %bb.1: ldr x20, [x19, #8] bl _get mov x19, x0 cbz x20, LBB0_7 ; %bb.2: Lloh4: adrp x21, _tags@GOTPAGE Lloh5: ldr x21, [x21, _tags@GOTPAGEOFF] ldr w0, [x21] mov x1, x20 bl _map_get cbz x0, LBB0_5 ; %bb.3: ldr x8, [x0] Lloh6: adrp x9, _KIND_ENUM@GOTPAGE Lloh7: ldr x9, [x9, _KIND_ENUM@GOTPAGEOFF] Lloh8: ldr x9, [x9] cmp x8, x9 b.eq LBB0_5 ; %bb.4: Lloh9: adrp x1, l_.str@PAGE Lloh10: add x1, x1, l_.str@PAGEOFF mov x0, x19 mov x2, x20 bl _errort LBB0_5: mov x0, x19 mov w1, #123 bl _is_keyword mov x8, x0 ldr w0, [x21] cbz x8, LBB0_22 ; %bb.6: Lloh11: adrp x8, _type_enum@GOTPAGE Lloh12: ldr x8, [x8, _type_enum@GOTPAGEOFF] Lloh13: ldr x2, [x8] mov x1, x20 bl _map_put b LBB0_8 LBB0_7: mov x0, x19 mov w1, #123 bl _is_keyword cbz x0, LBB0_18 LBB0_8: bl _get mov x22, x0 mov w1, #125 bl _is_keyword cbnz x0, LBB0_21 ; %bb.9: mov w19, #0 Lloh14: adrp x20, l_.str.3@PAGE Lloh15: add x20, x20, l_.str.3@PAGEOFF Lloh16: adrp x21, l_.str.2@PAGE Lloh17: add x21, x21, l_.str.2@PAGEOFF b LBB0_11 LBB0_10: ; in Loop: Header=BB0_11 Depth=1 add w19, w19, #1 bl _get mov x22, x0 mov w1, #125 bl _is_keyword cbnz x0, LBB0_21 LBB0_11: ; =>This Inner Loop Header: Depth=1 ldr x8, [x22] ldr x9, [x25] cmp x8, x9 b.eq LBB0_13 ; %bb.12: ; in Loop: Header=BB0_11 Depth=1 mov x0, x22 bl _tok2s mov x2, x0 mov x0, x22 mov x1, x21 bl _errort LBB0_13: ; in Loop: Header=BB0_11 Depth=1 ldr x22, [x22, #8] mov w0, #61 bl _next_token cbz x0, LBB0_15 ; %bb.14: ; in Loop: Header=BB0_11 Depth=1 bl _read_intexpr mov x19, x0 LBB0_15: ; in Loop: Header=BB0_11 Depth=1 ldr x0, [x24] mov x1, x19 bl _ast_inttype mov x23, x0 bl _env mov x1, x22 mov x2, x23 bl _map_put mov w0, #44 bl _next_token cbnz x0, LBB0_10 ; %bb.16: ; in Loop: Header=BB0_11 Depth=1 mov w0, #125 bl _next_token cbnz x0, LBB0_21 ; %bb.17: ; in Loop: Header=BB0_11 Depth=1 bl _peek mov x22, x0 bl _peek bl _tok2s mov x2, x0 mov x0, x22 mov x1, x20 bl _errort b LBB0_10 LBB0_18: mov x20, #0 LBB0_19: Lloh18: adrp x1, l_.str.1@PAGE Lloh19: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 mov x2, x20 bl _errort LBB0_20: mov x0, x19 bl _unget_token LBB0_21: ldr x0, [x24] 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 LBB0_22: mov x1, x20 bl _map_get cbnz x0, LBB0_20 b LBB0_19 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpAdd Lloh9, Lloh10 .loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13 .loh AdrpAdd Lloh16, Lloh17 .loh AdrpAdd Lloh14, Lloh15 .loh AdrpAdd Lloh18, Lloh19 .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .comm _tags,4,2 ; @tags .comm _KIND_ENUM,8,3 ; @KIND_ENUM .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "declarations of %s does not match" l_.str.1: ; @.str.1 .asciz "enum tag %s is not defined" .comm _type_int,8,3 ; @type_int .comm _type_enum,8,3 ; @type_enum l_.str.2: ; @.str.2 .asciz "identifier expected, but got %s" l_.str.3: ; @.str.3 .asciz "',' or '}' expected, but got %s" .no_dead_strip _read_enum_def .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_enum_def.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_equality_expr _read_equality_expr: ## @read_equality_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 %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 xorl %eax, %eax callq _read_relational_expr movq %rax, %r15 movq _OP_EQ@GOTPCREL(%rip), %rbx movl (%rbx), %edi callq _next_token testq %rax, %rax jne LBB0_2 ## %bb.1: movq _OP_NE@GOTPCREL(%rip), %rbx movl (%rbx), %edi callq _next_token testq %rax, %rax je LBB0_3 LBB0_2: movl (%rbx), %r14d movq %r15, %rdi callq _conv movl %eax, %ebx callq _read_equality_expr movq %rax, %rdi callq _conv movl %r14d, %edi movl %ebx, %esi movl %eax, %edx callq _binop movq %rax, %r15 movq _type_int@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, (%r15) LBB0_3: movq %r15, %rax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _OP_EQ,4,2 ## @OP_EQ .comm _OP_NE,4,2 ## @OP_NE .comm _type_int,4,2 ## @type_int .no_dead_strip _read_equality_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_equality_expr _read_equality_expr: ; @read_equality_expr .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_relational_expr mov x19, x0 Lloh0: adrp x20, _OP_EQ@GOTPAGE Lloh1: ldr x20, [x20, _OP_EQ@GOTPAGEOFF] ldr w0, [x20] bl _next_token cbnz x0, LBB0_2 ; %bb.1: Lloh2: adrp x20, _OP_NE@GOTPAGE Lloh3: ldr x20, [x20, _OP_NE@GOTPAGEOFF] ldr w0, [x20] bl _next_token cbz x0, LBB0_3 LBB0_2: ldr w20, [x20] mov x0, x19 bl _conv mov x19, x0 bl _read_equality_expr bl _conv mov x2, x0 mov x0, x20 mov x1, x19 bl _binop mov x19, x0 Lloh4: adrp x8, _type_int@GOTPAGE Lloh5: ldr x8, [x8, _type_int@GOTPAGEOFF] Lloh6: ldr w8, [x8] str w8, [x0] LBB0_3: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .cfi_endproc ; -- End function .comm _OP_EQ,4,2 ; @OP_EQ .comm _OP_NE,4,2 ; @OP_NE .comm _type_int,4,2 ; @type_int .no_dead_strip _read_equality_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_equality_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_expr ## -- Begin function read_expr .p2align 4, 0x90 _read_expr: ## @read_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 %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 xorl %eax, %eax callq _peek movq %rax, %r14 xorl %eax, %eax callq _read_comma_expr movq %rax, %rbx testq %rax, %rax jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %r14, %rdi callq _errort LBB0_2: movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "expression expected" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_expr ; -- Begin function read_expr .p2align 2 _read_expr: ; @read_expr .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 _peek mov x20, x0 bl _read_comma_expr mov x19, x0 cbnz x0, LBB0_2 ; %bb.1: Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _errort LBB0_2: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "expression expected" .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_expr_opt _read_expr_opt: ## @read_expr_opt .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 popq %rbp jmp _read_comma_expr ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_expr_opt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_expr_opt _read_expr_opt: ; @read_expr_opt .cfi_startproc ; %bb.0: b _read_comma_expr .cfi_endproc ; -- End function .no_dead_strip _read_expr_opt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_expr_opt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_float _read_float: ## @read_float .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 subq $24, %rsp .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r15 movq (%rdi), %r14 leaq -40(%rbp), %rsi movq %r14, %rdi callq _strtod movsd %xmm0, -32(%rbp) ## 8-byte Spill movq -40(%rbp), %rbx leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _strcasecmp testl %eax, %eax je LBB0_1 ## %bb.2: leaq L_.str.1(%rip), %rsi movq %rbx, %rdi callq _strcasecmp testl %eax, %eax je LBB0_3 ## %bb.4: movb (%rbx), %al movq _type_double@GOTPCREL(%rip), %rbx testb %al, %al je LBB0_6 ## %bb.5: movsbl %al, %edx leaq L_.str.2(%rip), %rsi movq %r15, %rdi movq %r14, %rcx callq _errort jmp LBB0_6 LBB0_1: movq _type_ldouble@GOTPCREL(%rip), %rbx jmp LBB0_6 LBB0_3: movq _type_float@GOTPCREL(%rip), %rbx LBB0_6: movsd -32(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movl (%rbx), %edi addq $24, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _ast_floattype ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "l" .comm _type_ldouble,4,2 ## @type_ldouble L_.str.1: ## @.str.1 .asciz "f" .comm _type_float,4,2 ## @type_float L_.str.2: ## @.str.2 .asciz "invalid character '%c': %s" .comm _type_double,4,2 ## @type_double .no_dead_strip _read_float .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_float _read_float: ; @read_float .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp d9, d8, [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 b8, -56 .cfi_offset b9, -64 mov x20, x0 ldr x19, [x0] add x1, sp, #8 mov x0, x19 bl _strtod fmov d8, d0 ldr x21, [sp, #8] Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x21 bl _strcasecmp cbz w0, LBB0_5 ; %bb.1: Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF mov x0, x21 bl _strcasecmp cbz w0, LBB0_6 ; %bb.2: ldrb w8, [x21] cbz w8, LBB0_4 ; %bb.3: sxtb w2, w8 Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF mov x0, x20 mov x3, x19 bl _errort LBB0_4: Lloh6: adrp x8, _type_double@GOTPAGE Lloh7: ldr x8, [x8, _type_double@GOTPAGEOFF] b LBB0_7 LBB0_5: Lloh8: adrp x8, _type_ldouble@GOTPAGE Lloh9: ldr x8, [x8, _type_ldouble@GOTPAGEOFF] b LBB0_7 LBB0_6: Lloh10: adrp x8, _type_float@GOTPAGE Lloh11: ldr x8, [x8, _type_float@GOTPAGEOFF] LBB0_7: ldr w0, [x8] fmov d0, d8 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 d9, d8, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 b _ast_floattype .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpLdrGot Lloh6, Lloh7 .loh AdrpLdrGot Lloh8, Lloh9 .loh AdrpLdrGot Lloh10, Lloh11 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "l" .comm _type_ldouble,4,2 ; @type_ldouble l_.str.1: ; @.str.1 .asciz "f" .comm _type_float,4,2 ; @type_float l_.str.2: ; @.str.2 .asciz "invalid character '%c': %s" .comm _type_double,4,2 ; @type_double .no_dead_strip _read_float .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_float.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_for_stmt _read_for_stmt: ## @read_for_stmt .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 $40, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl $40, %edi callq _expect xorl %eax, %eax callq _make_label movq %rax, -72(%rbp) ## 8-byte Spill xorl %eax, %eax callq _make_label movq %rax, -56(%rbp) ## 8-byte Spill xorl %eax, %eax callq _make_label movq %rax, %r12 movq _localenv@GOTPCREL(%rip), %r13 movq (%r13), %r14 movq %r14, %rdi callq _make_map_parent movq %rax, (%r13) xorl %eax, %eax callq _read_opt_decl_or_stmt movq %rax, %r15 xorl %eax, %eax callq _read_expr_opt testq %rax, %rax je LBB0_1 ## %bb.2: movq %rax, %rbx movl (%rax), %edi callq _is_flotype testq %rax, %rax je LBB0_4 ## %bb.3: movq _type_bool@GOTPCREL(%rip), %rax movl (%rax), %edi movq %rbx, %rsi callq _ast_conv movq %rax, %rbx jmp LBB0_4 LBB0_1: xorl %ebx, %ebx LBB0_4: movl $59, %edi callq _expect xorl %eax, %eax callq _read_expr_opt movq %rax, -64(%rbp) ## 8-byte Spill movl $41, %edi callq _expect movq -56(%rbp), %rdi ## 8-byte Reload movq %r12, -48(%rbp) ## 8-byte Spill movq %r12, %rsi callq _SET_JUMP_LABELS xorl %eax, %eax callq _read_stmt movq %rax, %r12 xorl %eax, %eax callq _RESTORE_JUMP_LABELS movq %r14, (%r13) xorl %eax, %eax callq _make_vector movq %rax, %r14 testq %r15, %r15 je LBB0_6 ## %bb.5: movq %r14, %rdi movq %r15, %rsi callq _vec_push LBB0_6: movq -72(%rbp), %r15 ## 8-byte Reload movq %r15, %rdi callq _ast_dest movq %r14, %rdi movq %rax, %rsi callq _vec_push testq %rbx, %rbx je LBB0_8 ## %bb.7: movq -48(%rbp), %rdi ## 8-byte Reload callq _ast_jump movq %rbx, %rdi xorl %esi, %esi movq %rax, %rdx callq _ast_if movq %r14, %rdi movq %rax, %rsi callq _vec_push LBB0_8: testq %r12, %r12 je LBB0_10 ## %bb.9: movq %r14, %rdi movq %r12, %rsi callq _vec_push LBB0_10: movq -56(%rbp), %rdi ## 8-byte Reload callq _ast_dest movq %r14, %rdi movq %rax, %rsi callq _vec_push movq -64(%rbp), %rsi ## 8-byte Reload testq %rsi, %rsi je LBB0_12 ## %bb.11: movq %r14, %rdi callq _vec_push LBB0_12: movq %r15, %rdi callq _ast_jump movq %r14, %rdi movq %rax, %rsi callq _vec_push movq -48(%rbp), %rdi ## 8-byte Reload callq _ast_dest movq %r14, %rdi movq %rax, %rsi callq _vec_push movq %r14, %rdi addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _ast_compound_stmt ## TAILCALL .cfi_endproc ## -- End function .comm _localenv,8,3 ## @localenv .comm _type_bool,4,2 ## @type_bool .no_dead_strip _read_for_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_for_stmt _read_for_stmt: ; @read_for_stmt .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 w0, #40 bl _expect bl _make_label mov x20, x0 bl _make_label mov x21, x0 bl _make_label mov x19, x0 Lloh0: adrp x27, _localenv@GOTPAGE Lloh1: ldr x27, [x27, _localenv@GOTPAGEOFF] ldr x22, [x27] mov x0, x22 bl _make_map_parent str x0, [x27] bl _read_opt_decl_or_stmt mov x25, x0 bl _read_expr_opt mov x24, x0 cbz x0, LBB0_3 ; %bb.1: ldr w0, [x24] bl _is_flotype cbz x0, LBB0_3 ; %bb.2: Lloh2: adrp x8, _type_bool@GOTPAGE Lloh3: ldr x8, [x8, _type_bool@GOTPAGEOFF] Lloh4: ldr w0, [x8] mov x1, x24 bl _ast_conv mov x24, x0 LBB0_3: mov w0, #59 bl _expect bl _read_expr_opt mov x23, x0 mov w0, #41 bl _expect mov x0, x21 mov x1, x19 bl _SET_JUMP_LABELS bl _read_stmt mov x26, x0 bl _RESTORE_JUMP_LABELS str x22, [x27] bl _make_vector mov x22, x0 cbz x25, LBB0_5 ; %bb.4: mov x0, x22 mov x1, x25 bl _vec_push LBB0_5: mov x0, x20 bl _ast_dest mov x1, x0 mov x0, x22 bl _vec_push cbz x24, LBB0_7 ; %bb.6: mov x0, x19 bl _ast_jump mov x2, x0 mov x0, x24 mov x1, #0 bl _ast_if mov x1, x0 mov x0, x22 bl _vec_push LBB0_7: cbz x26, LBB0_9 ; %bb.8: mov x0, x22 mov x1, x26 bl _vec_push LBB0_9: mov x0, x21 bl _ast_dest mov x1, x0 mov x0, x22 bl _vec_push cbz x23, LBB0_11 ; %bb.10: mov x0, x22 mov x1, x23 bl _vec_push LBB0_11: mov x0, x20 bl _ast_jump mov x1, x0 mov x0, x22 bl _vec_push mov x0, x19 bl _ast_dest mov x1, x0 mov x0, x22 bl _vec_push mov x0, x22 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 _ast_compound_stmt .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _localenv,8,3 ; @localenv .comm _type_bool,4,2 ; @type_bool .no_dead_strip _read_for_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_for_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_func_args _read_func_args: ## @read_func_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 %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 %eax, %eax callq _make_vector movq %rax, %r12 movl $41, %edi callq _next_token testq %rax, %rax je LBB0_1 LBB0_14: movq %r12, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_1: xorl %r13d, %r13d movq %r15, -48(%rbp) ## 8-byte Spill jmp LBB0_2 .p2align 4, 0x90 LBB0_13: ## in Loop: Header=BB0_2 Depth=1 movl $41, %edi callq _next_token testq %rax, %rax jne LBB0_14 LBB0_2: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _read_assignment_expr movl %eax, %edi callq _conv movq %rax, %rbx movq %r15, %rdi callq _vec_len cmpl %eax, %r13d jge LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 leal 1(%r13), %r14d movq %r15, %rdi movl %r13d, %esi callq _vec_get movq %rax, %r15 movl %r14d, %r13d jmp LBB0_8 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_2 Depth=1 movq (%rbx), %rdi callq _is_flotype movq _type_double@GOTPCREL(%rip), %rcx testq %rax, %rax jne LBB0_7 ## %bb.5: ## in Loop: Header=BB0_2 Depth=1 movq (%rbx), %rdi callq _is_inttype movq %rbx, %rcx testq %rax, %rax je LBB0_7 ## %bb.6: ## in Loop: Header=BB0_2 Depth=1 movq _type_int@GOTPCREL(%rip), %rcx .p2align 4, 0x90 LBB0_7: ## in Loop: Header=BB0_2 Depth=1 movq (%rcx), %r15 LBB0_8: ## in Loop: Header=BB0_2 Depth=1 movq (%rbx), %rsi movq %r15, %rdi callq _ensure_assignable movq (%r15), %rax movq (%rbx), %rcx cmpq (%rcx), %rax je LBB0_10 ## %bb.9: ## in Loop: Header=BB0_2 Depth=1 movq %r15, %rdi movq %rbx, %rsi callq _ast_conv movq %rax, %rbx LBB0_10: ## in Loop: Header=BB0_2 Depth=1 movq -48(%rbp), %r15 ## 8-byte Reload movq %r12, %rdi movq %rbx, %rsi callq _vec_push xorl %eax, %eax callq _get movq %rax, %rbx movq %rax, %rdi movl $41, %esi callq _is_keyword testq %rax, %rax jne LBB0_14 ## %bb.11: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rdi movl $44, %esi callq _is_keyword testq %rax, %rax jne LBB0_13 ## %bb.12: ## 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 jmp LBB0_13 .cfi_endproc ## -- End function .comm _type_double,8,3 ## @type_double .comm _type_int,8,3 ## @type_int .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "unexpected token: '%s'" .no_dead_strip _read_func_args .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_func_args _read_func_args: ; @read_func_args .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, x0 bl _make_vector mov x20, x0 mov w0, #41 bl _next_token cbz x0, LBB0_2 LBB0_1: mov x0, x20 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 w21, #0 Lloh0: adrp x25, _type_double@GOTPAGE Lloh1: ldr x25, [x25, _type_double@GOTPAGEOFF] Lloh2: adrp x26, _type_int@GOTPAGE Lloh3: ldr x26, [x26, _type_int@GOTPAGEOFF] Lloh4: adrp x22, l_.str@PAGE Lloh5: add x22, x22, l_.str@PAGEOFF b LBB0_4 LBB0_3: ; in Loop: Header=BB0_4 Depth=1 mov w0, #41 bl _next_token cbnz x0, LBB0_1 LBB0_4: ; =>This Inner Loop Header: Depth=1 bl _read_assignment_expr bl _conv mov x23, x0 mov x0, x19 bl _vec_len cmp w21, w0 b.ge LBB0_6 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 add w27, w21, #1 mov x0, x19 mov x1, x21 bl _vec_get mov x24, x0 mov x21, x27 b LBB0_9 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 ldr x0, [x23] bl _is_flotype mov x8, x25 cbnz x0, LBB0_8 ; %bb.7: ; in Loop: Header=BB0_4 Depth=1 ldr x0, [x23] bl _is_inttype cmp x0, #0 csel x8, x23, x26, eq LBB0_8: ; in Loop: Header=BB0_4 Depth=1 ldr x24, [x8] LBB0_9: ; in Loop: Header=BB0_4 Depth=1 ldr x1, [x23] mov x0, x24 bl _ensure_assignable ldr x8, [x24] ldr x9, [x23] ldr x9, [x9] cmp x8, x9 b.eq LBB0_11 ; %bb.10: ; in Loop: Header=BB0_4 Depth=1 mov x0, x24 mov x1, x23 bl _ast_conv mov x23, x0 LBB0_11: ; in Loop: Header=BB0_4 Depth=1 mov x0, x20 mov x1, x23 bl _vec_push bl _get mov x23, x0 mov w1, #41 bl _is_keyword cbnz x0, LBB0_1 ; %bb.12: ; in Loop: Header=BB0_4 Depth=1 mov x0, x23 mov w1, #44 bl _is_keyword cbnz x0, LBB0_3 ; %bb.13: ; in Loop: Header=BB0_4 Depth=1 mov x0, x23 bl _tok2s mov x2, x0 mov x0, x23 mov x1, x22 bl _errort b LBB0_3 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _type_double,8,3 ; @type_double .comm _type_int,8,3 ; @type_int .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "unexpected token: '%s'" .no_dead_strip _read_func_args .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_func_args.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_func_body _read_func_body: ## @read_func_body .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 %rdx, -48(%rbp) ## 8-byte Spill movq %rsi, %r12 movq %rdi, %r15 movq _localenv@GOTPCREL(%rip), %r13 movq (%r13), %rdi callq _make_map_parent movq %rax, (%r13) xorl %eax, %eax callq _make_vector movq _localvars@GOTPCREL(%rip), %r14 movq %rax, (%r14) movq _current_func_type@GOTPCREL(%rip), %rax movq %r15, (%rax) movq _ENC_NONE@GOTPCREL(%rip), %rax movl (%rax), %ebx movq %r12, %rdi callq _strlen leaq 1(%rax), %rdx movl %ebx, %edi movq %r12, %rsi callq _ast_string movq %rax, %rbx movq (%r13), %rdi leaq L_.str(%rip), %rsi movq %rax, %rdx callq _map_put movq (%r13), %rdi leaq L_.str.1(%rip), %rsi movq %rbx, %rdx callq _map_put xorl %eax, %eax callq _read_compound_stmt movq (%r14), %r8 movq %r15, %rdi movq %r12, %rsi movq -48(%rbp), %rdx ## 8-byte Reload movq %rax, %rcx callq _ast_func movq _current_func_type@GOTPCREL(%rip), %rcx movq $0, (%rcx) movq $0, (%r13) movq $0, (%r14) addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _localenv,8,3 ## @localenv .comm _localvars,8,3 ## @localvars .comm _current_func_type,8,3 ## @current_func_type .comm _ENC_NONE,4,2 ## @ENC_NONE .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "__func__" L_.str.1: ## @.str.1 .asciz "__FUNCTION__" .no_dead_strip _read_func_body .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_func_body _read_func_body: ; @read_func_body .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, x2 mov x20, x1 mov x21, x0 Lloh0: adrp x23, _localenv@GOTPAGE Lloh1: ldr x23, [x23, _localenv@GOTPAGEOFF] ldr x0, [x23] bl _make_map_parent str x0, [x23] bl _make_vector Lloh2: adrp x24, _localvars@GOTPAGE Lloh3: ldr x24, [x24, _localvars@GOTPAGEOFF] str x0, [x24] Lloh4: adrp x25, _current_func_type@GOTPAGE Lloh5: ldr x25, [x25, _current_func_type@GOTPAGEOFF] str x21, [x25] Lloh6: adrp x8, _ENC_NONE@GOTPAGE Lloh7: ldr x8, [x8, _ENC_NONE@GOTPAGEOFF] Lloh8: ldr w22, [x8] mov x0, x20 bl _strlen add x2, x0, #1 mov x0, x22 mov x1, x20 bl _ast_string mov x22, x0 ldr x0, [x23] Lloh9: adrp x1, l_.str@PAGE Lloh10: add x1, x1, l_.str@PAGEOFF mov x2, x22 bl _map_put ldr x0, [x23] Lloh11: adrp x1, l_.str.1@PAGE Lloh12: add x1, x1, l_.str.1@PAGEOFF mov x2, x22 bl _map_put bl _read_compound_stmt mov x3, x0 ldr x4, [x24] mov x0, x21 mov x1, x20 mov x2, x19 bl _ast_func str xzr, [x25] str xzr, [x23] str xzr, [x24] 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 Lloh11, Lloh12 .loh AdrpAdd Lloh9, Lloh10 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _localenv,8,3 ; @localenv .comm _localvars,8,3 ; @localvars .comm _current_func_type,8,3 ; @current_func_type .comm _ENC_NONE,4,2 ; @ENC_NONE .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "__func__" l_.str.1: ; @.str.1 .asciz "__FUNCTION__" .no_dead_strip _read_func_body .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_func_body.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_func_param _read_func_param: ## @read_func_param .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 movl %esi, %r15d movq %rdi, %r14 movl $0, -36(%rbp) movq _type_int@GOTPCREL(%rip), %rax movq (%rax), %rbx xorl %eax, %eax callq _peek movl %eax, %edi callq _is_type testq %rax, %rax je LBB0_2 ## %bb.1: leaq -36(%rbp), %rdi callq _read_decl_spec movq %rax, %rbx jmp LBB0_4 LBB0_2: testl %r15d, %r15d je LBB0_4 ## %bb.3: xorl %eax, %eax callq _peek movl %eax, %r12d xorl %eax, %eax callq _peek movl %eax, %edi callq _tok2s leaq L_.str(%rip), %rsi movl %r12d, %edi movl %eax, %edx callq _errort LBB0_4: testl %r15d, %r15d jne LBB0_5 ## %bb.6: movq _DECL_PARAM@GOTPCREL(%rip), %rax jmp LBB0_7 LBB0_5: movq _DECL_PARAM_TYPEONLY@GOTPCREL(%rip), %rax LBB0_7: movl (%rax), %ecx movq %r14, %rdi movq %rbx, %rsi xorl %edx, %edx callq _read_declarator movq (%rax), %rcx movq _KIND_ARRAY@GOTPCREL(%rip), %rdx cmpq (%rdx), %rcx jne LBB0_9 ## %bb.8: movq 8(%rax), %rdi jmp LBB0_11 LBB0_9: movq _KIND_FUNC@GOTPCREL(%rip), %rdx cmpq (%rdx), %rcx jne LBB0_12 ## %bb.10: movq %rax, %rdi LBB0_11: callq _make_ptr_type LBB0_12: addq $16, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _type_int,8,3 ## @type_int .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "type expected, but got %s" .comm _DECL_PARAM_TYPEONLY,4,2 ## @DECL_PARAM_TYPEONLY .comm _DECL_PARAM,4,2 ## @DECL_PARAM .comm _KIND_ARRAY,8,3 ## @KIND_ARRAY .comm _KIND_FUNC,8,3 ## @KIND_FUNC .no_dead_strip _read_func_param .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_func_param _read_func_param: ; @read_func_param .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 mov x20, x1 mov x19, x0 str wzr, [sp, #12] Lloh0: adrp x8, _type_int@GOTPAGE Lloh1: ldr x8, [x8, _type_int@GOTPAGEOFF] Lloh2: ldr x21, [x8] bl _peek bl _is_type cbz x0, LBB0_2 ; %bb.1: add x0, sp, #12 bl _read_decl_spec mov x21, x0 b LBB0_4 LBB0_2: cbz w20, LBB0_4 ; %bb.3: bl _peek mov x22, x0 bl _peek bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x22 bl _errort LBB0_4: Lloh5: adrp x8, _DECL_PARAM_TYPEONLY@GOTPAGE Lloh6: ldr x8, [x8, _DECL_PARAM_TYPEONLY@GOTPAGEOFF] Lloh7: adrp x9, _DECL_PARAM@GOTPAGE Lloh8: ldr x9, [x9, _DECL_PARAM@GOTPAGEOFF] cmp w20, #0 csel x8, x9, x8, eq ldr w3, [x8] mov x0, x19 mov x1, x21 mov x2, #0 bl _read_declarator ldr x8, [x0] Lloh9: adrp x9, _KIND_ARRAY@GOTPAGE Lloh10: ldr x9, [x9, _KIND_ARRAY@GOTPAGEOFF] Lloh11: ldr x9, [x9] cmp x8, x9 b.ne LBB0_6 ; %bb.5: ldr x0, [x0, #8] b LBB0_7 LBB0_6: Lloh12: adrp x9, _KIND_FUNC@GOTPAGE Lloh13: ldr x9, [x9, _KIND_FUNC@GOTPAGEOFF] Lloh14: ldr x9, [x9] cmp x8, x9 b.ne LBB0_8 LBB0_7: bl _make_ptr_type 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 add sp, sp, #64 ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh9, Lloh10, Lloh11 .loh AdrpLdrGot Lloh7, Lloh8 .loh AdrpLdrGot Lloh5, Lloh6 .loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14 .cfi_endproc ; -- End function .comm _type_int,8,3 ; @type_int .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "type expected, but got %s" .comm _DECL_PARAM_TYPEONLY,4,2 ; @DECL_PARAM_TYPEONLY .comm _DECL_PARAM,4,2 ; @DECL_PARAM .comm _KIND_ARRAY,8,3 ; @KIND_ARRAY .comm _KIND_FUNC,8,3 ; @KIND_FUNC .no_dead_strip _read_func_param .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_func_param.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_func_param_list _read_func_param_list: ## @read_func_param_list .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 movq %rdi, %r15 xorl %eax, %eax callq _get movq %rax, %rbx movq _KVOID@GOTPCREL(%rip), %rax movsbl (%rax), %esi movq %rbx, %rdi callq _is_keyword testq %rax, %rax je LBB0_3 ## %bb.1: movl $41, %edi callq _next_token testq %rax, %rax je LBB0_3 ## %bb.2: xorl %eax, %eax callq _make_vector movq %r14, %rdi movq %rax, %rsi xorl %edx, %edx xorl %ecx, %ecx jmp LBB0_15 LBB0_3: movq %rbx, %rdi movl $41, %esi callq _is_keyword testq %rax, %rax je LBB0_5 ## %bb.4: xorl %eax, %eax callq _make_vector movq %r14, %rdi movq %rax, %rsi movl $1, %edx LBB0_14: movl $1, %ecx LBB0_15: addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _make_func_type ## TAILCALL LBB0_5: movq %rbx, %rdi callq _unget_token xorl %eax, %eax callq _peek movq %rax, %r12 movq _KELLIPSIS@GOTPCREL(%rip), %rax movsbl (%rax), %edi callq _next_token testq %rax, %rax je LBB0_7 ## %bb.6: leaq L_.str(%rip), %rsi movq %r12, %rdi callq _errort LBB0_7: xorl %eax, %eax callq _peek movq %rax, %rdi callq _is_type testq %rax, %rax je LBB0_8 ## %bb.16: xorl %eax, %eax callq _make_vector movq %rax, %rbx leaq -44(%rbp), %rdx movq %rax, %rdi movq %r15, %rsi callq _read_declarator_params movl -44(%rbp), %edx movq %r14, %rdi movq %rbx, %rsi xorl %ecx, %ecx callq _make_func_type addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_8: testq %r15, %r15 jne LBB0_10 ## %bb.9: leaq L_.str.1(%rip), %rsi movq %rbx, %rdi callq _errort LBB0_10: movq %r15, %rdi callq _read_declarator_params_oldstyle xorl %ebx, %ebx xorl %eax, %eax callq _make_vector movq %rax, %r12 movq %r15, %rdi callq _vec_len testl %eax, %eax jle LBB0_13 ## %bb.11: movq _type_int@GOTPCREL(%rip), %r13 .p2align 4, 0x90 LBB0_12: ## =>This Inner Loop Header: Depth=1 movl (%r13), %esi movq %r12, %rdi callq _vec_push incl %ebx movq %r15, %rdi callq _vec_len cmpl %eax, %ebx jl LBB0_12 LBB0_13: movq %r14, %rdi movq %r12, %rsi xorl %edx, %edx jmp LBB0_14 .cfi_endproc ## -- End function .comm _KVOID,1,0 ## @KVOID .comm _KELLIPSIS,1,0 ## @KELLIPSIS .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "at least one parameter is required before \"...\"" L_.str.1: ## @.str.1 .asciz "invalid function definition" .comm _type_int,4,2 ## @type_int .no_dead_strip _read_func_param_list .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_func_param_list _read_func_param_list: ; @read_func_param_list .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 bl _get mov x21, x0 Lloh0: adrp x8, _KVOID@GOTPAGE Lloh1: ldr x8, [x8, _KVOID@GOTPAGEOFF] Lloh2: ldrsb w1, [x8] bl _is_keyword cbz x0, LBB0_3 ; %bb.1: mov w0, #41 bl _next_token cbz x0, LBB0_3 ; %bb.2: bl _make_vector mov x1, x0 mov x0, x19 mov w2, #0 mov w3, #0 b LBB0_6 LBB0_3: mov x0, x21 mov w1, #41 bl _is_keyword cbz x0, LBB0_7 ; %bb.4: bl _make_vector mov x1, x0 mov x0, x19 mov w2, #1 LBB0_5: mov w3, #1 LBB0_6: 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 b _make_func_type LBB0_7: mov x0, x21 bl _unget_token bl _peek mov x22, x0 Lloh3: adrp x8, _KELLIPSIS@GOTPAGE Lloh4: ldr x8, [x8, _KELLIPSIS@GOTPAGEOFF] Lloh5: ldrsb w0, [x8] bl _next_token cbz x0, LBB0_9 ; %bb.8: Lloh6: adrp x1, l_.str@PAGE Lloh7: add x1, x1, l_.str@PAGEOFF mov x0, x22 bl _errort LBB0_9: bl _peek bl _is_type cbz x0, LBB0_11 ; %bb.10: bl _make_vector mov x21, x0 add x2, sp, #12 mov x1, x20 bl _read_declarator_params ldr w2, [sp, #12] mov x0, x19 mov x1, x21 mov w3, #0 bl _make_func_type 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_11: cbnz x20, LBB0_13 ; %bb.12: Lloh8: adrp x1, l_.str.1@PAGE Lloh9: add x1, x1, l_.str.1@PAGEOFF mov x0, x21 bl _errort LBB0_13: mov x0, x20 bl _read_declarator_params_oldstyle bl _make_vector mov x21, x0 mov x0, x20 bl _vec_len cmp w0, #1 b.lt LBB0_16 ; %bb.14: mov w22, #0 Lloh10: adrp x23, _type_int@GOTPAGE Lloh11: ldr x23, [x23, _type_int@GOTPAGEOFF] LBB0_15: ; =>This Inner Loop Header: Depth=1 ldr w1, [x23] mov x0, x21 bl _vec_push add w22, w22, #1 mov x0, x20 bl _vec_len cmp w22, w0 b.lt LBB0_15 LBB0_16: mov x0, x19 mov x1, x21 mov w2, #0 b LBB0_5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpLdrGot Lloh10, Lloh11 .cfi_endproc ; -- End function .comm _KVOID,1,0 ; @KVOID .comm _KELLIPSIS,1,0 ; @KELLIPSIS .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "at least one parameter is required before \"...\"" l_.str.1: ; @.str.1 .asciz "invalid function definition" .comm _type_int,4,2 ; @type_int .no_dead_strip _read_func_param_list .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_func_param_list.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_funcall _read_funcall: ## @read_funcall .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 movq (%rdi), %rax movq _AST_ADDR@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_3 ## %bb.1: movq 24(%rbx), %r14 movq (%r14), %rax movq _AST_FUNCDESG@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_3 ## %bb.2: movq 8(%r14), %rax movl 8(%rax), %edi callq _read_func_args movq 8(%r14), %rdi movl 16(%r14), %esi movq %rax, %rdx popq %rbx popq %r14 popq %rbp jmp _ast_funcall ## TAILCALL LBB0_3: movq 8(%rbx), %rax movq (%rax), %rax movl (%rax), %edi callq _read_func_args movq %rbx, %rdi movq %rax, %rsi popq %rbx popq %r14 popq %rbp jmp _ast_funcptr_call ## TAILCALL .cfi_endproc ## -- End function .comm _AST_ADDR,8,3 ## @AST_ADDR .comm _AST_FUNCDESG,8,3 ## @AST_FUNCDESG .no_dead_strip _read_funcall .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_funcall _read_funcall: ; @read_funcall .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 x8, [x0] Lloh0: adrp x9, _AST_ADDR@GOTPAGE Lloh1: ldr x9, [x9, _AST_ADDR@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_3 ; %bb.1: ldr x20, [x19, #24] ldr x8, [x20] Lloh3: adrp x9, _AST_FUNCDESG@GOTPAGE Lloh4: ldr x9, [x9, _AST_FUNCDESG@GOTPAGEOFF] Lloh5: ldr x9, [x9] cmp x8, x9 b.ne LBB0_3 ; %bb.2: ldr x8, [x20, #8] ldr w0, [x8, #8] bl _read_func_args mov x2, x0 ldr x0, [x20, #8] ldr w1, [x20, #16] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_funcall LBB0_3: ldr x8, [x19, #8] ldr x8, [x8] ldr w0, [x8] bl _read_func_args mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_funcptr_call .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _AST_ADDR,8,3 ; @AST_ADDR .comm _AST_FUNCDESG,8,3 ; @AST_FUNCDESG .no_dead_strip _read_funcall .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_funcall.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_funcdef _read_funcdef: ## @read_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 %rbx subq $24, %rsp .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl $0, -28(%rbp) leaq -28(%rbp), %rdi callq _read_decl_spec_opt movq %rax, %rbx movq _globalenv@GOTPCREL(%rip), %rax movl (%rax), %edi callq _make_map_parent movq _localenv@GOTPCREL(%rip), %r15 movq %rax, (%r15) xorl %eax, %eax callq _make_vector movq _gotos@GOTPCREL(%rip), %rcx movq %rax, (%rcx) xorl %eax, %eax callq _make_map movq _labels@GOTPCREL(%rip), %rcx movl %eax, (%rcx) xorl %eax, %eax callq _make_vector movq %rax, %r14 movq _DECL_BODY@GOTPCREL(%rip), %rax movl (%rax), %ecx leaq -40(%rbp), %rdi movq %rbx, %rsi movq %r14, %rdx callq _read_declarator movq %rax, %rbx cmpq $0, 16(%rax) je LBB0_4 ## %bb.1: movq %r14, %rdi callq _vec_len testq %rax, %rax jne LBB0_3 ## %bb.2: movl $0, (%rbx) LBB0_3: movq %r14, %rdi callq _read_oldstyle_param_type movq %r14, %rdi callq _param_types movl %eax, 8(%rbx) LBB0_4: movl -28(%rbp), %eax movq _S_STATIC@GOTPCREL(%rip), %rcx xorl %edx, %edx cmpl (%rcx), %eax sete %dl movl %edx, 4(%rbx) movq -40(%rbp), %rsi movq %rbx, %rdi callq _ast_gvar movl $123, %edi callq _expect movq -40(%rbp), %rsi movq %rbx, %rdi movq %r14, %rdx callq _read_func_body movq %rax, %rbx xorl %eax, %eax callq _backfill_labels movq $0, (%r15) movq %rbx, %rax addq $24, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _globalenv,4,2 ## @globalenv .comm _localenv,8,3 ## @localenv .comm _gotos,8,3 ## @gotos .comm _labels,4,2 ## @labels .comm _DECL_BODY,4,2 ## @DECL_BODY .comm _S_STATIC,4,2 ## @S_STATIC .no_dead_strip _read_funcdef .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_funcdef _read_funcdef: ; @read_funcdef .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 str wzr, [sp, #12] add x0, sp, #12 bl _read_decl_spec_opt mov x20, x0 Lloh0: adrp x8, _globalenv@GOTPAGE Lloh1: ldr x8, [x8, _globalenv@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _make_map_parent Lloh3: adrp x21, _localenv@GOTPAGE Lloh4: ldr x21, [x21, _localenv@GOTPAGEOFF] str x0, [x21] bl _make_vector Lloh5: adrp x8, _gotos@GOTPAGE Lloh6: ldr x8, [x8, _gotos@GOTPAGEOFF] Lloh7: str x0, [x8] bl _make_map Lloh8: adrp x8, _labels@GOTPAGE Lloh9: ldr x8, [x8, _labels@GOTPAGEOFF] Lloh10: str w0, [x8] bl _make_vector mov x19, x0 Lloh11: adrp x8, _DECL_BODY@GOTPAGE Lloh12: ldr x8, [x8, _DECL_BODY@GOTPAGEOFF] Lloh13: ldr w3, [x8] mov x0, sp mov x1, x20 mov x2, x19 bl _read_declarator mov x20, x0 ldr x8, [x0, #16] cbz x8, LBB0_4 ; %bb.1: mov x0, x19 bl _vec_len cbnz x0, LBB0_3 ; %bb.2: str wzr, [x20] LBB0_3: mov x0, x19 bl _read_oldstyle_param_type mov x0, x19 bl _param_types str w0, [x20, #8] LBB0_4: Lloh14: adrp x8, _S_STATIC@GOTPAGE Lloh15: ldr x8, [x8, _S_STATIC@GOTPAGEOFF] ldr w9, [sp, #12] Lloh16: ldr w8, [x8] cmp w9, w8 cset w8, eq str w8, [x20, #4] ldr x1, [sp] mov x0, x20 bl _ast_gvar mov w0, #123 bl _expect ldr x1, [sp] mov x0, x20 mov x2, x19 bl _read_func_body mov x19, x0 bl _backfill_labels str xzr, [x21] mov x0, 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 add sp, sp, #64 ret .loh AdrpLdrGotLdr Lloh11, Lloh12, Lloh13 .loh AdrpLdrGotStr Lloh8, Lloh9, Lloh10 .loh AdrpLdrGotStr Lloh5, Lloh6, Lloh7 .loh AdrpLdrGot Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16 .cfi_endproc ; -- End function .comm _globalenv,4,2 ; @globalenv .comm _localenv,8,3 ; @localenv .comm _gotos,8,3 ; @gotos .comm _labels,4,2 ; @labels .comm _DECL_BODY,4,2 ; @DECL_BODY .comm _S_STATIC,4,2 ; @S_STATIC .no_dead_strip _read_funcdef .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_funcdef.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_generic _read_generic: ## @read_generic .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 $40, %edi callq _expect xorl %ebx, %ebx xorl %eax, %eax callq _peek movq %rax, %r14 xorl %eax, %eax callq _read_assignment_expr movq %rax, %r15 movl $44, %edi callq _expect movq $0, -48(%rbp) leaq -48(%rbp), %rdi callq _read_generic_list movq %rax, %r12 movq %rax, %rdi callq _vec_len testl %eax, %eax jle LBB0_1 .p2align 4, 0x90 LBB0_4: ## =>This Inner Loop Header: Depth=1 movq %r12, %rdi movl %ebx, %esi callq _vec_get movq (%rax), %rsi movq 8(%rax), %r13 movl (%r15), %edi callq _type_compatible testq %rax, %rax jne LBB0_5 ## %bb.3: ## in Loop: Header=BB0_4 Depth=1 incl %ebx movq %r12, %rdi callq _vec_len cmpl %eax, %ebx jl LBB0_4 LBB0_1: movq -48(%rbp), %r13 testq %r13, %r13 jne LBB0_5 ## %bb.2: movq %r15, %rdi callq _node2s movl %eax, %ebx movl (%r15), %edi callq _ty2s leaq L_.str(%rip), %rsi movq %r14, %rdi movl %ebx, %edx movl %eax, %ecx callq _errort movq -48(%rbp), %r13 LBB0_5: movq %r13, %rax 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 "no matching generic selection for %s: %s" .no_dead_strip _read_generic .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_generic _read_generic: ; @read_generic .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 w0, #40 bl _expect bl _peek mov x19, x0 bl _read_assignment_expr mov x20, x0 mov w0, #44 bl _expect str xzr, [sp, #8] add x0, sp, #8 bl _read_generic_list mov x21, x0 bl _vec_len cmp w0, #1 b.lt LBB0_4 ; %bb.1: mov w22, #0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x21 mov x1, x22 bl _vec_get ldp x1, x23, [x0] ldr w0, [x20] bl _type_compatible cbnz x0, LBB0_6 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 add w22, w22, #1 mov x0, x21 bl _vec_len cmp w22, w0 b.lt LBB0_2 LBB0_4: ldr x23, [sp, #8] cbnz x23, LBB0_6 ; %bb.5: mov x0, x20 bl _node2s mov x21, x0 ldr w0, [x20] bl _ty2s mov x3, x0 Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x19 mov x2, x21 bl _errort ldr x23, [sp, #8] LBB0_6: mov x0, x23 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 Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "no matching generic selection for %s: %s" .no_dead_strip _read_generic .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_generic.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_generic_list _read_generic_list: ## @read_generic_list .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, %r12 xorl %eax, %eax callq _make_vector movq %rax, %r14 movl $41, %edi callq _next_token testq %rax, %rax je LBB0_1 LBB0_8: movq %r14, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_1: movq _KDEFAULT@GOTPCREL(%rip), %r13 leaq L_.str(%rip), %r15 jmp LBB0_2 .p2align 4, 0x90 LBB0_6: ## in Loop: Header=BB0_2 Depth=1 xorl %eax, %eax callq _read_cast_type movq %rax, %rbx movl $58, %edi callq _expect xorl %eax, %eax callq _read_assignment_expr movq %rbx, %rdi movq %rax, %rsi callq _make_pair movq %r14, %rdi movl %eax, %esi callq _vec_push LBB0_7: ## in Loop: Header=BB0_2 Depth=1 movl $44, %edi callq _next_token movl $41, %edi callq _next_token testq %rax, %rax jne LBB0_8 LBB0_2: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _peek movq %rax, %rbx movsbl (%r13), %edi callq _next_token testq %rax, %rax je LBB0_6 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 cmpq $0, (%r12) je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rdi movq %r15, %rsi callq _errort LBB0_5: ## in Loop: Header=BB0_2 Depth=1 movl $58, %edi callq _expect xorl %eax, %eax callq _read_assignment_expr movq %rax, (%r12) jmp LBB0_7 .cfi_endproc ## -- End function .comm _KDEFAULT,1,0 ## @KDEFAULT .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "default expression specified twice" .no_dead_strip _read_generic_list .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_generic_list _read_generic_list: ; @read_generic_list .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_vector mov x20, x0 mov w0, #41 bl _next_token cbz x0, LBB0_2 LBB0_1: 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_2: Lloh0: adrp x23, _KDEFAULT@GOTPAGE Lloh1: ldr x23, [x23, _KDEFAULT@GOTPAGEOFF] Lloh2: adrp x21, l_.str@PAGE Lloh3: add x21, x21, l_.str@PAGEOFF b LBB0_5 LBB0_3: ; in Loop: Header=BB0_5 Depth=1 bl _read_cast_type mov x22, x0 mov w0, #58 bl _expect bl _read_assignment_expr mov x1, x0 mov x0, x22 bl _make_pair mov x1, x0 mov x0, x20 bl _vec_push LBB0_4: ; in Loop: Header=BB0_5 Depth=1 mov w0, #44 bl _next_token mov w0, #41 bl _next_token cbnz x0, LBB0_1 LBB0_5: ; =>This Inner Loop Header: Depth=1 bl _peek mov x22, x0 ldrsb w0, [x23] bl _next_token cbz x0, LBB0_3 ; %bb.6: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [x19] cbz x8, LBB0_8 ; %bb.7: ; in Loop: Header=BB0_5 Depth=1 mov x0, x22 mov x1, x21 bl _errort LBB0_8: ; in Loop: Header=BB0_5 Depth=1 mov w0, #58 bl _expect bl _read_assignment_expr str x0, [x19] b LBB0_4 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _KDEFAULT,1,0 ; @KDEFAULT .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "default expression specified twice" .no_dead_strip _read_generic_list .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_generic_list.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_goto_stmt _read_goto_stmt: ## @read_goto_stmt .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 $42, %edi callq _next_token testq %rax, %rax je LBB0_4 ## %bb.1: xorl %eax, %eax callq _peek movq %rax, %r14 xorl %eax, %eax callq _read_cast_expr movq %rax, %rbx movq (%rax), %rax movq (%rax), %rax movq _KIND_PTR@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_3 ## %bb.2: movq %rbx, %rdi callq _node2s leaq L_.str(%rip), %rsi movq %r14, %rdi movl %eax, %edx callq _errort LBB0_3: movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp _ast_computed_goto ## TAILCALL LBB0_4: xorl %eax, %eax callq _get movq %rax, %rbx testq %rax, %rax je LBB0_6 ## %bb.5: movq (%rbx), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_7 LBB0_6: movq %rbx, %rdi callq _tok2s leaq L_.str.1(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_7: movl $59, %edi callq _expect movl 8(%rbx), %edi callq _ast_goto movq %rax, %rbx movq _gotos@GOTPCREL(%rip), %rax movl (%rax), %edi movq %rbx, %rsi callq _vec_push movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _KIND_PTR,8,3 ## @KIND_PTR .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "pointer expected for computed goto, but got %s" .comm _TIDENT,8,3 ## @TIDENT L_.str.1: ## @.str.1 .asciz "identifier expected, but got %s" .comm _gotos,4,2 ## @gotos .no_dead_strip _read_goto_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_goto_stmt _read_goto_stmt: ; @read_goto_stmt .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov w0, #42 bl _next_token cbz x0, LBB0_4 ; %bb.1: bl _peek mov x20, x0 bl _read_cast_expr mov x19, x0 ldr x8, [x0] ldr x8, [x8] Lloh0: adrp x9, _KIND_PTR@GOTPAGE Lloh1: ldr x9, [x9, _KIND_PTR@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_3 ; %bb.2: mov x0, x19 bl _node2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _errort LBB0_3: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_computed_goto LBB0_4: bl _get mov x19, x0 cbz x0, LBB0_6 ; %bb.5: ldr x8, [x19] Lloh5: adrp x9, _TIDENT@GOTPAGE Lloh6: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh7: ldr x9, [x9] cmp x8, x9 b.eq LBB0_7 LBB0_6: mov x0, x19 bl _tok2s mov x2, x0 Lloh8: adrp x1, l_.str.1@PAGE Lloh9: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _errort LBB0_7: mov w0, #59 bl _expect ldr w0, [x19, #8] bl _ast_goto mov x19, x0 Lloh10: adrp x8, _gotos@GOTPAGE Lloh11: ldr x8, [x8, _gotos@GOTPAGEOFF] Lloh12: ldr w0, [x8] mov x1, x19 bl _vec_push 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 AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh12 .cfi_endproc ; -- End function .comm _KIND_PTR,8,3 ; @KIND_PTR .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "pointer expected for computed goto, but got %s" .comm _TIDENT,8,3 ; @TIDENT l_.str.1: ; @.str.1 .asciz "identifier expected, but got %s" .comm _gotos,4,2 ; @gotos .no_dead_strip _read_goto_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_goto_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_if_stmt _read_if_stmt: ## @read_if_stmt .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 $40, %edi callq _expect xorl %ebx, %ebx xorl %eax, %eax callq _read_boolean_expr movq %rax, %r14 movl $41, %edi callq _expect xorl %eax, %eax callq _read_stmt movq %rax, %r15 movq _KELSE@GOTPCREL(%rip), %rax movl (%rax), %edi callq _next_token testl %eax, %eax je LBB0_2 ## %bb.1: xorl %eax, %eax callq _read_stmt movq %rax, %rbx LBB0_2: movq %r14, %rdi movq %r15, %rsi movq %rbx, %rdx addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _ast_if ## TAILCALL .cfi_endproc ## -- End function .comm _KELSE,4,2 ## @KELSE .no_dead_strip _read_if_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_if_stmt _read_if_stmt: ; @read_if_stmt .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov w0, #40 bl _expect bl _read_boolean_expr mov x19, x0 mov w0, #41 bl _expect bl _read_stmt mov x20, x0 Lloh0: adrp x8, _KELSE@GOTPAGE Lloh1: ldr x8, [x8, _KELSE@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _next_token cbz w0, LBB0_2 ; %bb.1: bl _read_stmt mov x2, x0 b LBB0_3 LBB0_2: mov x2, #0 LBB0_3: mov x0, x19 mov x1, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_if .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _KELSE,4,2 ; @KELSE .no_dead_strip _read_if_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_if_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_initializer_elem _read_initializer_elem: ## @read_initializer_elem .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 %ecx, %r12d movl %edx, %r14d movq %rsi, %rbx movq %rdi, %r15 movl $61, %edi callq _next_token movq (%rbx), %rax movq _KIND_ARRAY@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_4 ## %bb.1: movq _KIND_STRUCT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_4 ## %bb.2: movl $123, %edi callq _next_token testq %rax, %rax je LBB0_3 ## %bb.5: movq %r15, %rdi movq %rbx, %rsi movl %r14d, %edx movl $1, %ecx callq _read_initializer_elem movl $125, %edi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _expect ## TAILCALL LBB0_4: movq %r15, %rdi movq %rbx, %rsi movl %r14d, %edx movl %r12d, %ecx popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _read_initializer_list ## TAILCALL LBB0_3: xorl %eax, %eax callq _read_assignment_expr movl %eax, %edi callq _conv movq %rax, %r12 movl (%rax), %esi movq %rbx, %rdi callq _ensure_assignable movq %r12, %rdi movq %rbx, %rsi movl %r14d, %edx callq _ast_init movq %r15, %rdi movl %eax, %esi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _vec_push ## TAILCALL .cfi_endproc ## -- End function .comm _KIND_ARRAY,8,3 ## @KIND_ARRAY .comm _KIND_STRUCT,8,3 ## @KIND_STRUCT .no_dead_strip _read_initializer_elem .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_initializer_elem _read_initializer_elem: ; @read_initializer_elem .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 x22, x3 mov x19, x2 mov x21, x1 mov x20, x0 mov w0, #61 bl _next_token ldr x8, [x21] Lloh0: adrp x9, _KIND_ARRAY@GOTPAGE Lloh1: ldr x9, [x9, _KIND_ARRAY@GOTPAGEOFF] Lloh2: ldr x9, [x9] Lloh3: adrp x10, _KIND_STRUCT@GOTPAGE Lloh4: ldr x10, [x10, _KIND_STRUCT@GOTPAGEOFF] Lloh5: ldr x10, [x10] cmp x8, x9 ccmp x8, x10, #4, ne b.ne LBB0_2 ; %bb.1: mov x0, x20 mov x1, x21 mov x2, x19 mov x3, x22 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 _read_initializer_list LBB0_2: mov w0, #123 bl _next_token cbz x0, LBB0_4 ; %bb.3: mov x0, x20 mov x1, x21 mov x2, x19 mov w3, #1 bl _read_initializer_elem mov w0, #125 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 _expect LBB0_4: bl _read_assignment_expr bl _conv mov x22, x0 ldr w1, [x0] mov x0, x21 bl _ensure_assignable mov x0, x22 mov x1, x21 mov x2, x19 bl _ast_init mov x1, x0 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 b _vec_push .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _KIND_ARRAY,8,3 ; @KIND_ARRAY .comm _KIND_STRUCT,8,3 ; @KIND_STRUCT .no_dead_strip _read_initializer_elem .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_initializer_elem.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_initializer_list _read_initializer_list: ## @read_initializer_list .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 %ecx, -44(%rbp) ## 4-byte Spill movl %edx, %r14d movq %rsi, %r13 movq %rdi, %r15 xorl %eax, %eax callq _get movq %rax, %rbx movq %r13, %rdi callq _is_string testq %rax, %rax je LBB0_4 ## %bb.1: movq (%rbx), %rax movq _TSTRING@GOTPCREL(%rip), %r12 cmpq (%r12), %rax jne LBB0_2 ## %bb.9: movl 8(%rbx), %edx movq %r15, %rdi movq %r13, %rsi movl %r14d, %ecx addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _assign_string ## TAILCALL LBB0_2: movq %rbx, %rdi movl $123, %esi callq _is_keyword testq %rax, %rax je LBB0_4 ## %bb.3: xorl %eax, %eax callq _peek movq (%rax), %rax cmpq (%r12), %rax jne LBB0_4 ## %bb.10: xorl %eax, %eax callq _get movl 8(%rax), %edx movq %r15, %rdi movq %r13, %rsi movl %r14d, %ecx callq _assign_string movl $125, %edi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _expect ## TAILCALL LBB0_4: movq %rbx, %rdi callq _unget_token movq (%r13), %rax movq _KIND_ARRAY@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_7 ## %bb.5: movq %r15, %rdi movq %r13, %rsi jmp LBB0_6 LBB0_7: movq _KIND_STRUCT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_8 ## %bb.11: movq %r15, %rdi movq %r13, %rsi movl %r14d, %edx movl -44(%rbp), %ecx ## 4-byte Reload addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _read_struct_initializer ## TAILCALL LBB0_8: movq %r13, %rdi movl $1, %esi callq _make_array_type movq %r15, %rdi movq %rax, %rsi LBB0_6: movl %r14d, %edx movl -44(%rbp), %ecx ## 4-byte Reload addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _read_array_initializer ## TAILCALL .cfi_endproc ## -- End function .comm _TSTRING,8,3 ## @TSTRING .comm _KIND_ARRAY,8,3 ## @KIND_ARRAY .comm _KIND_STRUCT,8,3 ## @KIND_STRUCT .no_dead_strip _read_initializer_list .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_initializer_list _read_initializer_list: ; @read_initializer_list .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 x20, x3 mov x19, x2 mov x22, x1 mov x21, x0 bl _get mov x23, x0 mov x0, x22 bl _is_string cbz x0, LBB0_6 ; %bb.1: ldr x8, [x23] Lloh0: adrp x24, _TSTRING@GOTPAGE Lloh1: ldr x24, [x24, _TSTRING@GOTPAGEOFF] ldr x9, [x24] cmp x8, x9 b.ne LBB0_3 ; %bb.2: ldr w2, [x23, #8] mov x0, x21 mov x1, x22 mov x3, 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 _assign_string LBB0_3: mov x0, x23 mov w1, #123 bl _is_keyword cbz x0, LBB0_6 ; %bb.4: bl _peek ldr x8, [x0] ldr x9, [x24] cmp x8, x9 b.ne LBB0_6 ; %bb.5: bl _get ldr w2, [x0, #8] mov x0, x21 mov x1, x22 mov x3, x19 bl _assign_string mov w0, #125 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload b _expect LBB0_6: mov x0, x23 bl _unget_token ldr x8, [x22] Lloh2: adrp x9, _KIND_ARRAY@GOTPAGE Lloh3: ldr x9, [x9, _KIND_ARRAY@GOTPAGEOFF] Lloh4: ldr x9, [x9] cmp x8, x9 b.ne LBB0_8 ; %bb.7: mov x0, x21 mov x1, x22 b LBB0_11 LBB0_8: Lloh5: adrp x9, _KIND_STRUCT@GOTPAGE Lloh6: ldr x9, [x9, _KIND_STRUCT@GOTPAGEOFF] Lloh7: ldr x9, [x9] cmp x8, x9 b.ne LBB0_10 ; %bb.9: mov x0, x21 mov x1, x22 mov x2, x19 mov x3, 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 b _read_struct_initializer LBB0_10: mov x0, x22 mov w1, #1 bl _make_array_type mov x1, x0 mov x0, x21 LBB0_11: mov x2, x19 mov x3, 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 b _read_array_initializer .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _TSTRING,8,3 ; @TSTRING .comm _KIND_ARRAY,8,3 ; @KIND_ARRAY .comm _KIND_STRUCT,8,3 ; @KIND_STRUCT .no_dead_strip _read_initializer_list .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_initializer_list.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_int _read_int: ## @read_int .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 movq %rdi, %r15 movq (%rdi), %r12 leaq L_.str(%rip), %rsi movq %r12, %rdi movl $2, %edx callq _strncasecmp testl %eax, %eax je LBB0_2 ## %bb.1: leaq -40(%rbp), %rsi movq %r12, %rdi xorl %edx, %edx jmp LBB0_3 LBB0_2: leaq 2(%r12), %rdi leaq -40(%rbp), %rsi movl $2, %edx LBB0_3: callq _strtoul movq %rax, %r14 movq -40(%rbp), %rbx movq %rbx, %rdi callq _read_int_suffix testq %rax, %rax je LBB0_5 ## %bb.4: movq %rax, %rdi jmp LBB0_18 LBB0_5: movb (%rbx), %al testb %al, %al je LBB0_7 ## %bb.6: movsbl %al, %edx leaq L_.str.1(%rip), %rsi movq %r15, %rdi movq %r12, %rcx callq _errort LBB0_7: cmpb $48, (%r12) movq _INT_MAX@GOTPCREL(%rip), %rax movq (%rax), %rax notq %rax jne LBB0_12 ## %bb.8: testq %rax, %r14 je LBB0_13 ## %bb.9: movq _UINT_MAX@GOTPCREL(%rip), %rax movq (%rax), %rax notq %rax testq %rax, %r14 je LBB0_16 ## %bb.10: movq _LONG_MAX@GOTPCREL(%rip), %rax movq (%rax), %rax notq %rax testq %rax, %r14 je LBB0_14 ## %bb.11: movq _type_ulong@GOTPCREL(%rip), %rax jmp LBB0_17 LBB0_12: testq %rax, %r14 jne LBB0_14 LBB0_13: movq _type_int@GOTPCREL(%rip), %rax jmp LBB0_17 LBB0_14: movq _type_long@GOTPCREL(%rip), %rax jmp LBB0_17 LBB0_16: movq _type_uint@GOTPCREL(%rip), %rax LBB0_17: movq (%rax), %rdi LBB0_18: movq %r14, %rsi addq $16, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _ast_inttype ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "0b" L_.str.1: ## @.str.1 .asciz "invalid character '%c': %s" .comm _INT_MAX,8,3 ## @INT_MAX .comm _type_int,8,3 ## @type_int .comm _type_long,8,3 ## @type_long .comm _UINT_MAX,8,3 ## @UINT_MAX .comm _type_uint,8,3 ## @type_uint .comm _LONG_MAX,8,3 ## @LONG_MAX .comm _type_ulong,8,3 ## @type_ulong .no_dead_strip _read_int .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_int _read_int: ; @read_int .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 mov x21, x0 ldr x20, [x0] Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x20 mov w2, #2 bl _strncasecmp cbz w0, LBB0_2 ; %bb.1: add x1, sp, #8 mov x0, x20 mov w2, #0 b LBB0_3 LBB0_2: add x0, x20, #2 add x1, sp, #8 mov w2, #2 LBB0_3: bl _strtoul mov x19, x0 ldr x22, [sp, #8] mov x0, x22 bl _read_int_suffix cbnz x0, LBB0_15 ; %bb.4: ldrb w8, [x22] cbz w8, LBB0_6 ; %bb.5: sxtb w2, w8 Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF mov x0, x21 mov x3, x20 bl _errort LBB0_6: ldrb w9, [x20] Lloh4: adrp x8, _INT_MAX@GOTPAGE Lloh5: ldr x8, [x8, _INT_MAX@GOTPAGEOFF] Lloh6: ldr x8, [x8] bic x8, x19, x8 cmp w9, #48 b.ne LBB0_10 ; %bb.7: cbz x8, LBB0_12 ; %bb.8: Lloh7: adrp x8, _UINT_MAX@GOTPAGE Lloh8: ldr x8, [x8, _UINT_MAX@GOTPAGEOFF] Lloh9: ldr x8, [x8] bics xzr, x19, x8 b.eq LBB0_13 ; %bb.9: Lloh10: adrp x8, _LONG_MAX@GOTPAGE Lloh11: ldr x8, [x8, _LONG_MAX@GOTPAGEOFF] Lloh12: adrp x9, _type_long@GOTPAGE Lloh13: ldr x9, [x9, _type_long@GOTPAGEOFF] Lloh14: ldr x8, [x8] Lloh15: adrp x10, _type_ulong@GOTPAGE Lloh16: ldr x10, [x10, _type_ulong@GOTPAGEOFF] bics xzr, x19, x8 b LBB0_11 LBB0_10: Lloh17: adrp x9, _type_int@GOTPAGE Lloh18: ldr x9, [x9, _type_int@GOTPAGEOFF] Lloh19: adrp x10, _type_long@GOTPAGE Lloh20: ldr x10, [x10, _type_long@GOTPAGEOFF] cmp x8, #0 LBB0_11: csel x8, x9, x10, eq b LBB0_14 LBB0_12: Lloh21: adrp x8, _type_int@GOTPAGE Lloh22: ldr x8, [x8, _type_int@GOTPAGEOFF] b LBB0_14 LBB0_13: Lloh23: adrp x8, _type_uint@GOTPAGE Lloh24: ldr x8, [x8, _type_uint@GOTPAGEOFF] LBB0_14: ldr x0, [x8] LBB0_15: mov x1, x19 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload add sp, sp, #64 b _ast_inttype .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGotLdr Lloh4, Lloh5, Lloh6 .loh AdrpLdrGotLdr Lloh7, Lloh8, Lloh9 .loh AdrpLdrGot Lloh15, Lloh16 .loh AdrpLdrGot Lloh12, Lloh13 .loh AdrpLdrGotLdr Lloh10, Lloh11, Lloh14 .loh AdrpLdrGot Lloh19, Lloh20 .loh AdrpLdrGot Lloh17, Lloh18 .loh AdrpLdrGot Lloh21, Lloh22 .loh AdrpLdrGot Lloh23, Lloh24 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "0b" l_.str.1: ; @.str.1 .asciz "invalid character '%c': %s" .comm _INT_MAX,8,3 ; @INT_MAX .comm _type_int,8,3 ; @type_int .comm _type_long,8,3 ; @type_long .comm _UINT_MAX,8,3 ; @UINT_MAX .comm _type_uint,8,3 ; @type_uint .comm _LONG_MAX,8,3 ; @LONG_MAX .comm _type_ulong,8,3 ; @type_ulong .no_dead_strip _read_int .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_int.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_int_suffix _read_int_suffix: ## @read_int_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 %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx leaq L_.str(%rip), %rsi callq _strcasecmp testl %eax, %eax je LBB0_1 ## %bb.2: leaq L_.str.1(%rip), %rsi movq %rbx, %rdi callq _strcasecmp testl %eax, %eax je LBB0_3 ## %bb.4: leaq L_.str.2(%rip), %rsi movq %rbx, %rdi callq _strcasecmp testl %eax, %eax je LBB0_6 ## %bb.5: leaq L_.str.3(%rip), %rsi movq %rbx, %rdi callq _strcasecmp testl %eax, %eax je LBB0_6 ## %bb.7: leaq L_.str.4(%rip), %rsi movq %rbx, %rdi callq _strcasecmp testl %eax, %eax je LBB0_8 ## %bb.9: leaq L_.str.5(%rip), %rsi movq %rbx, %rdi callq _strcasecmp testl %eax, %eax je LBB0_12 ## %bb.10: leaq L_.str.6(%rip), %rsi movq %rbx, %rdi callq _strcasecmp testl %eax, %eax je LBB0_12 ## %bb.11: xorl %eax, %eax jmp LBB0_14 LBB0_1: movq _type_uint@GOTPCREL(%rip), %rax jmp LBB0_13 LBB0_6: movq _type_ulong@GOTPCREL(%rip), %rax jmp LBB0_13 LBB0_3: movq _type_long@GOTPCREL(%rip), %rax LBB0_13: movq (%rax), %rax LBB0_14: addq $8, %rsp popq %rbx popq %rbp retq LBB0_8: movq _type_llong@GOTPCREL(%rip), %rax jmp LBB0_13 LBB0_12: movq _type_ullong@GOTPCREL(%rip), %rax jmp LBB0_13 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "u" .comm _type_uint,8,3 ## @type_uint L_.str.1: ## @.str.1 .asciz "l" .comm _type_long,8,3 ## @type_long L_.str.2: ## @.str.2 .asciz "ul" L_.str.3: ## @.str.3 .asciz "lu" .comm _type_ulong,8,3 ## @type_ulong L_.str.4: ## @.str.4 .asciz "ll" .comm _type_llong,8,3 ## @type_llong L_.str.5: ## @.str.5 .asciz "ull" L_.str.6: ## @.str.6 .asciz "llu" .comm _type_ullong,8,3 ## @type_ullong .no_dead_strip _read_int_suffix .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_int_suffix _read_int_suffix: ; @read_int_suffix .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 _strcasecmp cbz w0, LBB0_8 ; %bb.1: Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF mov x0, x19 bl _strcasecmp cbz w0, LBB0_10 ; %bb.2: Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF mov x0, x19 bl _strcasecmp cbz w0, LBB0_9 ; %bb.3: Lloh6: adrp x1, l_.str.3@PAGE Lloh7: add x1, x1, l_.str.3@PAGEOFF mov x0, x19 bl _strcasecmp cbz w0, LBB0_9 ; %bb.4: Lloh8: adrp x1, l_.str.4@PAGE Lloh9: add x1, x1, l_.str.4@PAGEOFF mov x0, x19 bl _strcasecmp cbz w0, LBB0_13 ; %bb.5: Lloh10: adrp x1, l_.str.5@PAGE Lloh11: add x1, x1, l_.str.5@PAGEOFF mov x0, x19 bl _strcasecmp cbz w0, LBB0_14 ; %bb.6: Lloh12: adrp x1, l_.str.6@PAGE Lloh13: add x1, x1, l_.str.6@PAGEOFF mov x0, x19 bl _strcasecmp cbz w0, LBB0_14 ; %bb.7: mov x0, #0 b LBB0_12 LBB0_8: Lloh14: adrp x8, _type_uint@GOTPAGE Lloh15: ldr x8, [x8, _type_uint@GOTPAGEOFF] b LBB0_11 LBB0_9: Lloh16: adrp x8, _type_ulong@GOTPAGE Lloh17: ldr x8, [x8, _type_ulong@GOTPAGEOFF] b LBB0_11 LBB0_10: Lloh18: adrp x8, _type_long@GOTPAGE Lloh19: ldr x8, [x8, _type_long@GOTPAGEOFF] LBB0_11: ldr x0, [x8] LBB0_12: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_13: Lloh20: adrp x8, _type_llong@GOTPAGE Lloh21: ldr x8, [x8, _type_llong@GOTPAGEOFF] b LBB0_11 LBB0_14: Lloh22: adrp x8, _type_ullong@GOTPAGE Lloh23: ldr x8, [x8, _type_ullong@GOTPAGEOFF] b LBB0_11 .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh10, Lloh11 .loh AdrpAdd Lloh12, Lloh13 .loh AdrpLdrGot Lloh14, Lloh15 .loh AdrpLdrGot Lloh16, Lloh17 .loh AdrpLdrGot Lloh18, Lloh19 .loh AdrpLdrGot Lloh20, Lloh21 .loh AdrpLdrGot Lloh22, Lloh23 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "u" .comm _type_uint,8,3 ; @type_uint l_.str.1: ; @.str.1 .asciz "l" .comm _type_long,8,3 ; @type_long l_.str.2: ; @.str.2 .asciz "ul" l_.str.3: ; @.str.3 .asciz "lu" .comm _type_ulong,8,3 ; @type_ulong l_.str.4: ; @.str.4 .asciz "ll" .comm _type_llong,8,3 ; @type_llong l_.str.5: ; @.str.5 .asciz "ull" l_.str.6: ; @.str.6 .asciz "llu" .comm _type_ullong,8,3 ; @type_ullong .no_dead_strip _read_int_suffix .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_int_suffix.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_intexpr _read_intexpr: ## @read_intexpr .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 _read_conditional_expr movl %eax, %edi xorl %esi, %esi popq %rbp jmp _eval_intexpr ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_intexpr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_intexpr _read_intexpr: ; @read_intexpr .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 _read_conditional_expr mov x1, #0 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload b _eval_intexpr .cfi_endproc ; -- End function .no_dead_strip _read_intexpr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_intexpr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_label _read_label: ## @read_label .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, %rbx movq (%rdi), %r14 movq _labels@GOTPCREL(%rip), %r15 movl (%r15), %edi movq %r14, %rsi callq _map_get testq %rax, %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_2: movq %r14, %rdi callq _ast_label movq %rax, %rbx movl (%r15), %edi movq %r14, %rsi movq %rax, %rdx callq _map_put movq %rbx, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _read_label_tail ## TAILCALL .cfi_endproc ## -- End function .comm _labels,4,2 ## @labels .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "duplicate label: %s" .no_dead_strip _read_label .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_label _read_label: ; @read_label .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 x20, x0 ldr x19, [x0] Lloh0: adrp x21, _labels@GOTPAGE Lloh1: ldr x21, [x21, _labels@GOTPAGEOFF] ldr w0, [x21] mov x1, x19 bl _map_get cbz x0, LBB0_2 ; %bb.1: mov x0, x20 bl _tok2s mov x2, x0 Lloh2: adrp x1, l_.str@PAGE Lloh3: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _errort LBB0_2: mov x0, x19 bl _ast_label mov x20, x0 ldr w0, [x21] mov x1, x19 mov x2, x20 bl _map_put 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 b _read_label_tail .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .cfi_endproc ; -- End function .comm _labels,4,2 ; @labels .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "duplicate label: %s" .no_dead_strip _read_label .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_label.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_label_addr _read_label_addr: ## @read_label_addr .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 xorl %eax, %eax callq _get movq %rax, %rbx movq (%rax), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %r14, %rdi movl %eax, %edx callq _errort LBB0_2: movl 8(%rbx), %edi callq _ast_label_addr movq %rax, %rbx movq _gotos@GOTPCREL(%rip), %rax movl (%rax), %edi movq %rbx, %rsi callq _vec_push movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "label name expected after &&, but got %s" .comm _gotos,4,2 ## @gotos .no_dead_strip _read_label_addr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_label_addr _read_label_addr: ; @read_label_addr .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 _get mov x19, x0 ldr x8, [x0] Lloh0: adrp x9, _TIDENT@GOTPAGE Lloh1: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_2 ; %bb.1: mov x0, x19 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _errort LBB0_2: ldr w0, [x19, #8] bl _ast_label_addr mov x19, x0 Lloh5: adrp x8, _gotos@GOTPAGE Lloh6: ldr x8, [x8, _gotos@GOTPAGEOFF] Lloh7: ldr w0, [x8] mov x1, x19 bl _vec_push 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 AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "label name expected after &&, but got %s" .comm _gotos,4,2 ; @gotos .no_dead_strip _read_label_addr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_label_addr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_label_tail _read_label_tail: ## @read_label_tail .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 xorl %eax, %eax callq _read_stmt movq %rax, %r14 xorl %eax, %eax callq _make_vector movq %rax, %rbx movq %rax, %rdi movq %r15, %rsi callq _vec_push testq %r14, %r14 je LBB0_2 ## %bb.1: movq %rbx, %rdi movq %r14, %rsi callq _vec_push LBB0_2: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _ast_compound_stmt ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_label_tail .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_label_tail _read_label_tail: ; @read_label_tail .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 x21, x0 bl _read_stmt mov x19, x0 bl _make_vector mov x20, x0 mov x1, x21 bl _vec_push cbz x19, LBB0_2 ; %bb.1: mov x0, x20 mov x1, x19 bl _vec_push LBB0_2: 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 b _ast_compound_stmt .cfi_endproc ; -- End function .no_dead_strip _read_label_tail .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_label_tail.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_logand_expr _read_logand_expr: ## @read_logand_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 xorl %eax, %eax callq _read_bitor_expr movq %rax, %r14 movq _OP_LOGAND@GOTPCREL(%rip), %r12 movl (%r12), %edi callq _next_token testq %rax, %rax je LBB0_3 ## %bb.1: movq _type_int@GOTPCREL(%rip), %r13 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movl (%r13), %ebx movl (%r12), %r15d xorl %eax, %eax callq _read_bitor_expr movl %ebx, %edi movl %r15d, %esi movq %r14, %rdx movq %rax, %rcx callq _ast_binop movq %rax, %r14 movl (%r12), %edi callq _next_token testq %rax, %rax jne LBB0_2 LBB0_3: movq %r14, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _OP_LOGAND,4,2 ## @OP_LOGAND .comm _type_int,4,2 ## @type_int .no_dead_strip _read_logand_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_logand_expr _read_logand_expr: ; @read_logand_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 bl _read_bitor_expr mov x19, x0 Lloh0: adrp x22, _OP_LOGAND@GOTPAGE Lloh1: ldr x22, [x22, _OP_LOGAND@GOTPAGEOFF] ldr w0, [x22] bl _next_token cbz x0, LBB0_3 ; %bb.1: Lloh2: adrp x23, _type_int@GOTPAGE Lloh3: ldr x23, [x23, _type_int@GOTPAGEOFF] LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr w20, [x23] ldr w21, [x22] bl _read_bitor_expr mov x3, x0 mov x0, x20 mov x1, x21 mov x2, x19 bl _ast_binop mov x19, x0 ldr w0, [x22] bl _next_token cbnz x0, LBB0_2 LBB0_3: mov x0, 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 ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh2, Lloh3 .cfi_endproc ; -- End function .comm _OP_LOGAND,4,2 ; @OP_LOGAND .comm _type_int,4,2 ; @type_int .no_dead_strip _read_logand_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_logand_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_logor_expr _read_logor_expr: ## @read_logor_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 xorl %eax, %eax callq _read_logand_expr movq %rax, %r14 movq _OP_LOGOR@GOTPCREL(%rip), %r12 movl (%r12), %edi callq _next_token testq %rax, %rax je LBB0_3 ## %bb.1: movq _type_int@GOTPCREL(%rip), %r13 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movl (%r13), %ebx movl (%r12), %r15d xorl %eax, %eax callq _read_logand_expr movl %ebx, %edi movl %r15d, %esi movq %r14, %rdx movq %rax, %rcx callq _ast_binop movq %rax, %r14 movl (%r12), %edi callq _next_token testq %rax, %rax jne LBB0_2 LBB0_3: movq %r14, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _OP_LOGOR,4,2 ## @OP_LOGOR .comm _type_int,4,2 ## @type_int .no_dead_strip _read_logor_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_logor_expr _read_logor_expr: ; @read_logor_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 bl _read_logand_expr mov x19, x0 Lloh0: adrp x22, _OP_LOGOR@GOTPAGE Lloh1: ldr x22, [x22, _OP_LOGOR@GOTPAGEOFF] ldr w0, [x22] bl _next_token cbz x0, LBB0_3 ; %bb.1: Lloh2: adrp x23, _type_int@GOTPAGE Lloh3: ldr x23, [x23, _type_int@GOTPAGEOFF] LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr w20, [x23] ldr w21, [x22] bl _read_logand_expr mov x3, x0 mov x0, x20 mov x1, x21 mov x2, x19 bl _ast_binop mov x19, x0 ldr w0, [x22] bl _next_token cbnz x0, LBB0_2 LBB0_3: mov x0, 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 ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh2, Lloh3 .cfi_endproc ; -- End function .comm _OP_LOGOR,4,2 ; @OP_LOGOR .comm _type_int,4,2 ; @type_int .no_dead_strip _read_logor_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_logor_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_multiplicative_expr _read_multiplicative_expr: ## @read_multiplicative_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 %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 xorl %eax, %eax callq _read_cast_expr jmp LBB0_1 .p2align 4, 0x90 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi callq _conv movl %eax, %ebx xorl %eax, %eax callq _read_cast_expr movq %rax, %rdi callq _conv movzbl %r14b, %edi movl %ebx, %esi movl %eax, %edx callq _binop LBB0_1: ## =>This Inner Loop Header: Depth=1 movq %rax, %rbx movl $42, %edi callq _next_token movb $42, %r14b testq %rax, %rax jne LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $47, %edi callq _next_token movb $47, %r14b testq %rax, %rax jne LBB0_5 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl $37, %edi callq _next_token movb $37, %r14b testq %rax, %rax jne LBB0_5 ## %bb.4: movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_multiplicative_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_multiplicative_expr _read_multiplicative_expr: ; @read_multiplicative_expr .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_cast_expr b LBB0_2 LBB0_1: ; in Loop: Header=BB0_2 Depth=1 mov x0, x19 bl _conv mov x19, x0 bl _read_cast_expr bl _conv mov x2, x0 mov x0, x20 mov x1, x19 bl _binop LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x19, x0 mov w20, #42 mov w0, #42 bl _next_token cbnz x0, LBB0_1 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 mov w20, #47 mov w0, #47 bl _next_token cbnz x0, LBB0_1 ; %bb.4: ; in Loop: Header=BB0_2 Depth=1 mov w20, #37 mov w0, #37 bl _next_token cbnz x0, LBB0_1 ; %bb.5: 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_multiplicative_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_multiplicative_expr.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 %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movq (%rdi), %rbx leaq L_.str(%rip), %rsi movq %rbx, %rdi callq _strpbrk testq %rax, %rax je LBB0_1 LBB0_3: movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _read_float ## TAILCALL LBB0_1: leaq L_.str.1(%rip), %rsi movq %rbx, %rdi movl $2, %edx callq _strncasecmp testq %rax, %rax je LBB0_4 ## %bb.2: leaq L_.str.2(%rip), %rsi movq %rbx, %rdi callq _strpbrk testq %rax, %rax jne LBB0_3 LBB0_4: movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _read_int ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz ".pP" L_.str.1: ## @.str.1 .asciz "0x" L_.str.2: ## @.str.2 .asciz "eE" .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 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 x20, [x0] Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _strpbrk cbz x0, LBB0_2 LBB0_1: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_float LBB0_2: Lloh2: adrp x1, l_.str.1@PAGE Lloh3: add x1, x1, l_.str.1@PAGEOFF mov x0, x20 mov w2, #2 bl _strncasecmp cbz x0, LBB0_4 ; %bb.3: Lloh4: adrp x1, l_.str.2@PAGE Lloh5: add x1, x1, l_.str.2@PAGEOFF mov x0, x20 bl _strpbrk cbnz x0, LBB0_1 LBB0_4: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_int .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh4, Lloh5 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz ".pP" l_.str.1: ; @.str.1 .asciz "0x" l_.str.2: ; @.str.2 .asciz "eE" .no_dead_strip _read_number .subsections_via_symbols
AnghaBench/8cc/extr_parse.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_oldstyle_param_args _read_oldstyle_param_args: ## @read_oldstyle_param_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 %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 _localenv@GOTPCREL(%rip), %r12 movq (%r12), %r13 movq $0, (%r12) xorl %eax, %eax callq _make_vector movq %rax, %r15 xorl %eax, %eax callq _peek movl %eax, %edi movl $123, %esi callq _is_keyword testq %rax, %rax je LBB0_1 LBB0_5: movq %r13, (%r12) movq %r15, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_1: leaq L_.str(%rip), %r14 jmp LBB0_2 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_2 Depth=1 movq %r15, %rdi xorl %esi, %esi callq _read_decl xorl %eax, %eax callq _peek movl %eax, %edi movl $123, %esi callq _is_keyword testq %rax, %rax jne LBB0_5 LBB0_2: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax callq _peek movl %eax, %edi callq _is_type testl %eax, %eax jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 xorl %eax, %eax callq _peek movl %eax, %ebx xorl %eax, %eax callq _peek movl %eax, %edi callq _tok2s movl %ebx, %edi movq %r14, %rsi movl %eax, %edx callq _errort jmp LBB0_4 .cfi_endproc ## -- End function .comm _localenv,8,3 ## @localenv .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "K&R-style declarator expected, but got %s" .no_dead_strip _read_oldstyle_param_args .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_oldstyle_param_args _read_oldstyle_param_args: ; @read_oldstyle_param_args .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 Lloh0: adrp x22, _localenv@GOTPAGE Lloh1: ldr x22, [x22, _localenv@GOTPAGEOFF] ldr x23, [x22] str xzr, [x22] bl _make_vector mov x19, x0 bl _peek mov w1, #123 bl _is_keyword cbz x0, LBB0_2 LBB0_1: str x23, [x22] mov x0, 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 ret LBB0_2: Lloh2: adrp x20, l_.str@PAGE Lloh3: add x20, x20, l_.str@PAGEOFF b LBB0_4 LBB0_3: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 mov w1, #0 bl _read_decl bl _peek mov w1, #123 bl _is_keyword cbnz x0, LBB0_1 LBB0_4: ; =>This Inner Loop Header: Depth=1 bl _peek bl _is_type cbnz w0, LBB0_3 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 bl _peek mov x21, x0 bl _peek bl _tok2s mov x2, x0 mov x0, x21 mov x1, x20 bl _errort b LBB0_3 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .cfi_endproc ; -- End function .comm _localenv,8,3 ; @localenv .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "K&R-style declarator expected, but got %s" .no_dead_strip _read_oldstyle_param_args .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_oldstyle_param_args.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_oldstyle_param_type _read_oldstyle_param_type: ## @read_oldstyle_param_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 %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx xorl %eax, %eax callq _read_oldstyle_param_args movq %rbx, %rdi movq %rax, %rsi addq $8, %rsp popq %rbx popq %rbp jmp _update_oldstyle_param_type ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_oldstyle_param_type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_oldstyle_param_type _read_oldstyle_param_type: ; @read_oldstyle_param_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 bl _read_oldstyle_param_args mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _update_oldstyle_param_type .cfi_endproc ; -- End function .no_dead_strip _read_oldstyle_param_type .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_oldstyle_param_type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_opt_decl_or_stmt _read_opt_decl_or_stmt: ## @read_opt_decl_or_stmt .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 $59, %edi callq _next_token testq %rax, %rax je LBB0_2 ## %bb.1: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp retq LBB0_2: xorl %eax, %eax callq _make_vector movq %rax, %rbx movq %rax, %rdi callq _read_decl_or_stmt movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _ast_compound_stmt ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_opt_decl_or_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_opt_decl_or_stmt _read_opt_decl_or_stmt: ; @read_opt_decl_or_stmt .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov w0, #59 bl _next_token cbz x0, LBB0_2 ; %bb.1: mov x0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_2: bl _make_vector mov x19, x0 bl _read_decl_or_stmt mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_compound_stmt .cfi_endproc ; -- End function .no_dead_strip _read_opt_decl_or_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_opt_decl_or_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_postfix_expr _read_postfix_expr: ## @read_postfix_expr .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 _read_primary_expr movq %rax, %rdi popq %rbp jmp _read_postfix_expr_tail ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_postfix_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_postfix_expr _read_postfix_expr: ; @read_postfix_expr .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _read_primary_expr ldp x29, x30, [sp], #16 ; 16-byte Folded Reload b _read_postfix_expr_tail .cfi_endproc ; -- End function .no_dead_strip _read_postfix_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_postfix_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_postfix_expr_tail _read_postfix_expr_tail: ## @read_postfix_expr_tail .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 testq %rdi, %rdi je LBB0_1 ## %bb.3: movq %rdi, %rbx movq _KIND_PTR@GOTPCREL(%rip), %r14 movq _KIND_FUNC@GOTPCREL(%rip), %r13 leaq L_.str(%rip), %r15 jmp LBB0_4 .p2align 4, 0x90 LBB0_7: ## in Loop: Header=BB0_4 Depth=1 movq %rbx, %rdi callq _node2s movq %r12, %rdi movq %r15, %rsi movq %rax, %rdx callq _errort LBB0_8: ## in Loop: Header=BB0_4 Depth=1 movq %rbx, %rdi callq _read_funcall movq %rax, %rbx LBB0_4: ## =>This Inner Loop Header: Depth=1 movl $40, %edi callq _next_token testq %rax, %rax je LBB0_9 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 xorl %eax, %eax callq _peek movq %rax, %r12 movq %rbx, %rdi callq _conv movq %rax, %rbx movq (%rax), %rax movq (%rax), %rcx cmpq (%r14), %rcx jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_4 Depth=1 movq 8(%rax), %rax movq (%rax), %rax cmpq (%r13), %rax jne LBB0_7 jmp LBB0_8 .p2align 4, 0x90 LBB0_9: ## in Loop: Header=BB0_4 Depth=1 movl $91, %edi callq _next_token testq %rax, %rax je LBB0_11 ## %bb.10: ## in Loop: Header=BB0_4 Depth=1 movq %rbx, %rdi callq _read_subscript_expr movq %rax, %rbx jmp LBB0_4 LBB0_11: ## in Loop: Header=BB0_4 Depth=1 movl $46, %edi callq _next_token testq %rax, %rax je LBB0_14 ## %bb.12: ## in Loop: Header=BB0_4 Depth=1 movq %rbx, %rdi jmp LBB0_13 LBB0_14: ## in Loop: Header=BB0_4 Depth=1 movq _OP_ARROW@GOTPCREL(%rip), %rax movsbl (%rax), %edi callq _next_token testq %rax, %rax je LBB0_18 ## %bb.15: ## in Loop: Header=BB0_4 Depth=1 movq (%rbx), %rdi movq (%rdi), %rax cmpq (%r14), %rax je LBB0_17 ## %bb.16: ## in Loop: Header=BB0_4 Depth=1 callq _ty2s movl %eax, %r12d movq %rbx, %rdi callq _node2s leaq L_.str.1(%rip), %rdi movl %r12d, %esi movq %rax, %rdx callq _error movq (%rbx), %rdi LBB0_17: ## in Loop: Header=BB0_4 Depth=1 movq _AST_DEREF@GOTPCREL(%rip), %rax movl (%rax), %eax movq 8(%rdi), %rsi movl %eax, %edi movq %rbx, %rdx callq _ast_uop movq %rax, %rdi LBB0_13: ## in Loop: Header=BB0_4 Depth=1 callq _read_struct_field movq %rax, %rbx jmp LBB0_4 LBB0_18: xorl %eax, %eax callq _peek movq %rax, %r14 movq _OP_INC@GOTPCREL(%rip), %r15 movsbl (%r15), %edi callq _next_token testq %rax, %rax jne LBB0_20 ## %bb.19: movq _OP_DEC@GOTPCREL(%rip), %rax movsbl (%rax), %edi callq _next_token testq %rax, %rax je LBB0_2 LBB0_20: movq %rbx, %rdi callq _ensure_lvalue movsbl (%r15), %esi movq %r14, %rdi callq _is_keyword testq %rax, %rax jne LBB0_21 ## %bb.22: movq _OP_POST_DEC@GOTPCREL(%rip), %rax jmp LBB0_23 LBB0_1: xorl %ebx, %ebx LBB0_2: movq %rbx, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_21: movq _OP_POST_INC@GOTPCREL(%rip), %rax LBB0_23: movl (%rax), %edi movq (%rbx), %rsi movq %rbx, %rdx addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _ast_uop ## TAILCALL .cfi_endproc ## -- End function .comm _KIND_PTR,8,3 ## @KIND_PTR .comm _KIND_FUNC,8,3 ## @KIND_FUNC .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "function expected, but got %s" .comm _OP_ARROW,1,0 ## @OP_ARROW L_.str.1: ## @.str.1 .asciz "pointer type expected, but got %s %s" .comm _AST_DEREF,4,2 ## @AST_DEREF .comm _OP_INC,1,0 ## @OP_INC .comm _OP_DEC,1,0 ## @OP_DEC .comm _OP_POST_INC,4,2 ## @OP_POST_INC .comm _OP_POST_DEC,4,2 ## @OP_POST_DEC .no_dead_strip _read_postfix_expr_tail .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_postfix_expr_tail _read_postfix_expr_tail: ; @read_postfix_expr_tail .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 cbz x0, LBB0_19 ; %bb.1: Lloh0: adrp x23, _OP_ARROW@GOTPAGE Lloh1: ldr x23, [x23, _OP_ARROW@GOTPAGEOFF] Lloh2: adrp x24, _KIND_PTR@GOTPAGE Lloh3: ldr x24, [x24, _KIND_PTR@GOTPAGEOFF] Lloh4: adrp x20, l_.str.1@PAGE Lloh5: add x20, x20, l_.str.1@PAGEOFF Lloh6: adrp x25, _AST_DEREF@GOTPAGE Lloh7: ldr x25, [x25, _AST_DEREF@GOTPAGEOFF] Lloh8: adrp x26, _KIND_FUNC@GOTPAGE Lloh9: ldr x26, [x26, _KIND_FUNC@GOTPAGEOFF] Lloh10: adrp x21, l_.str@PAGE Lloh11: add x21, x21, l_.str@PAGEOFF b LBB0_4 LBB0_2: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 bl _node2s mov x2, x0 mov x0, x22 mov x1, x21 bl _errort LBB0_3: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 bl _read_funcall mov x19, x0 LBB0_4: ; =>This Inner Loop Header: Depth=1 mov w0, #40 bl _next_token cbz x0, LBB0_7 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 bl _peek mov x22, x0 mov x0, x19 bl _conv mov x19, x0 ldr x8, [x0] ldr x9, [x8] ldr x10, [x24] cmp x9, x10 b.ne LBB0_2 ; %bb.6: ; in Loop: Header=BB0_4 Depth=1 ldr x8, [x8, #8] ldr x8, [x8] ldr x9, [x26] cmp x8, x9 b.ne LBB0_2 b LBB0_3 LBB0_7: ; in Loop: Header=BB0_4 Depth=1 mov w0, #91 bl _next_token cbz x0, LBB0_9 ; %bb.8: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 bl _read_subscript_expr mov x19, x0 b LBB0_4 LBB0_9: ; in Loop: Header=BB0_4 Depth=1 mov w0, #46 bl _next_token cbz x0, LBB0_11 ; %bb.10: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 b LBB0_15 LBB0_11: ; in Loop: Header=BB0_4 Depth=1 ldrsb w0, [x23] bl _next_token cbz x0, LBB0_16 ; %bb.12: ; in Loop: Header=BB0_4 Depth=1 ldr x0, [x19] ldr x8, [x0] ldr x9, [x24] cmp x8, x9 b.eq LBB0_14 ; %bb.13: ; in Loop: Header=BB0_4 Depth=1 bl _ty2s mov x22, x0 mov x0, x19 bl _node2s mov x2, x0 mov x0, x20 mov x1, x22 bl _error ldr x0, [x19] LBB0_14: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [x25] ldr x1, [x0, #8] mov x0, x8 mov x2, x19 bl _ast_uop LBB0_15: ; in Loop: Header=BB0_4 Depth=1 bl _read_struct_field mov x19, x0 b LBB0_4 LBB0_16: bl _peek mov x20, x0 Lloh12: adrp x21, _OP_INC@GOTPAGE Lloh13: ldr x21, [x21, _OP_INC@GOTPAGEOFF] ldrsb w0, [x21] bl _next_token cbnz x0, LBB0_18 ; %bb.17: Lloh14: adrp x8, _OP_DEC@GOTPAGE Lloh15: ldr x8, [x8, _OP_DEC@GOTPAGEOFF] Lloh16: ldrsb w0, [x8] bl _next_token cbz x0, LBB0_19 LBB0_18: mov x0, x19 bl _ensure_lvalue ldrsb w1, [x21] mov x0, x20 bl _is_keyword Lloh17: adrp x8, _OP_POST_INC@GOTPAGE Lloh18: ldr x8, [x8, _OP_POST_INC@GOTPAGEOFF] Lloh19: adrp x9, _OP_POST_DEC@GOTPAGE Lloh20: ldr x9, [x9, _OP_POST_DEC@GOTPAGEOFF] cmp x0, #0 csel x8, x9, x8, eq ldr w0, [x8] ldr x1, [x19] mov x2, 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 b _ast_uop LBB0_19: 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 ldp x26, x25, [sp], #80 ; 16-byte Folded Reload ret .loh AdrpAdd Lloh10, Lloh11 .loh AdrpLdrGot Lloh8, Lloh9 .loh AdrpLdrGot Lloh6, Lloh7 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh12, Lloh13 .loh AdrpLdrGotLdr Lloh14, Lloh15, Lloh16 .loh AdrpLdrGot Lloh19, Lloh20 .loh AdrpLdrGot Lloh17, Lloh18 .cfi_endproc ; -- End function .comm _KIND_PTR,8,3 ; @KIND_PTR .comm _KIND_FUNC,8,3 ; @KIND_FUNC .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "function expected, but got %s" .comm _OP_ARROW,1,0 ; @OP_ARROW l_.str.1: ; @.str.1 .asciz "pointer type expected, but got %s %s" .comm _AST_DEREF,4,2 ; @AST_DEREF .comm _OP_INC,1,0 ; @OP_INC .comm _OP_DEC,1,0 ; @OP_DEC .comm _OP_POST_INC,4,2 ; @OP_POST_INC .comm _OP_POST_DEC,4,2 ; @OP_POST_DEC .no_dead_strip _read_postfix_expr_tail .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_postfix_expr_tail.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_primary_expr _read_primary_expr: ## @read_primary_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 %rbx pushq %rax .cfi_offset %rbx, -24 xorl %eax, %eax callq _get testq %rax, %rax je LBB0_13 ## %bb.1: movq %rax, %rbx movq %rax, %rdi movl $40, %esi callq _is_keyword testq %rax, %rax je LBB0_4 ## %bb.2: movl $123, %edi callq _next_token testq %rax, %rax je LBB0_3 ## %bb.15: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp jmp _read_stmt_expr ## TAILCALL LBB0_4: movq _KGENERIC@GOTPCREL(%rip), %rax movsbl (%rax), %esi movq %rbx, %rdi callq _is_keyword testq %rax, %rax je LBB0_5 ## %bb.16: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp jmp _read_generic ## TAILCALL LBB0_3: xorl %eax, %eax callq _read_expr movq %rax, %rbx movl $41, %edi callq _expect movq %rbx, %rax jmp LBB0_14 LBB0_5: movl (%rbx), %esi leal -128(%rsi), %eax cmpl $4, %eax ja LBB0_12 ## %bb.6: leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_10: movl 12(%rbx), %edi movl 4(%rbx), %edx movl 8(%rbx), %esi addq $8, %rsp popq %rbx popq %rbp jmp _ast_string ## TAILCALL LBB0_12: leaq L_.str(%rip), %rdi ## kill: def $esi killed $esi killed $rsi callq _error jmp LBB0_13 LBB0_8: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _read_number ## TAILCALL LBB0_11: movq %rbx, %rdi callq _unget_token LBB0_13: xorl %eax, %eax LBB0_14: addq $8, %rsp popq %rbx popq %rbp retq LBB0_7: movl 8(%rbx), %edi addq $8, %rsp popq %rbx popq %rbp jmp _read_var_or_func ## TAILCALL LBB0_9: movl 12(%rbx), %edi callq _char_type movl 16(%rbx), %esi movl %eax, %edi addq $8, %rsp popq %rbx popq %rbp jmp _ast_inttype ## TAILCALL .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_10, LBB0_10-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 .set L0_0_set_11, LBB0_11-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_9, LBB0_9-LJTI0_0 LJTI0_0: .long L0_0_set_10 .long L0_0_set_8 .long L0_0_set_11 .long L0_0_set_7 .long L0_0_set_9 .end_data_region ## -- End function .comm _KGENERIC,1,0 ## @KGENERIC .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "internal error: unknown token kind: %d" .no_dead_strip _read_primary_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_primary_expr _read_primary_expr: ; @read_primary_expr .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 _get cbz x0, LBB0_13 ; %bb.1: mov x19, x0 mov w1, #40 bl _is_keyword cbz x0, LBB0_4 ; %bb.2: mov w0, #123 bl _next_token cbz x0, LBB0_6 ; %bb.3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_stmt_expr LBB0_4: Lloh0: adrp x8, _KGENERIC@GOTPAGE Lloh1: ldr x8, [x8, _KGENERIC@GOTPAGEOFF] Lloh2: ldrsb w1, [x8] mov x0, x19 bl _is_keyword cbz x0, LBB0_7 ; %bb.5: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_generic LBB0_6: bl _read_expr mov x19, x0 mov w0, #41 bl _expect mov x0, x19 b LBB0_14 LBB0_7: ldr w1, [x19] sub w8, w1, #128 cmp w8, #4 b.hi LBB0_10 ; %bb.8: Lloh3: adrp x9, lJTI0_0@PAGE Lloh4: add x9, x9, lJTI0_0@PAGEOFF adr x10, LBB0_9 ldrb w11, [x9, x8] add x10, x10, x11, lsl #2 br x10 LBB0_9: ldp w1, w0, [x19, #8] ldr w2, [x19, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_string LBB0_10: Lloh5: adrp x0, l_.str@PAGE Lloh6: add x0, x0, l_.str@PAGEOFF bl _error b LBB0_13 LBB0_11: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_number LBB0_12: mov x0, x19 bl _unget_token LBB0_13: mov x0, #0 LBB0_14: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_15: ldr w0, [x19, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_var_or_func LBB0_16: ldr w0, [x19, #12] bl _char_type ldr w1, [x19, #16] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_inttype .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpAdd Lloh5, Lloh6 .cfi_endproc .section __TEXT,__const lJTI0_0: .byte (LBB0_9-LBB0_9)>>2 .byte (LBB0_11-LBB0_9)>>2 .byte (LBB0_12-LBB0_9)>>2 .byte (LBB0_15-LBB0_9)>>2 .byte (LBB0_16-LBB0_9)>>2 ; -- End function .comm _KGENERIC,1,0 ; @KGENERIC .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "internal error: unknown token kind: %d" .no_dead_strip _read_primary_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_primary_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_rectype_def _read_rectype_def: ## @read_rectype_def .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 movl %edi, %r14d xorl %eax, %eax callq _read_rectype_tag testq %rax, %rax je LBB0_6 ## %bb.1: movq %rax, %r15 movq _tags@GOTPCREL(%rip), %r12 movl (%r12), %edi movq %rax, %rsi callq _map_get testq %rax, %rax je LBB0_5 ## %bb.2: movq %rax, %rbx movq (%rax), %rax movq _KIND_ENUM@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_4 ## %bb.3: cmpl %r14d, 8(%rbx) je LBB0_7 LBB0_4: leaq L_.str(%rip), %rdi movq %r15, %rsi callq _error jmp LBB0_7 LBB0_6: movl %r14d, %edi callq _make_rectype movq %rax, %rbx jmp LBB0_7 LBB0_5: movl %r14d, %edi callq _make_rectype movq %rax, %rbx movl (%r12), %edi movq %r15, %rsi movq %rax, %rdx callq _map_put LBB0_7: movl $0, -40(%rbp) movl $1, -36(%rbp) leaq -40(%rbp), %rdi leaq -36(%rbp), %rsi movl %r14d, %edx callq _read_rectype_fields movl -36(%rbp), %ecx movl %ecx, 12(%rbx) testq %rax, %rax je LBB0_9 ## %bb.8: movq %rax, 24(%rbx) movl -40(%rbp), %eax movl %eax, 16(%rbx) LBB0_9: movq %rbx, %rax addq $16, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _tags,4,2 ## @tags .comm _KIND_ENUM,8,3 ## @KIND_ENUM .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "declarations of %s does not match" .no_dead_strip _read_rectype_def .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_rectype_def _read_rectype_def: ; @read_rectype_def .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 mov x19, x0 bl _read_rectype_tag cbz x0, LBB0_5 ; %bb.1: mov x21, x0 Lloh0: adrp x22, _tags@GOTPAGE Lloh1: ldr x22, [x22, _tags@GOTPAGEOFF] ldr w0, [x22] mov x1, x21 bl _map_get cbz x0, LBB0_6 ; %bb.2: mov x20, x0 ldr x8, [x0] Lloh2: adrp x9, _KIND_ENUM@GOTPAGE Lloh3: ldr x9, [x9, _KIND_ENUM@GOTPAGEOFF] Lloh4: ldr x9, [x9] cmp x8, x9 b.eq LBB0_4 ; %bb.3: ldr w8, [x20, #8] cmp w8, w19 b.eq LBB0_7 LBB0_4: Lloh5: adrp x0, l_.str@PAGE Lloh6: add x0, x0, l_.str@PAGEOFF mov x1, x21 bl _error b LBB0_7 LBB0_5: mov x0, x19 bl _make_rectype mov x20, x0 b LBB0_7 LBB0_6: mov x0, x19 bl _make_rectype mov x20, x0 ldr w0, [x22] mov x1, x21 mov x2, x20 bl _map_put LBB0_7: mov w8, #1 stp w8, wzr, [sp, #8] add x0, sp, #12 add x1, sp, #8 mov x2, x19 bl _read_rectype_fields ldr w8, [sp, #8] str w8, [x20, #12] cbz x0, LBB0_9 ; %bb.8: str x0, [x20, #24] ldr w8, [sp, #12] str w8, [x20, #16] LBB0_9: 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 add sp, sp, #64 ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpAdd Lloh5, Lloh6 .cfi_endproc ; -- End function .comm _tags,4,2 ; @tags .comm _KIND_ENUM,8,3 ; @KIND_ENUM .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "declarations of %s does not match" .no_dead_strip _read_rectype_def .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_rectype_def.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_rectype_fields _read_rectype_fields: ## @read_rectype_fields .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 %edx, %r12d movq %rsi, %r14 movq %rdi, %r15 movl $123, %edi callq _next_token testl %eax, %eax je LBB0_3 ## %bb.1: xorl %eax, %eax callq _read_rectype_fields_sub movq %rax, %rbx movq %rax, %rdi callq _fix_rectype_flexible_member movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx testl %r12d, %r12d je LBB0_2 ## %bb.4: popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _update_struct_offset ## TAILCALL LBB0_3: xorl %eax, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq LBB0_2: popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _update_union_offset ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_rectype_fields .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_rectype_fields _read_rectype_fields: ; @read_rectype_fields .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 x21, x2 mov x19, x1 mov x20, x0 mov w0, #123 bl _next_token cbz w0, LBB0_3 ; %bb.1: bl _read_rectype_fields_sub mov x22, x0 bl _fix_rectype_flexible_member mov x0, x20 mov x1, x19 mov x2, x22 cbz w21, LBB0_4 ; %bb.2: 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 _update_struct_offset LBB0_3: mov x0, #0 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_4: 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 _update_union_offset .cfi_endproc ; -- End function .no_dead_strip _read_rectype_fields .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_rectype_fields.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_rectype_fields_sub _read_rectype_fields_sub: ## @read_rectype_fields_sub .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, %r12 movq _KSTATIC_ASSERT@GOTPCREL(%rip), %rbx movq _DECL_PARAM_TYPEONLY@GOTPCREL(%rip), %r15 leaq -48(%rbp), %r14 jmp LBB0_1 .p2align 4, 0x90 LBB0_2: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _read_static_assert LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_7 Depth 2 movsbl (%rbx), %edi callq _next_token testq %rax, %rax jne LBB0_2 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _peek movl %eax, %edi callq _is_type testl %eax, %eax je LBB0_14 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 xorl %edi, %edi callq _read_decl_spec movq %rax, %r13 movq (%rax), %rax movq _KIND_STRUCT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_7 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl $59, %edi callq _next_token testq %rax, %rax je LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 xorl %edi, %edi movq %r13, %rsi callq _make_pair movq %r12, %rdi movl %eax, %esi callq _vec_push movq _KSTATIC_ASSERT@GOTPCREL(%rip), %rbx jmp LBB0_1 .p2align 4, 0x90 LBB0_9: ## in Loop: Header=BB0_7 Depth=2 movq -48(%rbp), %rdi movq %rbx, %rsi callq _read_bitsize LBB0_10: ## in Loop: Header=BB0_7 Depth=2 movl %eax, 8(%rbx) movq -48(%rbp), %rdi movq %rbx, %rsi callq _make_pair movq %r12, %rdi movl %eax, %esi callq _vec_push movl $44, %edi callq _next_token testq %rax, %rax je LBB0_11 LBB0_7: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq $0, -48(%rbp) movl (%r15), %ecx movq %r14, %rdi movq %r13, %rsi xorl %edx, %edx callq _read_declarator movq %rax, %rbx movq %rax, %rdi callq _ensure_not_void movq %rbx, %rdi callq _copy_type movq %rax, %rbx movl $58, %edi callq _next_token testq %rax, %rax jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 movl $-1, %eax jmp LBB0_10 .p2align 4, 0x90 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _peek movl %eax, %edi movl $125, %esi callq _is_keyword testq %rax, %rax je LBB0_13 ## %bb.12: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _peek movl %eax, %edi leaq L_.str(%rip), %rsi callq _warnt movq _KSTATIC_ASSERT@GOTPCREL(%rip), %rbx jmp LBB0_1 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movl $59, %edi callq _expect movq _KSTATIC_ASSERT@GOTPCREL(%rip), %rbx jmp LBB0_1 LBB0_14: movl $125, %edi callq _expect movq %r12, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _KSTATIC_ASSERT,1,0 ## @KSTATIC_ASSERT .comm _KIND_STRUCT,8,3 ## @KIND_STRUCT .comm _DECL_PARAM_TYPEONLY,4,2 ## @DECL_PARAM_TYPEONLY .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "missing ';' at the end of field list" .no_dead_strip _read_rectype_fields_sub .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_rectype_fields_sub _read_rectype_fields_sub: ; @read_rectype_fields_sub .cfi_startproc ; %bb.0: sub sp, sp, #96 .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 bl _make_vector mov x19, x0 Lloh0: adrp x23, _KSTATIC_ASSERT@GOTPAGE Lloh1: ldr x23, [x23, _KSTATIC_ASSERT@GOTPAGEOFF] Lloh2: adrp x24, _KIND_STRUCT@GOTPAGE Lloh3: ldr x24, [x24, _KIND_STRUCT@GOTPAGEOFF] Lloh4: adrp x25, _DECL_PARAM_TYPEONLY@GOTPAGE Lloh5: ldr x25, [x25, _DECL_PARAM_TYPEONLY@GOTPAGEOFF] Lloh6: adrp x20, l_.str@PAGE Lloh7: add x20, x20, l_.str@PAGEOFF b LBB0_2 LBB0_1: ; in Loop: Header=BB0_2 Depth=1 bl _read_static_assert LBB0_2: ; =>This Loop Header: Depth=1 ; Child Loop BB0_9 Depth 2 ldrsb w0, [x23] bl _next_token cbnz x0, LBB0_1 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 bl _peek bl _is_type cbz w0, LBB0_14 ; %bb.4: ; in Loop: Header=BB0_2 Depth=1 mov x0, #0 bl _read_decl_spec mov x21, x0 ldr x8, [x0] ldr x9, [x24] cmp x8, x9 b.ne LBB0_9 ; %bb.5: ; in Loop: Header=BB0_2 Depth=1 mov w0, #59 bl _next_token cbz x0, LBB0_9 ; %bb.6: ; in Loop: Header=BB0_2 Depth=1 mov x0, #0 mov x1, x21 bl _make_pair mov x1, x0 mov x0, x19 bl _vec_push b LBB0_2 LBB0_7: ; in Loop: Header=BB0_9 Depth=2 ldr x0, [sp, #8] mov x1, x22 bl _read_bitsize LBB0_8: ; in Loop: Header=BB0_9 Depth=2 str w0, [x22, #8] ldr x0, [sp, #8] mov x1, x22 bl _make_pair mov x1, x0 mov x0, x19 bl _vec_push mov w0, #44 bl _next_token cbz x0, LBB0_11 LBB0_9: ; Parent Loop BB0_2 Depth=1 ; => This Inner Loop Header: Depth=2 str xzr, [sp, #8] ldr w3, [x25] add x0, sp, #8 mov x1, x21 mov x2, #0 bl _read_declarator mov x22, x0 bl _ensure_not_void mov x0, x22 bl _copy_type mov x22, x0 mov w0, #58 bl _next_token cbnz x0, LBB0_7 ; %bb.10: ; in Loop: Header=BB0_9 Depth=2 mov w0, #-1 b LBB0_8 LBB0_11: ; in Loop: Header=BB0_2 Depth=1 bl _peek mov w1, #125 bl _is_keyword cbz x0, LBB0_13 ; %bb.12: ; in Loop: Header=BB0_2 Depth=1 bl _peek mov x1, x20 bl _warnt b LBB0_2 LBB0_13: ; in Loop: Header=BB0_2 Depth=1 mov w0, #59 bl _expect b LBB0_2 LBB0_14: mov w0, #125 bl _expect mov x0, x19 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 add sp, sp, #96 ret .loh AdrpAdd Lloh6, Lloh7 .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _KSTATIC_ASSERT,1,0 ; @KSTATIC_ASSERT .comm _KIND_STRUCT,8,3 ; @KIND_STRUCT .comm _DECL_PARAM_TYPEONLY,4,2 ; @DECL_PARAM_TYPEONLY .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "missing ';' at the end of field list" .no_dead_strip _read_rectype_fields_sub .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_rectype_fields_sub.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_rectype_tag _read_rectype_tag: ## @read_rectype_tag .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 _get movq (%rax), %rcx movq _TIDENT@GOTPCREL(%rip), %rdx cmpq (%rdx), %rcx jne LBB0_2 ## %bb.1: movq 8(%rax), %rax popq %rbp retq LBB0_2: movq %rax, %rdi callq _unget_token xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .no_dead_strip _read_rectype_tag .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_rectype_tag _read_rectype_tag: ; @read_rectype_tag .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 _get ldr x8, [x0] Lloh0: adrp x9, _TIDENT@GOTPAGE Lloh1: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.ne LBB0_2 ; %bb.1: ldr x0, [x0, #8] ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret LBB0_2: bl _unget_token mov x0, #0 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .no_dead_strip _read_rectype_tag .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_rectype_tag.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_relational_expr _read_relational_expr: ## @read_relational_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 xorl %eax, %eax callq _read_shift_expr movq %rax, %rbx movq _OP_LE@GOTPCREL(%rip), %r12 movq _type_int@GOTPCREL(%rip), %r13 jmp LBB0_1 .p2align 4, 0x90 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl $62, %edi callq _next_token testq %rax, %rax je LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _read_shift_expr movq %rax, %rdi callq _conv movl %eax, %r14d movq %rbx, %rdi callq _conv movl $60, %edi movl %r14d, %esi LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl %eax, %edx callq _binop movq %rax, %rbx movl (%r13), %eax movl %eax, (%rbx) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl $60, %edi callq _next_token testq %rax, %rax je LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi callq _conv movl %eax, %ebx xorl %eax, %eax callq _read_shift_expr movq %rax, %rdi callq _conv movl $60, %edi LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movl %ebx, %esi jmp LBB0_4 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movsbl (%r12), %edi callq _next_token testq %rax, %rax je LBB0_9 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movsbl (%r12), %r14d movq %rbx, %rdi callq _conv movl %eax, %ebx xorl %eax, %eax callq _read_shift_expr movq %rax, %rdi callq _conv movl %r14d, %edi jmp LBB0_3 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movq _OP_GE@GOTPCREL(%rip), %rax movsbl (%rax), %edi callq _next_token testq %rax, %rax je LBB0_11 ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 movsbl (%r12), %r14d xorl %eax, %eax callq _read_shift_expr movq %rax, %rdi callq _conv movl %eax, %r15d movq %rbx, %rdi callq _conv movl %r14d, %edi movl %r15d, %esi jmp LBB0_4 LBB0_11: movq %rbx, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _OP_LE,1,0 ## @OP_LE .comm _OP_GE,1,0 ## @OP_GE .comm _type_int,4,2 ## @type_int .no_dead_strip _read_relational_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_relational_expr _read_relational_expr: ; @read_relational_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 bl _read_shift_expr mov x19, x0 Lloh0: adrp x22, _OP_LE@GOTPAGE Lloh1: ldr x22, [x22, _OP_LE@GOTPAGEOFF] Lloh2: adrp x23, _OP_GE@GOTPAGE Lloh3: ldr x23, [x23, _OP_GE@GOTPAGEOFF] Lloh4: adrp x24, _type_int@GOTPAGE Lloh5: ldr x24, [x24, _type_int@GOTPAGEOFF] b LBB0_4 LBB0_1: ; in Loop: Header=BB0_4 Depth=1 mov w0, #62 bl _next_token cbz x0, LBB0_7 ; %bb.2: ; in Loop: Header=BB0_4 Depth=1 bl _read_shift_expr bl _conv mov x20, x0 mov x0, x19 bl _conv mov x2, x0 mov w0, #60 mov x1, x20 LBB0_3: ; in Loop: Header=BB0_4 Depth=1 bl _binop mov x19, x0 ldr w8, [x24] str w8, [x0] LBB0_4: ; =>This Inner Loop Header: Depth=1 mov w0, #60 bl _next_token cbz x0, LBB0_1 ; %bb.5: ; in Loop: Header=BB0_4 Depth=1 mov x0, x19 bl _conv mov x19, x0 bl _read_shift_expr bl _conv mov x2, x0 mov w0, #60 LBB0_6: ; in Loop: Header=BB0_4 Depth=1 mov x1, x19 b LBB0_3 LBB0_7: ; in Loop: Header=BB0_4 Depth=1 ldrsb w0, [x22] bl _next_token cbz x0, LBB0_9 ; %bb.8: ; in Loop: Header=BB0_4 Depth=1 ldrsb w20, [x22] mov x0, x19 bl _conv mov x19, x0 bl _read_shift_expr bl _conv mov x2, x0 mov x0, x20 b LBB0_6 LBB0_9: ; in Loop: Header=BB0_4 Depth=1 ldrsb w0, [x23] bl _next_token cbz x0, LBB0_11 ; %bb.10: ; in Loop: Header=BB0_4 Depth=1 ldrsb w20, [x22] bl _read_shift_expr bl _conv mov x21, x0 mov x0, x19 bl _conv mov x2, x0 mov x0, x20 mov x1, x21 b LBB0_3 LBB0_11: mov x0, 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 ret .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _OP_LE,1,0 ; @OP_LE .comm _OP_GE,1,0 ; @OP_GE .comm _type_int,4,2 ; @type_int .no_dead_strip _read_relational_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_relational_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_return_stmt _read_return_stmt: ## @read_return_stmt .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 _read_expr_opt movq %rax, %rbx movl $59, %edi callq _expect testq %rbx, %rbx je LBB0_2 ## %bb.1: movq _current_func_type@GOTPCREL(%rip), %rax movq (%rax), %rax movl (%rax), %edi movq %rbx, %rsi callq _ast_conv movq %rax, %r14 LBB0_2: movq %r14, %rdi popq %rbx popq %r14 popq %rbp jmp _ast_return ## TAILCALL .cfi_endproc ## -- End function .comm _current_func_type,8,3 ## @current_func_type .no_dead_strip _read_return_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_return_stmt _read_return_stmt: ; @read_return_stmt .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_expr_opt mov x19, x0 mov w0, #59 bl _expect cbz x19, LBB0_2 ; %bb.1: Lloh0: adrp x8, _current_func_type@GOTPAGE Lloh1: ldr x8, [x8, _current_func_type@GOTPAGEOFF] Lloh2: ldr x8, [x8] ldr w0, [x8] mov x1, x19 bl _ast_conv b LBB0_3 LBB0_2: mov x0, #0 LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _ast_return .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _current_func_type,8,3 ; @current_func_type .no_dead_strip _read_return_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_return_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_shift_expr _read_shift_expr: ## @read_shift_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 xorl %eax, %eax callq _read_additive_expr movq %rax, %r15 movq _OP_SAL@GOTPCREL(%rip), %r13 jmp LBB0_1 .p2align 4, 0x90 LBB0_2: ## in Loop: Header=BB0_1 Depth=1 movl (%r13), %r14d LBB0_7: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _read_additive_expr movq %rax, %rbx movq %r15, %rdi callq _ensure_inttype movq %rbx, %rdi callq _ensure_inttype movq (%r15), %r12 movq %r15, %rdi callq _conv movl %eax, %r15d movq %rbx, %rdi callq _conv movq %r12, %rdi movl %r14d, %esi movl %r15d, %edx movl %eax, %ecx callq _ast_binop movq %rax, %r15 LBB0_1: ## =>This Inner Loop Header: Depth=1 movl (%r13), %edi callq _next_token testq %rax, %rax jne LBB0_2 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq _OP_SAR@GOTPCREL(%rip), %rax movl (%rax), %edi callq _next_token testq %rax, %rax je LBB0_8 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movq (%r15), %rax cmpq $0, (%rax) movq _OP_SHR@GOTPCREL(%rip), %rax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq _OP_SAR@GOTPCREL(%rip), %rax LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl (%rax), %r14d jmp LBB0_7 LBB0_8: movq %r15, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _OP_SAL,4,2 ## @OP_SAL .comm _OP_SAR,4,2 ## @OP_SAR .comm _OP_SHR,4,2 ## @OP_SHR .no_dead_strip _read_shift_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_shift_expr _read_shift_expr: ; @read_shift_expr .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 bl _read_additive_expr mov x19, x0 Lloh0: adrp x23, _OP_SAL@GOTPAGE Lloh1: ldr x23, [x23, _OP_SAL@GOTPAGEOFF] Lloh2: adrp x24, _OP_SAR@GOTPAGE Lloh3: ldr x24, [x24, _OP_SAR@GOTPAGEOFF] Lloh4: adrp x25, _OP_SHR@GOTPAGE Lloh5: ldr x25, [x25, _OP_SHR@GOTPAGEOFF] b LBB0_3 LBB0_1: ; in Loop: Header=BB0_3 Depth=1 ldr w20, [x23] LBB0_2: ; in Loop: Header=BB0_3 Depth=1 bl _read_additive_expr mov x21, x0 mov x0, x19 bl _ensure_inttype mov x0, x21 bl _ensure_inttype ldr x22, [x19] mov x0, x19 bl _conv mov x19, x0 mov x0, x21 bl _conv mov x3, x0 mov x0, x22 mov x1, x20 mov x2, x19 bl _ast_binop mov x19, x0 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w0, [x23] bl _next_token cbnz x0, LBB0_1 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 ldr w0, [x24] bl _next_token cbz x0, LBB0_6 ; %bb.5: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [x19] ldr x8, [x8] cmp x8, #0 csel x8, x24, x25, eq ldr w20, [x8] b LBB0_2 LBB0_6: 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 ldp x26, x25, [sp], #80 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _OP_SAL,4,2 ; @OP_SAL .comm _OP_SAR,4,2 ; @OP_SAR .comm _OP_SHR,4,2 ; @OP_SHR .no_dead_strip _read_shift_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_shift_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_sizeof_operand _read_sizeof_operand: ## @read_sizeof_operand .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 _read_sizeof_operand_sub movq (%rax), %rcx movq _KIND_VOID@GOTPCREL(%rip), %rdx movl $1, %ebx cmpq (%rdx), %rcx je LBB0_3 ## %bb.1: movq _KIND_FUNC@GOTPCREL(%rip), %rdx cmpq (%rdx), %rcx je LBB0_3 ## %bb.2: movl 8(%rax), %ebx LBB0_3: movl %ebx, %edi notl %edi shrl $31, %edi callq _assert movq _type_ulong@GOTPCREL(%rip), %rax movl (%rax), %edi movl %ebx, %esi addq $8, %rsp popq %rbx popq %rbp jmp _ast_inttype ## TAILCALL .cfi_endproc ## -- End function .comm _KIND_VOID,8,3 ## @KIND_VOID .comm _KIND_FUNC,8,3 ## @KIND_FUNC .comm _type_ulong,4,2 ## @type_ulong .no_dead_strip _read_sizeof_operand .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_sizeof_operand _read_sizeof_operand: ; @read_sizeof_operand .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_sizeof_operand_sub ldr x8, [x0] Lloh0: adrp x9, _KIND_VOID@GOTPAGE Lloh1: ldr x9, [x9, _KIND_VOID@GOTPAGEOFF] Lloh2: ldr x9, [x9] Lloh3: adrp x10, _KIND_FUNC@GOTPAGE Lloh4: ldr x10, [x10, _KIND_FUNC@GOTPAGEOFF] Lloh5: ldr x10, [x10] cmp x8, x9 ccmp x8, x10, #4, ne b.ne LBB0_2 ; %bb.1: mov w19, #1 b LBB0_3 LBB0_2: ldr w19, [x0, #8] LBB0_3: mvn w8, w19 lsr w0, w8, #31 bl _assert Lloh6: adrp x8, _type_ulong@GOTPAGE Lloh7: ldr x8, [x8, _type_ulong@GOTPAGEOFF] Lloh8: 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_inttype .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .cfi_endproc ; -- End function .comm _KIND_VOID,8,3 ; @KIND_VOID .comm _KIND_FUNC,8,3 ; @KIND_FUNC .comm _type_ulong,4,2 ; @type_ulong .no_dead_strip _read_sizeof_operand .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_sizeof_operand.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_sizeof_operand_sub _read_sizeof_operand_sub: ## @read_sizeof_operand_sub .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 _get movq %rax, %rbx movq %rax, %rdi movl $40, %esi callq _is_keyword testq %rax, %rax je LBB0_4 ## %bb.1: xorl %eax, %eax callq _peek movl %eax, %edi callq _is_type testq %rax, %rax je LBB0_4 ## %bb.2: xorl %eax, %eax callq _read_cast_type movq %rax, %rbx movl $41, %edi callq _expect movq %rbx, %rax jmp LBB0_3 LBB0_4: movq %rbx, %rdi callq _unget_token xorl %eax, %eax callq _read_unary_expr movq (%rax), %rax LBB0_3: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _read_sizeof_operand_sub .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_sizeof_operand_sub _read_sizeof_operand_sub: ; @read_sizeof_operand_sub .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 _get mov x19, x0 mov w1, #40 bl _is_keyword cbz x0, LBB0_3 ; %bb.1: bl _peek bl _is_type cbz x0, LBB0_3 ; %bb.2: bl _read_cast_type mov x19, x0 mov w0, #41 bl _expect mov x0, x19 b LBB0_4 LBB0_3: mov x0, x19 bl _unget_token bl _read_unary_expr ldr x0, [x0] LBB0_4: 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_sizeof_operand_sub .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_sizeof_operand_sub.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_static_assert _read_static_assert: ## @read_static_assert .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 $40, %edi callq _expect xorl %eax, %eax callq _read_intexpr movl %eax, %r14d movl $44, %edi callq _expect xorl %eax, %eax callq _get movq %rax, %rbx movq (%rax), %rax movq _TSTRING@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_2 ## %bb.1: movq %rbx, %rdi callq _tok2s leaq L_.str(%rip), %rsi movq %rbx, %rdi movl %eax, %edx callq _errort LBB0_2: movl $41, %edi callq _expect movl $59, %edi callq _expect testl %r14d, %r14d je LBB0_4 ## %bb.3: popq %rbx popq %r14 popq %rbp retq LBB0_4: movl 8(%rbx), %edx leaq L_.str.1(%rip), %rsi movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp _errort ## TAILCALL .cfi_endproc ## -- End function .comm _TSTRING,8,3 ## @TSTRING .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "string expected as the second argument for _Static_assert, but got %s" L_.str.1: ## @.str.1 .asciz "_Static_assert failure: %s" .no_dead_strip _read_static_assert .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_static_assert _read_static_assert: ; @read_static_assert .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov w0, #40 bl _expect bl _read_intexpr mov x19, x0 mov w0, #44 bl _expect bl _get mov x20, x0 ldr x8, [x0] Lloh0: adrp x9, _TSTRING@GOTPAGE Lloh1: ldr x9, [x9, _TSTRING@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_2 ; %bb.1: mov x0, x20 bl _tok2s mov x2, x0 Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x0, x20 bl _errort LBB0_2: mov w0, #41 bl _expect mov w0, #59 bl _expect cbz w19, LBB0_4 ; %bb.3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_4: ldr w2, [x20, #8] Lloh5: adrp x1, l_.str.1@PAGE Lloh6: add x1, x1, l_.str.1@PAGEOFF mov x0, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _errort .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpAdd Lloh5, Lloh6 .cfi_endproc ; -- End function .comm _TSTRING,8,3 ; @TSTRING .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "string expected as the second argument for _Static_assert, but got %s" l_.str.1: ; @.str.1 .asciz "_Static_assert failure: %s" .no_dead_strip _read_static_assert .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_static_assert.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_static_local_var _read_static_local_var: ## @read_static_local_var .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, %rbx callq _ast_static_lvar movq %rax, %r14 movl $61, %edi callq _next_token testq %rax, %rax je LBB0_1 ## %bb.2: movq _localenv@GOTPCREL(%rip), %r15 movq (%r15), %r12 movq $0, (%r15) movq %rbx, %rdi callq _read_decl_init movq %rax, %rsi movq %r12, (%r15) jmp LBB0_3 LBB0_1: xorl %esi, %esi LBB0_3: movq _toplevels@GOTPCREL(%rip), %rax movl (%rax), %ebx movq %r14, %rdi callq _ast_decl movl %ebx, %edi movl %eax, %esi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _vec_push ## TAILCALL .cfi_endproc ## -- End function .comm _localenv,8,3 ## @localenv .comm _toplevels,4,2 ## @toplevels .no_dead_strip _read_static_local_var .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_static_local_var _read_static_local_var: ; @read_static_local_var .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 x20, x0 bl _ast_static_lvar mov x19, x0 mov w0, #61 bl _next_token cbz x0, LBB0_2 ; %bb.1: Lloh0: adrp x21, _localenv@GOTPAGE Lloh1: ldr x21, [x21, _localenv@GOTPAGEOFF] ldr x22, [x21] str xzr, [x21] mov x0, x20 bl _read_decl_init mov x1, x0 str x22, [x21] b LBB0_3 LBB0_2: mov x1, #0 LBB0_3: Lloh2: adrp x8, _toplevels@GOTPAGE Lloh3: ldr x8, [x8, _toplevels@GOTPAGEOFF] Lloh4: ldr w20, [x8] mov x0, x19 bl _ast_decl mov x1, x0 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 b _vec_push .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _localenv,8,3 ; @localenv .comm _toplevels,4,2 ; @toplevels .no_dead_strip _read_static_local_var .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_static_local_var.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_stmt _read_stmt: ## @read_stmt .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 _get movq %rax, %rbx movq (%rax), %rax movq _TKEYWORD@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_15 ## %bb.1: movl 8(%rbx), %ecx addl $-123, %ecx cmpl $15, %ecx ja LBB0_15 ## %bb.2: leaq LJTI0_0(%rip), %rdx movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx LBB0_3: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp jmp _read_compound_stmt ## TAILCALL LBB0_15: movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax jne LBB0_17 ## %bb.16: movl $58, %edi callq _next_token testq %rax, %rax je LBB0_17 ## %bb.18: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _read_label ## TAILCALL LBB0_17: movq %rbx, %rdi callq _unget_token xorl %eax, %eax callq _read_expr_opt movq %rax, %rbx movl $59, %edi callq _expect movq %rbx, %rax addq $8, %rsp popq %rbx popq %rbp retq LBB0_6: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp jmp _read_while_stmt ## TAILCALL LBB0_9: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp jmp _read_switch_stmt ## TAILCALL LBB0_8: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp jmp _read_return_stmt ## TAILCALL LBB0_4: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp jmp _read_if_stmt ## TAILCALL LBB0_14: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp jmp _read_goto_stmt ## TAILCALL LBB0_5: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp jmp _read_for_stmt ## TAILCALL LBB0_7: xorl %eax, %eax addq $8, %rsp popq %rbx popq %rbp jmp _read_do_stmt ## TAILCALL LBB0_11: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _read_default_label ## TAILCALL LBB0_13: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _read_continue_stmt ## TAILCALL LBB0_10: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _read_case_label ## TAILCALL LBB0_12: movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _read_break_stmt ## TAILCALL .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_15, LBB0_15-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_9, LBB0_9-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_14, LBB0_14-LJTI0_0 .set L0_0_set_5, LBB0_5-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_11, LBB0_11-LJTI0_0 .set L0_0_set_13, LBB0_13-LJTI0_0 .set L0_0_set_10, LBB0_10-LJTI0_0 .set L0_0_set_12, LBB0_12-LJTI0_0 LJTI0_0: .long L0_0_set_3 .long L0_0_set_15 .long L0_0_set_15 .long L0_0_set_15 .long L0_0_set_15 .long L0_0_set_6 .long L0_0_set_9 .long L0_0_set_8 .long L0_0_set_4 .long L0_0_set_14 .long L0_0_set_5 .long L0_0_set_7 .long L0_0_set_11 .long L0_0_set_13 .long L0_0_set_10 .long L0_0_set_12 .end_data_region ## -- End function .comm _TKEYWORD,8,3 ## @TKEYWORD .comm _TIDENT,8,3 ## @TIDENT .no_dead_strip _read_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_stmt _read_stmt: ; @read_stmt .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 _get mov x19, x0 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 w9, [x19, #8] sub w9, w9, #123 cmp w9, #15 b.hi LBB0_4 ; %bb.2: Lloh3: adrp x10, lJTI0_0@PAGE Lloh4: add x10, x10, lJTI0_0@PAGEOFF adr x11, LBB0_3 ldrb w12, [x10, x9] add x11, x11, x12, lsl #2 br x11 LBB0_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_compound_stmt LBB0_4: Lloh5: adrp x9, _TIDENT@GOTPAGE Lloh6: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh7: ldr x9, [x9] cmp x8, x9 b.ne LBB0_7 ; %bb.5: mov w0, #58 bl _next_token cbz x0, LBB0_7 ; %bb.6: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_label LBB0_7: mov x0, x19 bl _unget_token bl _read_expr_opt mov x19, x0 mov w0, #59 bl _expect mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_8: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_while_stmt LBB0_9: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_switch_stmt LBB0_10: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_return_stmt LBB0_11: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_if_stmt LBB0_12: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_goto_stmt LBB0_13: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_for_stmt LBB0_14: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_do_stmt LBB0_15: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_default_label LBB0_16: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_continue_stmt LBB0_17: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_case_label LBB0_18: mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _read_break_stmt .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .cfi_endproc .section __TEXT,__const lJTI0_0: .byte (LBB0_3-LBB0_3)>>2 .byte (LBB0_4-LBB0_3)>>2 .byte (LBB0_4-LBB0_3)>>2 .byte (LBB0_4-LBB0_3)>>2 .byte (LBB0_4-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_15-LBB0_3)>>2 .byte (LBB0_16-LBB0_3)>>2 .byte (LBB0_17-LBB0_3)>>2 .byte (LBB0_18-LBB0_3)>>2 ; -- End function .comm _TKEYWORD,8,3 ; @TKEYWORD .comm _TIDENT,8,3 ; @TIDENT .no_dead_strip _read_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_stmt_expr _read_stmt_expr: ## @read_stmt_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 %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 xorl %eax, %eax callq _read_compound_stmt movq %rax, %rbx movl $41, %edi callq _expect movq _type_void@GOTPCREL(%rip), %rax movq (%rax), %r14 movl 8(%rbx), %edi callq _vec_len testq %rax, %rax jle LBB0_2 ## %bb.1: movl 8(%rbx), %edi callq _vec_tail movq (%rax), %rax testq %rax, %rax cmovneq %rax, %r14 LBB0_2: movq %r14, (%rbx) movq %rbx, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _type_void,8,3 ## @type_void .no_dead_strip _read_stmt_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_stmt_expr _read_stmt_expr: ; @read_stmt_expr .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_compound_stmt mov x19, x0 mov w0, #41 bl _expect Lloh0: adrp x8, _type_void@GOTPAGE Lloh1: ldr x8, [x8, _type_void@GOTPAGEOFF] Lloh2: ldr x20, [x8] ldr w0, [x19, #8] bl _vec_len cmp x0, #1 b.lt LBB0_2 ; %bb.1: ldr w0, [x19, #8] bl _vec_tail ldr x8, [x0] cmp x8, #0 csel x20, x20, x8, eq LBB0_2: str x20, [x19] 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 .cfi_endproc ; -- End function .comm _type_void,8,3 ; @type_void .no_dead_strip _read_stmt_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_stmt_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_struct_def _read_struct_def: ## @read_struct_def .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1, %edi popq %rbp jmp _read_rectype_def ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_struct_def .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_struct_def _read_struct_def: ; @read_struct_def .cfi_startproc ; %bb.0: mov w0, #1 b _read_rectype_def .cfi_endproc ; -- End function .no_dead_strip _read_struct_def .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_struct_def.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_struct_field _read_struct_field: ## @read_struct_field .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, %r14 movq (%rdi), %rax movq (%rax), %rax movq _KIND_STRUCT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_2 ## %bb.1: movq %r14, %rdi callq _node2s leaq L_.str(%rip), %rdi movl %eax, %esi callq _error LBB0_2: xorl %eax, %eax callq _get movq %rax, %rbx movq (%rax), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_4 ## %bb.3: movq %rbx, %rdi callq _tok2s leaq L_.str.1(%rip), %rdi movl %eax, %esi callq _error LBB0_4: movq (%r14), %rax movl 8(%rax), %edi movl 8(%rbx), %esi callq _dict_get movq %rax, %r15 testq %rax, %rax jne LBB0_6 ## %bb.5: movq %rbx, %rdi callq _tok2s leaq L_.str.2(%rip), %rdi movl %eax, %esi callq _error LBB0_6: movl 8(%rbx), %edx movq %r15, %rdi movq %r14, %rsi addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _ast_struct_ref ## TAILCALL .cfi_endproc ## -- End function .comm _KIND_STRUCT,8,3 ## @KIND_STRUCT .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct expected, but got %s" .comm _TIDENT,8,3 ## @TIDENT L_.str.1: ## @.str.1 .asciz "field name expected, but got %s" L_.str.2: ## @.str.2 .asciz "struct has no such field: %s" .no_dead_strip _read_struct_field .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_struct_field _read_struct_field: ; @read_struct_field .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 ldr x8, [x0] ldr x8, [x8] Lloh0: adrp x9, _KIND_STRUCT@GOTPAGE Lloh1: ldr x9, [x9, _KIND_STRUCT@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, x9 b.eq LBB0_2 ; %bb.1: mov x0, x19 bl _node2s mov x1, x0 Lloh3: adrp x0, l_.str@PAGE Lloh4: add x0, x0, l_.str@PAGEOFF bl _error LBB0_2: bl _get mov x20, x0 ldr x8, [x0] Lloh5: adrp x9, _TIDENT@GOTPAGE Lloh6: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh7: ldr x9, [x9] cmp x8, x9 b.eq LBB0_4 ; %bb.3: mov x0, x20 bl _tok2s mov x1, x0 Lloh8: adrp x0, l_.str.1@PAGE Lloh9: add x0, x0, l_.str.1@PAGEOFF bl _error LBB0_4: ldr x8, [x19] ldr w0, [x8, #8] ldr w1, [x20, #8] bl _dict_get mov x21, x0 cbnz x0, LBB0_6 ; %bb.5: mov x0, x20 bl _tok2s mov x1, x0 Lloh10: adrp x0, l_.str.2@PAGE Lloh11: add x0, x0, l_.str.2@PAGEOFF bl _error LBB0_6: ldr w2, [x20, #8] mov x0, x21 mov x1, 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 _ast_struct_ref .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7 .loh AdrpAdd Lloh8, Lloh9 .loh AdrpAdd Lloh10, Lloh11 .cfi_endproc ; -- End function .comm _KIND_STRUCT,8,3 ; @KIND_STRUCT .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct expected, but got %s" .comm _TIDENT,8,3 ; @TIDENT l_.str.1: ; @.str.1 .asciz "field name expected, but got %s" l_.str.2: ; @.str.2 .asciz "struct has no such field: %s" .no_dead_strip _read_struct_field .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_struct_field.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_struct_initializer _read_struct_initializer: ## @read_struct_initializer .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 _read_struct_initializer_sub movq %rbx, %rdi addq $8, %rsp popq %rbx popq %rbp jmp _sort_inits ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _read_struct_initializer .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_struct_initializer _read_struct_initializer: ; @read_struct_initializer .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 _read_struct_initializer_sub mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _sort_inits .cfi_endproc ; -- End function .no_dead_strip _read_struct_initializer .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_struct_initializer.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_struct_initializer_sub _read_struct_initializer_sub: ## @read_struct_initializer_sub .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 $40, %rsp .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movl %ecx, %r13d movl %edx, %ebx movq %rsi, %r14 movq %rdi, -80(%rbp) ## 8-byte Spill xorl %eax, %eax callq _maybe_read_brace movl %eax, -44(%rbp) ## 4-byte Spill movl 16(%r14), %edi callq _dict_keys movq %rax, %r12 movslq %ebx, %rax movq %rax, -72(%rbp) ## 8-byte Spill xorl %r15d, %r15d movq %r14, -56(%rbp) ## 8-byte Spill jmp LBB0_1 .p2align 4, 0x90 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 movq -56(%rbp), %r14 ## 8-byte Reload movq -64(%rbp), %rsi ## 8-byte Reload LBB0_22: ## in Loop: Header=BB0_1 Depth=1 movq 8(%rsi), %rdx addq -72(%rbp), %rdx ## 8-byte Folded Reload movq -80(%rbp), %rdi ## 8-byte Reload movl %r13d, %ecx callq _read_initializer_elem xorl %r13d, %r13d xorl %eax, %eax callq _maybe_skip_comma cmpl $0, (%r14) je LBB0_23 LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_16 Depth 2 xorl %eax, %eax callq _get movq %rax, %rbx movq %rax, %rdi movl $125, %esi callq _is_keyword testq %rax, %rax jne LBB0_2 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi movl $46, %esi callq _is_keyword testq %rax, %rax je LBB0_5 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movl %r13d, %eax orl -44(%rbp), %eax ## 4-byte Folded Reload jne LBB0_9 jmp LBB0_3 .p2align 4, 0x90 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi movl $91, %esi callq _is_keyword testl %r13d, %r13d jne LBB0_9 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 testq %rax, %rax je LBB0_9 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -44(%rbp) ## 4-byte Folded Reload je LBB0_3 .p2align 4, 0x90 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi movl $46, %esi callq _is_keyword testq %rax, %rax je LBB0_20 ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _get movq %rax, %r15 testq %rax, %rax je LBB0_12 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movq (%r15), %rax movq _TIDENT@GOTPCREL(%rip), %rcx cmpq (%rcx), %rax je LBB0_13 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movq %r15, %rdi callq _tok2s movq %r15, %rdi leaq L_.str(%rip), %rsi movl %eax, %edx callq _errort LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movq 8(%r15), %rbx movl 16(%r14), %edi movq %rbx, %rsi callq _dict_get movq %rax, -64(%rbp) ## 8-byte Spill testq %rax, %rax jne LBB0_15 ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 movq %r15, %rdi callq _tok2s movq %r15, %rdi leaq L_.str.1(%rip), %rsi movl %eax, %edx callq _errort LBB0_15: ## in Loop: Header=BB0_1 Depth=1 movl 16(%r14), %edi callq _dict_keys movq %rax, %r12 xorl %r15d, %r15d .p2align 4, 0x90 LBB0_16: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq %r12, %rdi callq _vec_len movl $1, %r13d cmpl %eax, %r15d jge LBB0_17 ## %bb.18: ## in Loop: Header=BB0_16 Depth=2 leal 1(%r15), %r14d movq %r12, %rdi movl %r15d, %esi callq _vec_get movq %rbx, %rdi movq %rax, %rsi callq _strcmp movl %r14d, %r15d testq %rax, %rax jne LBB0_16 ## %bb.19: ## in Loop: Header=BB0_1 Depth=1 movl %r14d, %r15d jmp LBB0_17 .p2align 4, 0x90 LBB0_20: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi callq _unget_token movq %r12, %rdi callq _vec_len cmpl %eax, %r15d je LBB0_23 ## %bb.21: ## in Loop: Header=BB0_1 Depth=1 leal 1(%r15), %ebx movq %r12, %rdi movl %r15d, %esi callq _vec_get movl 16(%r14), %edi movq %rax, %rsi callq _dict_get movq %rax, %rsi movl %ebx, %r15d jmp LBB0_22 LBB0_23: cmpl $0, -44(%rbp) ## 4-byte Folded Reload je LBB0_24 ## %bb.25: xorl %eax, %eax addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _skip_to_brace ## TAILCALL LBB0_2: cmpl $0, -44(%rbp) ## 4-byte Folded Reload je LBB0_3 LBB0_24: addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq LBB0_3: movq %rbx, %rdi addq $40, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _unget_token ## TAILCALL .cfi_endproc ## -- End function .comm _TIDENT,8,3 ## @TIDENT .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "malformed desginated initializer: %s" L_.str.1: ## @.str.1 .asciz "field does not exist: %s" .no_dead_strip _read_struct_initializer_sub .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_struct_initializer_sub _read_struct_initializer_sub: ; @read_struct_initializer_sub .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 x25, x3 mov x22, x2 mov x19, x1 mov x20, x0 bl _maybe_read_brace mov x21, x0 ldr w0, [x19, #16] bl _dict_keys mov x24, x0 mov w23, #0 sxtw x28, w22 Lloh0: adrp x22, l_.str@PAGE Lloh1: add x22, x22, l_.str@PAGEOFF b LBB0_3 LBB0_1: ; in Loop: Header=BB0_3 Depth=1 mov w25, #1 LBB0_2: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [x27, #8] add x2, x8, x28 mov x0, x20 mov x1, x27 mov x3, x25 bl _read_initializer_elem bl _maybe_skip_comma mov w25, #0 ldr w8, [x19] cbz w8, LBB0_22 LBB0_3: ; =>This Loop Header: Depth=1 ; Child Loop BB0_16 Depth 2 bl _get mov x27, x0 mov w1, #125 bl _is_keyword cbnz x0, LBB0_24 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 mov x0, x27 mov w1, #46 bl _is_keyword cbz x0, LBB0_6 ; %bb.5: ; in Loop: Header=BB0_3 Depth=1 orr w8, w25, w21 cbnz w8, LBB0_9 b LBB0_26 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 mov x0, x27 mov w1, #91 bl _is_keyword cbnz w25, LBB0_9 ; %bb.7: ; in Loop: Header=BB0_3 Depth=1 cbz x0, LBB0_9 ; %bb.8: ; in Loop: Header=BB0_3 Depth=1 cbz w21, LBB0_26 LBB0_9: ; in Loop: Header=BB0_3 Depth=1 mov x0, x27 mov w1, #46 bl _is_keyword cbz x0, LBB0_19 ; %bb.10: ; in Loop: Header=BB0_3 Depth=1 bl _get mov x24, x0 cbz x0, LBB0_12 ; %bb.11: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [x24] Lloh2: adrp x9, _TIDENT@GOTPAGE Lloh3: ldr x9, [x9, _TIDENT@GOTPAGEOFF] Lloh4: ldr x9, [x9] cmp x8, x9 b.eq LBB0_13 LBB0_12: ; in Loop: Header=BB0_3 Depth=1 mov x0, x24 bl _tok2s mov x2, x0 mov x0, x24 mov x1, x22 bl _errort LBB0_13: ; in Loop: Header=BB0_3 Depth=1 ldr x25, [x24, #8] ldr w0, [x19, #16] mov x1, x25 bl _dict_get mov x27, x0 cbnz x0, LBB0_15 ; %bb.14: ; in Loop: Header=BB0_3 Depth=1 mov x0, x24 bl _tok2s mov x2, x0 mov x0, x24 Lloh5: adrp x1, l_.str.1@PAGE Lloh6: add x1, x1, l_.str.1@PAGEOFF bl _errort LBB0_15: ; in Loop: Header=BB0_3 Depth=1 ldr w0, [x19, #16] bl _dict_keys mov x24, x0 mov w23, #0 LBB0_16: ; Parent Loop BB0_3 Depth=1 ; => This Inner Loop Header: Depth=2 mov x0, x24 bl _vec_len cmp w23, w0 b.ge LBB0_1 ; %bb.17: ; in Loop: Header=BB0_16 Depth=2 add w26, w23, #1 mov x0, x24 mov x1, x23 bl _vec_get mov x1, x0 mov x0, x25 bl _strcmp mov x23, x26 cbnz x0, LBB0_16 ; %bb.18: ; in Loop: Header=BB0_3 Depth=1 mov w25, #1 b LBB0_21 LBB0_19: ; in Loop: Header=BB0_3 Depth=1 mov x0, x27 bl _unget_token mov x0, x24 bl _vec_len cmp w23, w0 b.eq LBB0_22 ; %bb.20: ; in Loop: Header=BB0_3 Depth=1 add w26, w23, #1 mov x0, x24 mov x1, x23 bl _vec_get mov x1, x0 ldr w0, [x19, #16] bl _dict_get mov x27, x0 LBB0_21: ; in Loop: Header=BB0_3 Depth=1 mov x23, x26 b LBB0_2 LBB0_22: cbz w21, LBB0_25 ; %bb.23: 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 _skip_to_brace LBB0_24: cbz w21, LBB0_26 LBB0_25: 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_26: mov x0, x27 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 AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .loh AdrpAdd Lloh5, Lloh6 .cfi_endproc ; -- End function .comm _TIDENT,8,3 ; @TIDENT .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "malformed desginated initializer: %s" l_.str.1: ; @.str.1 .asciz "field does not exist: %s" .no_dead_strip _read_struct_initializer_sub .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_struct_initializer_sub.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_subscript_expr _read_subscript_expr: ## @read_subscript_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 %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 xorl %eax, %eax callq _peek movq %rax, %r15 xorl %eax, %eax callq _read_expr movq %rax, %rbx testq %rax, %rax jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rsi movq %r15, %rdi callq _errort LBB0_2: movl $93, %edi callq _expect movq %r14, %rdi callq _conv movl %eax, %r14d movq %rbx, %rdi callq _conv movl $43, %edi movl %r14d, %esi movl %eax, %edx callq _binop movq _AST_DEREF@GOTPCREL(%rip), %rcx movl (%rcx), %edi movq (%rax), %rcx movl (%rcx), %esi movq %rax, %rdx addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _ast_uop ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "subscription expected" .comm _AST_DEREF,4,2 ## @AST_DEREF .no_dead_strip _read_subscript_expr .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_subscript_expr _read_subscript_expr: ; @read_subscript_expr .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 _peek mov x21, x0 bl _read_expr mov x20, x0 cbnz x0, LBB0_2 ; %bb.1: Lloh0: adrp x1, l_.str@PAGE Lloh1: add x1, x1, l_.str@PAGEOFF mov x0, x21 bl _errort LBB0_2: mov w0, #93 bl _expect mov x0, x19 bl _conv mov x19, x0 mov x0, x20 bl _conv mov x2, x0 mov w0, #43 mov x1, x19 bl _binop mov x2, x0 Lloh2: adrp x8, _AST_DEREF@GOTPAGE Lloh3: ldr x8, [x8, _AST_DEREF@GOTPAGEOFF] Lloh4: ldr w0, [x8] ldr x8, [x2] ldr w1, [x8] 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_uop .loh AdrpAdd Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "subscription expected" .comm _AST_DEREF,4,2 ; @AST_DEREF .no_dead_strip _read_subscript_expr .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_subscript_expr.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function read_switch_stmt _read_switch_stmt: ## @read_switch_stmt .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 $40, %edi callq _expect xorl %ebx, %ebx xorl %eax, %eax callq _read_expr movl %eax, %edi callq _conv movq %rax, %r12 movq %rax, %rdi callq _ensure_inttype movl $41, %edi callq _expect xorl %eax, %eax callq _make_label movq %rax, %r14 movq %rax, %rdi callq _SET_SWITCH_CONTEXT xorl %eax, %eax callq _read_stmt movq %rax, -48(%rbp) ## 8-byte Spill xorl %eax, %eax callq _make_vector movq %rax, %r15 movl (%r12), %r13d xorl %eax, %eax callq _make_tempname movl %r13d, %edi movl %eax, %esi callq _ast_lvar movq %rax, %r13 movl (%r12), %edi movl $61, %esi movq %rax, %rdx movq %r12, %rcx callq _ast_binop movq %r15, %rdi movq %rax, %rsi callq _vec_push movq _cases@GOTPCREL(%rip), %r12 movl (%r12), %edi callq _vec_len testl %eax, %eax jle LBB0_1 .p2align 4, 0x90 LBB0_4: ## =>This Inner Loop Header: Depth=1 movl (%r12), %edi movl %ebx, %esi callq _vec_get movq %r13, %rdi movl %eax, %esi callq _make_switch_jump movq %r15, %rdi movq %rax, %rsi callq _vec_push incl %ebx movl (%r12), %edi callq _vec_len cmpl %eax, %ebx jl LBB0_4 LBB0_1: movq _defaultcase@GOTPCREL(%rip), %rax movq (%rax), %rdi testq %rdi, %rdi cmoveq %r14, %rdi callq _ast_jump movq %r15, %rdi movq %rax, %rsi callq _vec_push movq -48(%rbp), %rsi ## 8-byte Reload testq %rsi, %rsi je LBB0_3 ## %bb.2: movq %r15, %rdi callq _vec_push LBB0_3: movq %r14, %rdi callq _ast_dest movq %r15, %rdi movq %rax, %rsi callq _vec_push xorl %eax, %eax callq _RESTORE_SWITCH_CONTEXT movq %r15, %rdi addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _ast_compound_stmt ## TAILCALL .cfi_endproc ## -- End function .comm _cases,4,2 ## @cases .comm _defaultcase,8,3 ## @defaultcase .no_dead_strip _read_switch_stmt .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function read_switch_stmt _read_switch_stmt: ; @read_switch_stmt .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, #40 bl _expect bl _read_expr bl _conv mov x23, x0 bl _ensure_inttype mov w0, #41 bl _expect bl _make_label mov x19, x0 bl _SET_SWITCH_CONTEXT bl _read_stmt mov x21, x0 bl _make_vector mov x20, x0 ldr w22, [x23] bl _make_tempname mov x1, x0 mov x0, x22 bl _ast_lvar mov x22, x0 ldr w0, [x23] mov w1, #61 mov x2, x22 mov x3, x23 bl _ast_binop mov x1, x0 mov x0, x20 bl _vec_push Lloh0: adrp x24, _cases@GOTPAGE Lloh1: ldr x24, [x24, _cases@GOTPAGEOFF] ldr w0, [x24] bl _vec_len cmp w0, #1 b.lt LBB0_3 ; %bb.1: mov w23, #0 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr w0, [x24] mov x1, x23 bl _vec_get mov x1, x0 mov x0, x22 bl _make_switch_jump mov x1, x0 mov x0, x20 bl _vec_push add w23, w23, #1 ldr w0, [x24] bl _vec_len cmp w23, w0 b.lt LBB0_2 LBB0_3: Lloh2: adrp x8, _defaultcase@GOTPAGE Lloh3: ldr x8, [x8, _defaultcase@GOTPAGEOFF] Lloh4: ldr x8, [x8] cmp x8, #0 csel x0, x19, x8, eq bl _ast_jump mov x1, x0 mov x0, x20 bl _vec_push cbz x21, LBB0_5 ; %bb.4: mov x0, x20 mov x1, x21 bl _vec_push LBB0_5: mov x0, x19 bl _ast_dest mov x1, x0 mov x0, x20 bl _vec_push bl _RESTORE_SWITCH_CONTEXT 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 b _ast_compound_stmt .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .cfi_endproc ; -- End function .comm _cases,4,2 ; @cases .comm _defaultcase,8,3 ; @defaultcase .no_dead_strip _read_switch_stmt .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_switch_stmt.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_toplevels ## -- Begin function read_toplevels .p2align 4, 0x90 _read_toplevels: ## @read_toplevels .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 _make_vector movq _toplevels@GOTPCREL(%rip), %r14 movq %rax, (%r14) xorl %eax, %eax callq _peek movq (%rax), %rax movq _TEOF@GOTPCREL(%rip), %r15 jmp LBB0_1 .p2align 4, 0x90 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq %rbx, %rdi movl $1, %esi callq _read_decl LBB0_5: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _peek movq (%rax), %rax LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpq (%r15), %rax je LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _is_funcdef movq (%r14), %rbx testq %rax, %rax je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 xorl %eax, %eax callq _read_funcdef movq %rbx, %rdi movl %eax, %esi callq _vec_push jmp LBB0_5 LBB0_6: movq (%r14), %rax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _toplevels,8,3 ## @toplevels .comm _TEOF,8,3 ## @TEOF .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_toplevels ; -- Begin function read_toplevels .p2align 2 _read_toplevels: ; @read_toplevels .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 bl _make_vector Lloh0: adrp x20, _toplevels@GOTPAGE Lloh1: ldr x20, [x20, _toplevels@GOTPAGEOFF] str x0, [x20] bl _peek ldr x8, [x0] Lloh2: adrp x21, _TEOF@GOTPAGE Lloh3: ldr x21, [x21, _TEOF@GOTPAGEOFF] b LBB0_3 LBB0_1: ; in Loop: Header=BB0_3 Depth=1 mov x0, x19 mov w1, #1 bl _read_decl LBB0_2: ; in Loop: Header=BB0_3 Depth=1 bl _peek ldr x8, [x0] LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x9, [x21] cmp x8, x9 b.eq LBB0_6 ; %bb.4: ; in Loop: Header=BB0_3 Depth=1 bl _is_funcdef ldr x19, [x20] cbz x0, LBB0_1 ; %bb.5: ; in Loop: Header=BB0_3 Depth=1 bl _read_funcdef mov x1, x0 mov x0, x19 bl _vec_push b LBB0_2 LBB0_6: ldr 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 AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _toplevels,8,3 ; @toplevels .comm _TEOF,8,3 ; @TEOF .subsections_via_symbols
AnghaBench/8cc/extr_parse.c_read_toplevels.c
anghabench