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 read_typeof
_read_typeof: ## @read_typeof
.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
movq %rax, %rbx
jmp LBB0_3
LBB0_2:
xorl %eax, %eax
callq _read_comma_expr
movq (%rax), %rbx
LBB0_3:
movl $41, %edi
callq _expect
movq %rbx, %rax
addq $8, %rsp
popq %rbx
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _read_typeof
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_typeof
_read_typeof: ; @read_typeof
.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
mov x19, x0
b LBB0_3
LBB0_2:
bl _read_comma_expr
ldr 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_typeof
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_typeof.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_unary_addr
_read_unary_addr: ## @read_unary_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
xorl %eax, %eax
callq _read_cast_expr
movq %rax, %rbx
movq (%rax), %rax
movq _AST_FUNCDESG@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_2
## %bb.1:
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp _conv ## TAILCALL
LBB0_2:
movq %rbx, %rdi
callq _ensure_lvalue
movq _AST_ADDR@GOTPCREL(%rip), %rax
movl (%rax), %r14d
movl 8(%rbx), %edi
callq _make_ptr_type
movl %r14d, %edi
movl %eax, %esi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmp _ast_uop ## TAILCALL
.cfi_endproc
## -- End function
.comm _AST_FUNCDESG,8,3 ## @AST_FUNCDESG
.comm _AST_ADDR,4,2 ## @AST_ADDR
.no_dead_strip _read_unary_addr
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_unary_addr
_read_unary_addr: ; @read_unary_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
bl _read_cast_expr
mov x19, x0
ldr x8, [x0]
Lloh0:
adrp x9, _AST_FUNCDESG@GOTPAGE
Lloh1:
ldr x9, [x9, _AST_FUNCDESG@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne 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 _conv
LBB0_2:
mov x0, x19
bl _ensure_lvalue
Lloh3:
adrp x8, _AST_ADDR@GOTPAGE
Lloh4:
ldr x8, [x8, _AST_ADDR@GOTPAGEOFF]
Lloh5:
ldr w20, [x8]
ldr w0, [x19, #8]
bl _make_ptr_type
mov x1, x0
mov x0, x20
mov x2, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _ast_uop
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.cfi_endproc
; -- End function
.comm _AST_FUNCDESG,8,3 ; @AST_FUNCDESG
.comm _AST_ADDR,4,2 ; @AST_ADDR
.no_dead_strip _read_unary_addr
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_unary_addr.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_unary_bitnot
_read_unary_bitnot: ## @read_unary_bitnot
.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 _read_cast_expr
movq %rax, %rdi
callq _conv
movq %rax, %rbx
movl (%rax), %edi
callq _is_inttype
testl %eax, %eax
jne LBB0_2
## %bb.1:
movq %rbx, %rdi
callq _node2s
leaq L_.str(%rip), %rsi
movq %r14, %rdi
movl %eax, %edx
callq _errort
LBB0_2:
movl (%rbx), %esi
movl $126, %edi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmp _ast_uop ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "invalid use of ~: %s"
.no_dead_strip _read_unary_bitnot
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_unary_bitnot
_read_unary_bitnot: ; @read_unary_bitnot
.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 _read_cast_expr
bl _conv
mov x19, x0
ldr w0, [x0]
bl _is_inttype
cbnz w0, LBB0_2
; %bb.1:
mov x0, x19
bl _node2s
mov x2, x0
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
mov x0, x20
bl _errort
LBB0_2:
ldr w1, [x19]
mov w0, #126
mov x2, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _ast_uop
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "invalid use of ~: %s"
.no_dead_strip _read_unary_bitnot
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_unary_bitnot.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_unary_deref
_read_unary_deref: ## @read_unary_deref
.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 _read_cast_expr
movl %eax, %edi
callq _conv
movq %rax, %rbx
movq (%rax), %rax
movq (%rax), %rcx
movq _KIND_PTR@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
je LBB0_2
## %bb.1:
movq %rbx, %rdi
callq _node2s
leaq L_.str(%rip), %rsi
movq %r14, %rdi
movl %eax, %edx
callq _errort
movq (%rbx), %rax
LBB0_2:
movq 8(%rax), %rsi
movq (%rsi), %rax
movq _KIND_FUNC@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.3:
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
LBB0_4:
movq _AST_DEREF@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmp _ast_uop ## TAILCALL
.cfi_endproc
## -- End function
.comm _KIND_PTR,8,3 ## @KIND_PTR
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "pointer type expected, but got %s"
.comm _KIND_FUNC,8,3 ## @KIND_FUNC
.comm _AST_DEREF,4,2 ## @AST_DEREF
.no_dead_strip _read_unary_deref
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_unary_deref
_read_unary_deref: ; @read_unary_deref
.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 _read_cast_expr
bl _conv
mov x19, x0
ldr x8, [x0]
ldr x9, [x8]
Lloh0:
adrp x10, _KIND_PTR@GOTPAGE
Lloh1:
ldr x10, [x10, _KIND_PTR@GOTPAGEOFF]
Lloh2:
ldr x10, [x10]
cmp x9, x10
b.eq LBB0_2
; %bb.1:
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
ldr x8, [x19]
LBB0_2:
ldr x1, [x8, #8]
ldr x8, [x1]
Lloh5:
adrp x9, _KIND_FUNC@GOTPAGE
Lloh6:
ldr x9, [x9, _KIND_FUNC@GOTPAGEOFF]
Lloh7:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_4
; %bb.3:
mov x0, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_4:
Lloh8:
adrp x8, _AST_DEREF@GOTPAGE
Lloh9:
ldr x8, [x8, _AST_DEREF@GOTPAGEOFF]
Lloh10:
ldr w0, [x8]
mov x2, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _ast_uop
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.cfi_endproc
; -- End function
.comm _KIND_PTR,8,3 ; @KIND_PTR
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "pointer type expected, but got %s"
.comm _KIND_FUNC,8,3 ; @KIND_FUNC
.comm _AST_DEREF,4,2 ; @AST_DEREF
.no_dead_strip _read_unary_deref
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_unary_deref.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_unary_expr
_read_unary_expr: ## @read_unary_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 _get
movq (%rax), %rcx
movq _TKEYWORD@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
jne LBB0_15
## %bb.1:
movl 8(%rax), %ecx
addl $-33, %ecx
cmpl $99, %ecx
ja LBB0_15
## %bb.2:
leaq LJTI0_0(%rip), %rdx
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
LBB0_14:
xorl %eax, %eax
popq %rbp
jmp _read_unary_lognot ## TAILCALL
LBB0_15:
movq %rax, %rdi
callq _unget_token
xorl %eax, %eax
popq %rbp
jmp _read_postfix_expr ## TAILCALL
LBB0_9:
xorl %eax, %eax
popq %rbp
jmp _read_unary_addr ## TAILCALL
LBB0_10:
movq %rax, %rdi
popq %rbp
jmp _read_unary_deref ## TAILCALL
LBB0_11:
xorl %eax, %eax
popq %rbp
jmp _read_cast_expr ## TAILCALL
LBB0_12:
xorl %eax, %eax
popq %rbp
jmp _read_unary_minus ## TAILCALL
LBB0_13:
movq %rax, %rdi
popq %rbp
jmp _read_unary_bitnot ## TAILCALL
LBB0_8:
movq %rax, %rdi
popq %rbp
jmp _read_label_addr ## TAILCALL
LBB0_5:
movq _OP_PRE_INC@GOTPCREL(%rip), %rax
jmp LBB0_6
LBB0_7:
movq _OP_PRE_DEC@GOTPCREL(%rip), %rax
LBB0_6:
movl (%rax), %edi
popq %rbp
jmp _read_unary_incdec ## TAILCALL
LBB0_3:
xorl %eax, %eax
popq %rbp
jmp _read_sizeof_operand ## TAILCALL
LBB0_4:
xorl %eax, %eax
popq %rbp
jmp _read_alignof_operand ## TAILCALL
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
.long L0_0_set_14
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_9
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_10
.long L0_0_set_11
.long L0_0_set_15
.long L0_0_set_12
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_15
.long L0_0_set_13
.long L0_0_set_15
.long L0_0_set_8
.long L0_0_set_5
.long L0_0_set_7
.long L0_0_set_3
.long L0_0_set_4
.end_data_region
## -- End function
.comm _TKEYWORD,8,3 ## @TKEYWORD
.comm _OP_PRE_INC,4,2 ## @OP_PRE_INC
.comm _OP_PRE_DEC,4,2 ## @OP_PRE_DEC
.no_dead_strip _read_unary_expr
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_unary_expr
_read_unary_expr: ; @read_unary_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 _get
ldr x8, [x0]
Lloh0:
adrp x9, _TKEYWORD@GOTPAGE
Lloh1:
ldr x9, [x9, _TKEYWORD@GOTPAGEOFF]
Lloh2:
ldr x9, [x9]
cmp x8, x9
b.ne LBB0_4
; %bb.1:
ldr w8, [x0, #8]
sub w8, w8, #33
cmp w8, #99
b.hi LBB0_4
; %bb.2:
Lloh3:
adrp x9, lJTI0_0@PAGE
Lloh4:
add x9, x9, lJTI0_0@PAGEOFF
adr x10, LBB0_3
ldrb w11, [x9, x8]
add x10, x10, x11, lsl #2
br x10
LBB0_3:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_unary_lognot
LBB0_4:
bl _unget_token
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_postfix_expr
LBB0_5:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_unary_addr
LBB0_6:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_unary_deref
LBB0_7:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_cast_expr
LBB0_8:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_unary_minus
LBB0_9:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_unary_bitnot
LBB0_10:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_label_addr
LBB0_11:
Lloh5:
adrp x8, _OP_PRE_INC@GOTPAGE
Lloh6:
ldr x8, [x8, _OP_PRE_INC@GOTPAGEOFF]
b LBB0_13
LBB0_12:
Lloh7:
adrp x8, _OP_PRE_DEC@GOTPAGE
Lloh8:
ldr x8, [x8, _OP_PRE_DEC@GOTPAGEOFF]
LBB0_13:
ldr w0, [x8]
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_unary_incdec
LBB0_14:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_sizeof_operand
LBB0_15:
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _read_alignof_operand
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpLdrGot Lloh5, Lloh6
.loh AdrpLdrGot Lloh7, Lloh8
.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_5-LBB0_3)>>2
.byte (LBB0_4-LBB0_3)>>2
.byte (LBB0_4-LBB0_3)>>2
.byte (LBB0_4-LBB0_3)>>2
.byte (LBB0_6-LBB0_3)>>2
.byte (LBB0_7-LBB0_3)>>2
.byte (LBB0_4-LBB0_3)>>2
.byte (LBB0_8-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_4-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_4-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_4-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_4-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_4-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_4-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_4-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_4-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_4-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_4-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_4-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_4-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_4-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_4-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_4-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_4-LBB0_3)>>2
.byte (LBB0_9-LBB0_3)>>2
.byte (LBB0_4-LBB0_3)>>2
.byte (LBB0_10-LBB0_3)>>2
.byte (LBB0_11-LBB0_3)>>2
.byte (LBB0_12-LBB0_3)>>2
.byte (LBB0_14-LBB0_3)>>2
.byte (LBB0_15-LBB0_3)>>2
; -- End function
.comm _TKEYWORD,8,3 ; @TKEYWORD
.comm _OP_PRE_INC,4,2 ; @OP_PRE_INC
.comm _OP_PRE_DEC,4,2 ; @OP_PRE_DEC
.no_dead_strip _read_unary_expr
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_unary_expr.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_unary_incdec
_read_unary_incdec: ## @read_unary_incdec
.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 _read_unary_expr
movq %rax, %rdi
callq _conv
movq %rax, %rbx
movq %rax, %rdi
callq _ensure_lvalue
movl (%rbx), %esi
movl %r14d, %edi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmp _ast_uop ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _read_unary_incdec
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_unary_incdec
_read_unary_incdec: ; @read_unary_incdec
.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_unary_expr
bl _conv
mov x20, x0
bl _ensure_lvalue
ldr w1, [x20]
mov x0, x19
mov x2, x20
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _ast_uop
.cfi_endproc
; -- End function
.no_dead_strip _read_unary_incdec
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_unary_incdec.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_unary_lognot
_read_unary_lognot: ## @read_unary_lognot
.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_cast_expr
movq %rax, %rdi
callq _conv
movq _type_int@GOTPCREL(%rip), %rcx
movl (%rcx), %esi
movl $33, %edi
movq %rax, %rdx
popq %rbp
jmp _ast_uop ## TAILCALL
.cfi_endproc
## -- End function
.comm _type_int,4,2 ## @type_int
.no_dead_strip _read_unary_lognot
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_unary_lognot
_read_unary_lognot: ; @read_unary_lognot
.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_cast_expr
bl _conv
mov x2, x0
Lloh0:
adrp x8, _type_int@GOTPAGE
Lloh1:
ldr x8, [x8, _type_int@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
mov w0, #33
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _ast_uop
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _type_int,4,2 ; @type_int
.no_dead_strip _read_unary_lognot
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_unary_lognot.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_unary_minus
_read_unary_minus: ## @read_unary_minus
.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
movq %rax, %rbx
movq %rax, %rdi
callq _ensure_arithtype
movl (%rbx), %edi
callq _is_inttype
movl (%rbx), %edi
xorl %esi, %esi
testq %rax, %rax
je LBB0_2
## %bb.1:
callq _ast_inttype
movq %rax, %rdi
callq _conv
movq %rax, %r14
movq %rbx, %rdi
callq _conv
movl $45, %edi
movq %r14, %rsi
movq %rax, %rdx
jmp LBB0_3
LBB0_2:
callq _ast_floattype
movl $45, %edi
movq %rax, %rsi
movq %rbx, %rdx
LBB0_3:
popq %rbx
popq %r14
popq %rbp
jmp _binop ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _read_unary_minus
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_unary_minus
_read_unary_minus: ; @read_unary_minus
.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
mov x19, x0
bl _ensure_arithtype
ldr w0, [x19]
bl _is_inttype
mov x8, x0
ldr w0, [x19]
mov w1, #0
cbz x8, LBB0_2
; %bb.1:
bl _ast_inttype
bl _conv
mov x20, x0
mov x0, x19
bl _conv
mov x2, x0
mov w0, #45
mov x1, x20
b LBB0_3
LBB0_2:
bl _ast_floattype
mov x1, x0
mov w0, #45
mov x2, x19
LBB0_3:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _binop
.cfi_endproc
; -- End function
.no_dead_strip _read_unary_minus
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_unary_minus.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_union_def
_read_union_def: ## @read_union_def
.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
popq %rbp
jmp _read_rectype_def ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _read_union_def
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_union_def
_read_union_def: ; @read_union_def
.cfi_startproc
; %bb.0:
mov w0, #0
b _read_rectype_def
.cfi_endproc
; -- End function
.no_dead_strip _read_union_def
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_union_def.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_var_or_func
_read_var_or_func: ## @read_var_or_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 %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 _env
movl %eax, %edi
movq %rbx, %rsi
callq _map_get
testq %rax, %rax
je LBB0_1
## %bb.5:
movq (%rax), %rdi
movq (%rdi), %rcx
movq _KIND_FUNC@GOTPCREL(%rip), %rdx
cmpq (%rdx), %rcx
je LBB0_4
## %bb.6:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
LBB0_1:
xorl %eax, %eax
callq _peek
movq %rax, %r14
movq %rax, %rdi
movl $40, %esi
callq _is_keyword
testl %eax, %eax
jne LBB0_3
## %bb.2:
leaq L_.str(%rip), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq _errort
LBB0_3:
movq _type_int@GOTPCREL(%rip), %rax
movl (%rax), %r15d
xorl %eax, %eax
callq _make_vector
movl %r15d, %edi
movl %eax, %esi
movl $1, %edx
xorl %ecx, %ecx
callq _make_func_type
movq %rax, %r15
leaq L_.str.1(%rip), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq _warnt
movq %r15, %rdi
LBB0_4:
movq %rbx, %rsi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _ast_funcdesg ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "undefined variable: %s"
.comm _type_int,4,2 ## @type_int
L_.str.1: ## @.str.1
.asciz "assume returning int: %s()"
.comm _KIND_FUNC,8,3 ## @KIND_FUNC
.no_dead_strip _read_var_or_func
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_var_or_func
_read_var_or_func: ; @read_var_or_func
.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 _env
mov x1, x19
bl _map_get
cbz x0, LBB0_3
; %bb.1:
ldr x8, [x0]
ldr x9, [x8]
Lloh0:
adrp x10, _KIND_FUNC@GOTPAGE
Lloh1:
ldr x10, [x10, _KIND_FUNC@GOTPAGEOFF]
Lloh2:
ldr x10, [x10]
cmp x9, x10
b.ne LBB0_7
; %bb.2:
mov x0, x8
b LBB0_6
LBB0_3:
bl _peek
mov x20, x0
mov w1, #40
bl _is_keyword
cbnz w0, LBB0_5
; %bb.4:
Lloh3:
adrp x1, l_.str@PAGE
Lloh4:
add x1, x1, l_.str@PAGEOFF
mov x0, x20
mov x2, x19
bl _errort
LBB0_5:
Lloh5:
adrp x8, _type_int@GOTPAGE
Lloh6:
ldr x8, [x8, _type_int@GOTPAGEOFF]
Lloh7:
ldr w21, [x8]
bl _make_vector
mov x1, x0
mov x0, x21
mov w2, #1
mov w3, #0
bl _make_func_type
mov x21, x0
Lloh8:
adrp x1, l_.str.1@PAGE
Lloh9:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x20
mov x2, x19
bl _warnt
mov x0, x21
LBB0_6:
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_funcdesg
LBB0_7:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpAdd Lloh3, Lloh4
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "undefined variable: %s"
.comm _type_int,4,2 ; @type_int
l_.str.1: ; @.str.1
.asciz "assume returning int: %s()"
.comm _KIND_FUNC,8,3 ; @KIND_FUNC
.no_dead_strip _read_var_or_func
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_var_or_func.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function read_while_stmt
_read_while_stmt: ## @read_while_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 %eax, %eax
callq _read_boolean_expr
movq %rax, %r15
movl $41, %edi
callq _expect
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, %r13
xorl %eax, %eax
callq _RESTORE_JUMP_LABELS
xorl %eax, %eax
callq _make_vector
movq %rax, %rbx
movq %r12, %rdi
callq _ast_dest
movq %rbx, %rdi
movl %eax, %esi
callq _vec_push
movq %r14, %rdi
callq _ast_jump
movq %r15, %rdi
movq %r13, %rsi
movl %eax, %edx
callq _ast_if
movq %rbx, %rdi
movl %eax, %esi
callq _vec_push
movq %r12, %rdi
callq _ast_jump
movq %rbx, %rdi
movl %eax, %esi
callq _vec_push
movq %r14, %rdi
callq _ast_dest
movq %rbx, %rdi
movl %eax, %esi
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
.no_dead_strip _read_while_stmt
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function read_while_stmt
_read_while_stmt: ; @read_while_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_boolean_expr
mov x19, x0
mov w0, #41
bl _expect
bl _make_label
mov x20, x0
bl _make_label
mov x21, x0
mov x0, x20
mov x1, x21
bl _SET_JUMP_LABELS
bl _read_stmt
mov x22, x0
bl _RESTORE_JUMP_LABELS
bl _make_vector
mov x23, x0
mov x0, x20
bl _ast_dest
mov x1, x0
mov x0, x23
bl _vec_push
mov x0, x21
bl _ast_jump
mov x2, x0
mov x0, x19
mov x1, x22
bl _ast_if
mov x1, x0
mov x0, x23
bl _vec_push
mov x0, x20
bl _ast_jump
mov x1, x0
mov x0, x23
bl _vec_push
mov x0, x21
bl _ast_dest
mov x1, x0
mov x0, x23
bl _vec_push
mov x0, x23
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
.cfi_endproc
; -- End function
.no_dead_strip _read_while_stmt
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_read_while_stmt.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function same_arith_type
_same_arith_type: ## @same_arith_type
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq (%rdi), %rcx
xorl %eax, %eax
cmpq (%rsi), %rcx
jne LBB0_2
## %bb.1:
movq 8(%rdi), %rcx
xorl %eax, %eax
cmpq 8(%rsi), %rcx
sete %al
LBB0_2:
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _same_arith_type
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function same_arith_type
_same_arith_type: ; @same_arith_type
.cfi_startproc
; %bb.0:
ldr x8, [x0]
ldr x9, [x1]
cmp x8, x9
b.ne LBB0_2
; %bb.1:
ldr x8, [x0, #8]
ldr x9, [x1, #8]
cmp x8, x9
cset w0, eq
ret
LBB0_2:
mov w0, #0
ret
.cfi_endproc
; -- End function
.no_dead_strip _same_arith_type
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_same_arith_type.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function skip_parentheses
_skip_parentheses: ## @skip_parentheses
.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, %r15
movq _TEOF@GOTPCREL(%rip), %r12
leaq L_.str(%rip), %r14
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
xorl %eax, %eax
callq _get
movq %rax, %rbx
movq (%rax), %rax
cmpq (%r12), %rax
jne LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq %r14, %rdi
callq _error
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq %r15, %rdi
movq %rbx, %rsi
callq _vec_push
movq %rbx, %rdi
movl $41, %esi
callq _is_keyword
testq %rax, %rax
jne LBB0_6
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movq %rbx, %rdi
movl $40, %esi
callq _is_keyword
testq %rax, %rax
je LBB0_1
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq %r15, %rdi
callq _skip_parentheses
jmp LBB0_1
LBB0_6:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _TEOF,8,3 ## @TEOF
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "premature end of input"
.no_dead_strip _skip_parentheses
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function skip_parentheses
_skip_parentheses: ; @skip_parentheses
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x0
Lloh0:
adrp x22, _TEOF@GOTPAGE
Lloh1:
ldr x22, [x22, _TEOF@GOTPAGEOFF]
Lloh2:
adrp x20, l_.str@PAGE
Lloh3:
add x20, x20, l_.str@PAGEOFF
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _get
mov x21, x0
ldr x8, [x0]
ldr x9, [x22]
cmp x8, x9
b.ne LBB0_3
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
mov x0, x20
bl _error
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
mov x0, x19
mov x1, x21
bl _vec_push
mov x0, x21
mov w1, #41
bl _is_keyword
cbnz x0, LBB0_6
; %bb.4: ; in Loop: Header=BB0_1 Depth=1
mov x0, x21
mov w1, #40
bl _is_keyword
cbz x0, LBB0_1
; %bb.5: ; in Loop: Header=BB0_1 Depth=1
mov x0, x19
bl _skip_parentheses
b LBB0_1
LBB0_6:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _TEOF,8,3 ; @TEOF
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "premature end of input"
.no_dead_strip _skip_parentheses
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_skip_parentheses.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function skip_to_brace
_skip_to_brace: ## @skip_to_brace
.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 $125, %edi
callq _next_token
testq %rax, %rax
jne LBB0_6
## %bb.1:
leaq L_.str(%rip), %r14
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl $46, %edi
callq _next_token
testq %rax, %rax
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
xorl %eax, %eax
callq _get
movl $61, %edi
callq _expect
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
xorl %eax, %eax
callq _peek
movq %rax, %rbx
xorl %eax, %eax
callq _read_assignment_expr
testq %rax, %rax
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_2 Depth=1
movq %rax, %rdi
callq _node2s
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq _warnt
xorl %eax, %eax
callq _maybe_skip_comma
movl $125, %edi
callq _next_token
testq %rax, %rax
je LBB0_2
LBB0_6:
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "excessive initializer: %s"
.no_dead_strip _skip_to_brace
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function skip_to_brace
_skip_to_brace: ; @skip_to_brace
.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, #125
bl _next_token
cbnz x0, LBB0_6
; %bb.1:
Lloh0:
adrp x19, l_.str@PAGE
Lloh1:
add x19, x19, l_.str@PAGEOFF
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov w0, #46
bl _next_token
cbz x0, LBB0_4
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
bl _get
mov w0, #61
bl _expect
LBB0_4: ; in Loop: Header=BB0_2 Depth=1
bl _peek
mov x20, x0
bl _read_assignment_expr
cbz x0, LBB0_6
; %bb.5: ; in Loop: Header=BB0_2 Depth=1
bl _node2s
mov x2, x0
mov x0, x20
mov x1, x19
bl _warnt
bl _maybe_skip_comma
mov w0, #125
bl _next_token
cbz x0, LBB0_2
LBB0_6:
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 "excessive initializer: %s"
.no_dead_strip _skip_to_brace
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_skip_to_brace.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function skip_type_qualifiers
_skip_type_qualifiers: ## @skip_type_qualifiers
.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 _KCONST@GOTPCREL(%rip), %rbx
movq _KVOLATILE@GOTPCREL(%rip), %r14
movq _KRESTRICT@GOTPCREL(%rip), %r15
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl (%rbx), %edi
callq _next_token
testq %rax, %rax
jne LBB0_1
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl (%r14), %edi
callq _next_token
testq %rax, %rax
jne LBB0_1
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl (%r15), %edi
callq _next_token
testq %rax, %rax
jne LBB0_1
## %bb.4:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _KCONST,4,2 ## @KCONST
.comm _KVOLATILE,4,2 ## @KVOLATILE
.comm _KRESTRICT,4,2 ## @KRESTRICT
.no_dead_strip _skip_type_qualifiers
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function skip_type_qualifiers
_skip_type_qualifiers: ; @skip_type_qualifiers
.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 x19, _KCONST@GOTPAGE
Lloh1:
ldr x19, [x19, _KCONST@GOTPAGEOFF]
Lloh2:
adrp x20, _KVOLATILE@GOTPAGE
Lloh3:
ldr x20, [x20, _KVOLATILE@GOTPAGEOFF]
Lloh4:
adrp x21, _KRESTRICT@GOTPAGE
Lloh5:
ldr x21, [x21, _KRESTRICT@GOTPAGEOFF]
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w0, [x19]
bl _next_token
cbnz x0, LBB0_1
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [x20]
bl _next_token
cbnz x0, LBB0_1
; %bb.3: ; in Loop: Header=BB0_1 Depth=1
ldr w0, [x21]
bl _next_token
cbnz x0, LBB0_1
; %bb.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
ret
.loh AdrpLdrGot Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _KCONST,4,2 ; @KCONST
.comm _KVOLATILE,4,2 ; @KVOLATILE
.comm _KRESTRICT,4,2 ; @KRESTRICT
.no_dead_strip _skip_type_qualifiers
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_skip_type_qualifiers.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function sort_inits
_sort_inits: ## @sort_inits
.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
callq _vec_body
movl %eax, %r14d
movq %rbx, %rdi
callq _vec_len
movq _comp_init@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
movl %r14d, %edi
movl %eax, %esi
movl $8, %edx
popq %rbx
popq %r14
popq %rbp
jmp _qsort ## TAILCALL
.cfi_endproc
## -- End function
.comm _comp_init,4,2 ## @comp_init
.no_dead_strip _sort_inits
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function sort_inits
_sort_inits: ; @sort_inits
.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 _vec_body
mov x20, x0
mov x0, x19
bl _vec_len
mov x1, x0
Lloh0:
adrp x8, _comp_init@GOTPAGE
Lloh1:
ldr x8, [x8, _comp_init@GOTPAGEOFF]
Lloh2:
ldr w3, [x8]
mov x0, x20
mov w2, #8
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _qsort
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _comp_init,4,2 ; @comp_init
.no_dead_strip _sort_inits
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_sort_inits.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function squash_unnamed_struct
_squash_unnamed_struct: ## @squash_unnamed_struct
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movl %edx, -44(%rbp) ## 4-byte Spill
movq %rsi, %r12
movq %rdi, %r15
movl 4(%rsi), %edi
callq _dict_keys
movq %rax, %r13
movq %rax, %rdi
callq _vec_len
testl %eax, %eax
jle LBB0_3
## %bb.1:
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %r13, %rdi
movl %ebx, %esi
callq _vec_get
movq %rax, %r14
movl 4(%r12), %edi
movq %rax, %rsi
callq _dict_get
movl %eax, %edi
callq _copy_type
movl -44(%rbp), %ecx ## 4-byte Reload
addl %ecx, (%rax)
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq _dict_put
incl %ebx
movq %r13, %rdi
callq _vec_len
cmpl %eax, %ebx
jl LBB0_2
LBB0_3:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _squash_unnamed_struct
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function squash_unnamed_struct
_squash_unnamed_struct: ; @squash_unnamed_struct
.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, x2
mov x20, x1
mov x21, x0
ldr w0, [x1, #4]
bl _dict_keys
mov x22, x0
bl _vec_len
cmp w0, #1
b.lt LBB0_3
; %bb.1:
mov w23, #0
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x0, x22
mov x1, x23
bl _vec_get
mov x24, x0
ldr w0, [x20, #4]
mov x1, x24
bl _dict_get
bl _copy_type
mov x2, x0
ldr w8, [x0]
add w8, w8, w19
str w8, [x0]
mov x0, x21
mov x1, x24
bl _dict_put
add w23, w23, #1
mov x0, x22
bl _vec_len
cmp w23, w0
b.lt LBB0_2
LBB0_3:
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
.cfi_endproc
; -- End function
.no_dead_strip _squash_unnamed_struct
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_squash_unnamed_struct.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function type_compatible
_type_compatible: ## @type_compatible
.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 _KIND_STRUCT@GOTPCREL(%rip), %rax
movq (%rax), %rax
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rcx
cmpq %rax, %rcx
je LBB0_9
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpq (%r14), %rcx
jne LBB0_3
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movq 8(%rbx), %rdi
testq %rdi, %rdi
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq 8(%r14), %rsi
testq %rsi, %rsi
jne LBB0_1
LBB0_6:
movq %rbx, %rdi
callq _is_arithtype
movl $1, %r15d
testq %rax, %rax
je LBB0_8
## %bb.7:
movq %r14, %rdi
callq _is_arithtype
testq %rax, %rax
je LBB0_8
## %bb.10:
movq %rbx, %rdi
movq %r14, %rsi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _same_arith_type ## TAILCALL
LBB0_9:
movq %rbx, %rdi
movq %r14, %rsi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _is_same_struct ## TAILCALL
LBB0_3:
xorl %r15d, %r15d
LBB0_8:
movl %r15d, %eax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _KIND_STRUCT,8,3 ## @KIND_STRUCT
.no_dead_strip _type_compatible
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function type_compatible
_type_compatible: ; @type_compatible
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
Lloh0:
adrp x8, _KIND_STRUCT@GOTPAGE
Lloh1:
ldr x8, [x8, _KIND_STRUCT@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
LBB0_1: ; =>This Inner Loop Header: Depth=1
mov x19, x1
mov x20, x0
ldr x9, [x0]
cmp x9, x8
b.eq LBB0_9
; %bb.2: ; in Loop: Header=BB0_1 Depth=1
ldr x10, [x19]
cmp x9, x10
b.ne LBB0_10
; %bb.3: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [x20, #8]
cbz x0, LBB0_5
; %bb.4: ; in Loop: Header=BB0_1 Depth=1
ldr x1, [x19, #8]
cbnz x1, LBB0_1
LBB0_5:
mov x0, x20
bl _is_arithtype
cbz x0, LBB0_8
; %bb.6:
mov x0, x19
bl _is_arithtype
cbz x0, LBB0_8
; %bb.7:
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 _same_arith_type
LBB0_8:
mov w0, #1
b LBB0_11
LBB0_9:
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 _is_same_struct
LBB0_10:
mov w0, #0
LBB0_11:
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 _KIND_STRUCT,8,3 ; @KIND_STRUCT
.no_dead_strip _type_compatible
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_type_compatible.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function update_oldstyle_param_type
_update_oldstyle_param_type: ## @update_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 %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, %rbx
movq %rdi, %r13
movq %rsi, %rdi
callq _vec_len
testl %eax, %eax
jle LBB0_9
## %bb.1:
xorl %r15d, %r15d
movq %rbx, -48(%rbp) ## 8-byte Spill
jmp LBB0_2
.p2align 4, 0x90
LBB0_7: ## in Loop: Header=BB0_2 Depth=1
movl 8(%r14), %esi
leaq L_.str(%rip), %rdi
callq _error
LBB0_8: ## in Loop: Header=BB0_2 Depth=1
incl %r15d
movq -48(%rbp), %rbx ## 8-byte Reload
movq %rbx, %rdi
callq _vec_len
cmpl %eax, %r15d
jge LBB0_9
LBB0_2: ## =>This Loop Header: Depth=1
## Child Loop BB0_5 Depth 2
movq %rbx, %rdi
movl %r15d, %esi
callq _vec_get
movq %rax, %rbx
movq (%rax), %rax
xorl %edi, %edi
movq _AST_DECL@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
sete %dil
callq _assert
movq 16(%rbx), %r14
movq (%r14), %rax
xorl %edi, %edi
movq _AST_LVAR@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
sete %dil
callq _assert
movq %r13, %rdi
callq _vec_len
testl %eax, %eax
jle LBB0_7
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_5: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
movq %r13, %rdi
movl %ebx, %esi
callq _vec_get
movq %rax, %r12
movq (%rax), %rax
xorl %edi, %edi
movq _AST_LVAR@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
sete %dil
callq _assert
movl 8(%r12), %edi
movl 8(%r14), %esi
callq _strcmp
testq %rax, %rax
je LBB0_6
## %bb.4: ## in Loop: Header=BB0_5 Depth=2
incl %ebx
movq %r13, %rdi
callq _vec_len
cmpl %eax, %ebx
jl LBB0_5
jmp LBB0_7
.p2align 4, 0x90
LBB0_6: ## in Loop: Header=BB0_2 Depth=1
movl 12(%r14), %eax
movl %eax, 12(%r12)
jmp LBB0_8
LBB0_9:
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _AST_DECL,8,3 ## @AST_DECL
.comm _AST_LVAR,8,3 ## @AST_LVAR
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "missing parameter: %s"
.no_dead_strip _update_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 update_oldstyle_param_type
_update_oldstyle_param_type: ; @update_oldstyle_param_type
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-96]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 96
stp x26, x25, [sp, #16] ; 16-byte Folded Spill
stp x24, x23, [sp, #32] ; 16-byte Folded Spill
stp x22, x21, [sp, #48] ; 16-byte Folded Spill
stp x20, x19, [sp, #64] ; 16-byte Folded Spill
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
.cfi_offset w23, -56
.cfi_offset w24, -64
.cfi_offset w25, -72
.cfi_offset w26, -80
.cfi_offset w27, -88
.cfi_offset w28, -96
mov x19, x1
mov x20, x0
mov x0, x1
bl _vec_len
cmp w0, #1
b.lt LBB0_9
; %bb.1:
mov w21, #0
Lloh0:
adrp x25, _AST_DECL@GOTPAGE
Lloh1:
ldr x25, [x25, _AST_DECL@GOTPAGEOFF]
Lloh2:
adrp x26, _AST_LVAR@GOTPAGE
Lloh3:
ldr x26, [x26, _AST_LVAR@GOTPAGEOFF]
Lloh4:
adrp x22, l_.str@PAGE
Lloh5:
add x22, x22, l_.str@PAGEOFF
b LBB0_4
LBB0_2: ; in Loop: Header=BB0_4 Depth=1
ldr w1, [x27, #8]
mov x0, x22
bl _error
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
add w21, w21, #1
mov x0, x19
bl _vec_len
cmp w21, w0
b.ge LBB0_9
LBB0_4: ; =>This Loop Header: Depth=1
; Child Loop BB0_6 Depth 2
mov x0, x19
mov x1, x21
bl _vec_get
mov x23, x0
ldr x8, [x0]
ldr x9, [x25]
cmp x8, x9
cset w0, eq
bl _assert
ldr x27, [x23, #16]
ldr x8, [x27]
ldr x9, [x26]
cmp x8, x9
cset w0, eq
bl _assert
mov x0, x20
bl _vec_len
cmp w0, #1
b.lt LBB0_2
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
mov w23, #0
LBB0_6: ; Parent Loop BB0_4 Depth=1
; => This Inner Loop Header: Depth=2
mov x0, x20
mov x1, x23
bl _vec_get
mov x24, x0
ldr x8, [x0]
ldr x9, [x26]
cmp x8, x9
cset w0, eq
bl _assert
ldr w0, [x24, #8]
ldr w1, [x27, #8]
bl _strcmp
cbz x0, LBB0_8
; %bb.7: ; in Loop: Header=BB0_6 Depth=2
add w23, w23, #1
mov x0, x20
bl _vec_len
cmp w23, w0
b.lt LBB0_6
b LBB0_2
LBB0_8: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [x27, #12]
str w8, [x24, #12]
b LBB0_3
LBB0_9:
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 Lloh4, Lloh5
.loh AdrpLdrGot Lloh2, Lloh3
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _AST_DECL,8,3 ; @AST_DECL
.comm _AST_LVAR,8,3 ; @AST_LVAR
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "missing parameter: %s"
.no_dead_strip _update_oldstyle_param_type
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_update_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 update_struct_offset
_update_struct_offset: ## @update_struct_offset
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $24, %rsp
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, -64(%rbp) ## 8-byte Spill
movl $0, -44(%rbp)
movl $0, -48(%rbp)
xorl %ebx, %ebx
xorl %eax, %eax
callq _make_dict
movq %rax, -56(%rbp) ## 8-byte Spill
movq %r13, %rdi
callq _vec_len
testl %eax, %eax
jg LBB0_1
LBB0_15:
leaq -44(%rbp), %rdi
leaq -48(%rbp), %rsi
callq _finish_bitfield
movl -44(%rbp), %ebx
movl (%r12), %esi
movl %ebx, %edi
callq _compute_padding
addl %ebx, %eax
movq -64(%rbp), %rcx ## 8-byte Reload
movl %eax, (%rcx)
movq -56(%rbp), %rax ## 8-byte Reload
addq $24, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
leaq -44(%rbp), %rdi
leaq -48(%rbp), %rsi
callq _finish_bitfield
movl -44(%rbp), %edi
movl (%r14), %esi
callq _compute_padding
addl %eax, -44(%rbp)
movl $0, -48(%rbp)
LBB0_14: ## in Loop: Header=BB0_1 Depth=1
incl %ebx
movq %r13, %rdi
callq _vec_len
cmpl %eax, %ebx
jge LBB0_15
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq %r13, %rdi
movl %ebx, %esi
callq _vec_get
movq (%rax), %r15
movq 8(%rax), %r14
testq %r15, %r15
je LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl (%r12), %edi
movl (%r14), %esi
callq _MAX
movl %eax, (%r12)
jmp LBB0_3
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq 8(%r14), %rax
movq _KIND_STRUCT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_3
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
leaq -44(%rbp), %rdi
leaq -48(%rbp), %rsi
callq _finish_bitfield
movl -44(%rbp), %edi
movl (%r14), %esi
callq _compute_padding
addl -44(%rbp), %eax
movl %eax, -44(%rbp)
movq -56(%rbp), %rdi ## 8-byte Reload
movq %r14, %rsi
movl %eax, %edx
callq _squash_unnamed_struct
movl 16(%r14), %eax
addl %eax, -44(%rbp)
jmp LBB0_14
.p2align 4, 0x90
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movq 24(%r14), %rsi
testq %rsi, %rsi
je LBB0_4
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
jle LBB0_11
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movslq 16(%r14), %rdi
shlq $3, %rdi
movl -44(%rbp), %ecx
movl -48(%rbp), %r8d
leal (%r8,%rcx,8), %eax
cltd
idivl %edi
movslq %edx, %rax
subq %rax, %rdi
movl %r8d, %eax
cmpq %rdi, %rsi
jle LBB0_10
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
leaq -44(%rbp), %rdi
leaq -48(%rbp), %rsi
callq _finish_bitfield
movl -44(%rbp), %edi
movl (%r14), %esi
callq _compute_padding
movl %eax, %ecx
addl -44(%rbp), %ecx
movl %ecx, -44(%rbp)
movq 24(%r14), %rsi
xorl %eax, %eax
movl -48(%rbp), %r8d
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movl %ecx, 32(%r14)
movl %eax, 36(%r14)
addl %r8d, %esi
movl %esi, -48(%rbp)
testq %r15, %r15
jne LBB0_13
jmp LBB0_14
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
leaq -44(%rbp), %rdi
leaq -48(%rbp), %rsi
callq _finish_bitfield
movl -44(%rbp), %edi
movl (%r14), %esi
callq _compute_padding
addl -44(%rbp), %eax
movl %eax, 32(%r14)
addl 16(%r14), %eax
movl %eax, -44(%rbp)
testq %r15, %r15
je LBB0_14
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rdi ## 8-byte Reload
movq %r15, %rsi
movq %r14, %rdx
callq _dict_put
jmp LBB0_14
.cfi_endproc
## -- End function
.comm _KIND_STRUCT,8,3 ## @KIND_STRUCT
.no_dead_strip _update_struct_offset
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function update_struct_offset
_update_struct_offset: ; @update_struct_offset
.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 x22, x2
mov x21, x1
mov x19, x0
str xzr, [sp, #8]
bl _make_dict
mov x20, x0
mov x0, x22
bl _vec_len
cmp w0, #1
b.lt LBB0_16
; %bb.1:
mov w23, #0
Lloh0:
adrp x26, _KIND_STRUCT@GOTPAGE
Lloh1:
ldr x26, [x26, _KIND_STRUCT@GOTPAGEOFF]
b LBB0_4
LBB0_2: ; in Loop: Header=BB0_4 Depth=1
add x0, sp, #12
add x1, sp, #8
bl _finish_bitfield
ldr w0, [sp, #12]
ldr w1, [x24]
bl _compute_padding
ldr w8, [sp, #12]
add w8, w8, w0
stp wzr, w8, [sp, #8]
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
add w23, w23, #1
mov x0, x22
bl _vec_len
cmp w23, w0
b.ge LBB0_16
LBB0_4: ; =>This Inner Loop Header: Depth=1
mov x0, x22
mov x1, x23
bl _vec_get
ldp x25, x24, [x0]
cbz x25, LBB0_6
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldr w0, [x21]
ldr w1, [x24]
bl _MAX
str w0, [x21]
b LBB0_8
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x24, #8]
ldr x9, [x26]
cmp x8, x9
b.ne LBB0_8
; %bb.7: ; in Loop: Header=BB0_4 Depth=1
add x0, sp, #12
add x1, sp, #8
bl _finish_bitfield
ldr w0, [sp, #12]
ldr w1, [x24]
bl _compute_padding
ldr w8, [sp, #12]
add w2, w8, w0
str w2, [sp, #12]
mov x0, x20
mov x1, x24
bl _squash_unnamed_struct
ldr w8, [x24, #16]
ldr w9, [sp, #12]
add w8, w9, w8
str w8, [sp, #12]
b LBB0_3
LBB0_8: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x24, #24]
cbz x8, LBB0_2
; %bb.9: ; in Loop: Header=BB0_4 Depth=1
cmp x8, #1
b.lt LBB0_12
; %bb.10: ; in Loop: Header=BB0_4 Depth=1
ldrsw x9, [x24, #16]
lsl x11, x9, #3
ldp w10, w9, [sp, #8]
add w12, w10, w9, lsl #3
sdiv w13, w12, w11
msub w12, w13, w11, w12
sub x11, x11, w12, sxtw
cmp x8, x11
b.le LBB0_13
; %bb.11: ; in Loop: Header=BB0_4 Depth=1
add x0, sp, #12
add x1, sp, #8
bl _finish_bitfield
ldr w0, [sp, #12]
ldr w1, [x24]
bl _compute_padding
mov w11, #0
ldp w10, w8, [sp, #8]
add w9, w8, w0
str w9, [sp, #12]
ldr x8, [x24, #24]
b LBB0_14
LBB0_12: ; in Loop: Header=BB0_4 Depth=1
add x0, sp, #12
add x1, sp, #8
bl _finish_bitfield
ldr w0, [sp, #12]
ldr w1, [x24]
bl _compute_padding
ldr w8, [sp, #12]
ldr w9, [x24, #16]
add w8, w8, w0
add w9, w9, w8
str w8, [x24, #32]
str w9, [sp, #12]
cbnz x25, LBB0_15
b LBB0_3
LBB0_13: ; in Loop: Header=BB0_4 Depth=1
mov x11, x10
LBB0_14: ; in Loop: Header=BB0_4 Depth=1
stp w9, w11, [x24, #32]
add w8, w10, w8
str w8, [sp, #8]
cbz x25, LBB0_3
LBB0_15: ; in Loop: Header=BB0_4 Depth=1
mov x0, x20
mov x1, x25
mov x2, x24
bl _dict_put
b LBB0_3
LBB0_16:
add x0, sp, #12
add x1, sp, #8
bl _finish_bitfield
ldr w22, [sp, #12]
ldr w1, [x21]
mov x0, x22
bl _compute_padding
add w8, w0, w22
str w8, [x19]
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
add sp, sp, #96
ret
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _KIND_STRUCT,8,3 ; @KIND_STRUCT
.no_dead_strip _update_struct_offset
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_update_struct_offset.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function update_union_offset
_update_union_offset: ## @update_union_offset
.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
movq %rdx, %rbx
movq %rsi, -72(%rbp) ## 8-byte Spill
movq %rdi, -80(%rbp) ## 8-byte Spill
xorl %r13d, %r13d
xorl %eax, %eax
callq _make_dict
movq %rax, -56(%rbp) ## 8-byte Spill
movq %rbx, %rdi
callq _vec_len
testl %eax, %eax
jle LBB0_10
## %bb.1:
xorl %r13d, %r13d
xorl %r14d, %r14d
movq %rbx, -64(%rbp) ## 8-byte Spill
jmp LBB0_2
LBB0_4: ## in Loop: Header=BB0_2 Depth=1
movq -56(%rbp), %rdi ## 8-byte Reload
movq %r15, %rsi
xorl %edx, %edx
callq _squash_unnamed_struct
movq -64(%rbp), %rbx ## 8-byte Reload
movl -44(%rbp), %r13d ## 4-byte Reload
.p2align 4, 0x90
LBB0_9: ## in Loop: Header=BB0_2 Depth=1
incl %r14d
movq %rbx, %rdi
callq _vec_len
cmpl %eax, %r14d
jge LBB0_10
LBB0_2: ## =>This Inner Loop Header: Depth=1
movq %rbx, %rdi
movl %r14d, %esi
callq _vec_get
movq (%rax), %r12
movq 8(%rax), %r15
movl 36(%r15), %esi
movl %r13d, %edi
callq _MAX
movl %eax, -44(%rbp) ## 4-byte Spill
movq -72(%rbp), %r13 ## 8-byte Reload
movl (%r13), %edi
movl 32(%r15), %esi
callq _MAX
movl %eax, (%r13)
testq %r12, %r12
jne LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movq (%r15), %rax
movq _KIND_STRUCT@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_4
LBB0_5: ## in Loop: Header=BB0_2 Depth=1
movq $0, 24(%r15)
cmpq $0, 8(%r15)
js LBB0_7
## %bb.6: ## in Loop: Header=BB0_2 Depth=1
movq $0, 16(%r15)
LBB0_7: ## in Loop: Header=BB0_2 Depth=1
testq %r12, %r12
movq -64(%rbp), %rbx ## 8-byte Reload
movl -44(%rbp), %r13d ## 4-byte Reload
je LBB0_9
## %bb.8: ## in Loop: Header=BB0_2 Depth=1
movq -56(%rbp), %rdi ## 8-byte Reload
movq %r12, %rsi
movq %r15, %rdx
callq _dict_put
jmp LBB0_9
LBB0_10:
movq -72(%rbp), %rax ## 8-byte Reload
movl (%rax), %esi
movl %r13d, %edi
callq _compute_padding
addl %r13d, %eax
movq -80(%rbp), %rcx ## 8-byte Reload
movl %eax, (%rcx)
movq -56(%rbp), %rax ## 8-byte Reload
addq $40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _KIND_STRUCT,8,3 ## @KIND_STRUCT
.no_dead_strip _update_union_offset
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function update_union_offset
_update_union_offset: ; @update_union_offset
.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 x22, x2
mov x21, x1
mov x19, x0
bl _make_dict
mov x20, x0
mov x0, x22
bl _vec_len
cmp w0, #1
b.lt LBB0_10
; %bb.1:
mov w23, #0
mov w24, #0
Lloh0:
adrp x27, _KIND_STRUCT@GOTPAGE
Lloh1:
ldr x27, [x27, _KIND_STRUCT@GOTPAGEOFF]
b LBB0_4
LBB0_2: ; in Loop: Header=BB0_4 Depth=1
mov x0, x20
mov x1, x25
mov w2, #0
bl _squash_unnamed_struct
LBB0_3: ; in Loop: Header=BB0_4 Depth=1
add w24, w24, #1
mov x0, x22
bl _vec_len
cmp w24, w0
b.ge LBB0_11
LBB0_4: ; =>This Inner Loop Header: Depth=1
mov x0, x22
mov x1, x24
bl _vec_get
ldp x26, x25, [x0]
ldr w1, [x25, #36]
mov x0, x23
bl _MAX
mov x23, x0
ldr w0, [x21]
ldr w1, [x25, #32]
bl _MAX
str w0, [x21]
cbnz x26, LBB0_6
; %bb.5: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [x25]
ldr x9, [x27]
cmp x8, x9
b.eq LBB0_2
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
str xzr, [x25, #24]
ldr x8, [x25, #8]
tbnz x8, #63, LBB0_8
; %bb.7: ; in Loop: Header=BB0_4 Depth=1
str xzr, [x25, #16]
LBB0_8: ; in Loop: Header=BB0_4 Depth=1
cbz x26, LBB0_3
; %bb.9: ; in Loop: Header=BB0_4 Depth=1
mov x0, x20
mov x1, x26
mov x2, x25
bl _dict_put
b LBB0_3
LBB0_10:
mov w23, #0
LBB0_11:
ldr w1, [x21]
mov x0, x23
bl _compute_padding
add w8, w0, w23
str w8, [x19]
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
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _KIND_STRUCT,8,3 ; @KIND_STRUCT
.no_dead_strip _update_union_offset
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_update_union_offset.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function usual_arith_conv
_usual_arith_conv: ## @usual_arith_conv
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %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, %rbx
movq %rdi, %r12
callq _is_arithtype
movl %eax, %edi
callq _assert
movq %rbx, %rdi
callq _is_arithtype
movl %eax, %edi
callq _assert
movq (%r12), %rax
cmpq (%rbx), %rax
movq %rbx, %r14
cmovlq %r12, %r14
cmovlq %rbx, %r12
movq %r12, %rdi
callq _is_flotype
testq %rax, %rax
jne LBB0_8
## %bb.1:
movq %r12, %rdi
callq _is_inttype
xorl %r15d, %r15d
movl $0, %edi
testq %rax, %rax
je LBB0_3
## %bb.2:
movq 8(%r12), %rax
movq _type_int@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
xorl %edi, %edi
cmpq (%rcx), %rax
setge %dil
LBB0_3:
callq _assert
movq %r14, %rdi
callq _is_inttype
testq %rax, %rax
je LBB0_5
## %bb.4:
movq 8(%r14), %rax
movq _type_int@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
xorl %r15d, %r15d
cmpq (%rcx), %rax
setge %r15b
LBB0_5:
movl %r15d, %edi
callq _assert
movq 8(%r14), %rax
cmpq %rax, 8(%r12)
jg LBB0_8
## %bb.6:
sete %al
movzbl %al, %edi
callq _assert
movq 16(%r12), %rax
cmpq 16(%r14), %rax
je LBB0_8
## %bb.7:
movq %r12, %rdi
callq _copy_type
movq %rax, %r12
movq $1, 16(%rax)
LBB0_8:
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _type_int,8,3 ## @type_int
.no_dead_strip _usual_arith_conv
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function usual_arith_conv
_usual_arith_conv: ; @usual_arith_conv
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x1
mov x21, x0
bl _is_arithtype
bl _assert
mov x0, x19
bl _is_arithtype
bl _assert
ldr x8, [x21]
ldr x9, [x19]
cmp x8, x9
csel x20, x21, x19, lt
csel x19, x19, x21, lt
mov x0, x19
bl _is_flotype
cbnz x0, LBB0_8
; %bb.1:
mov x0, x19
bl _is_inttype
Lloh0:
adrp x21, _type_int@GOTPAGE
Lloh1:
ldr x21, [x21, _type_int@GOTPAGEOFF]
cbz x0, LBB0_3
; %bb.2:
ldr x8, [x19, #8]
ldr x9, [x21]
ldr x9, [x9]
cmp x8, x9
cset w0, ge
LBB0_3:
bl _assert
mov x0, x20
bl _is_inttype
cbz x0, LBB0_5
; %bb.4:
ldr x8, [x20, #8]
ldr x9, [x21]
ldr x9, [x9]
cmp x8, x9
cset w0, ge
LBB0_5:
bl _assert
ldr x8, [x19, #8]
ldr x9, [x20, #8]
cmp x8, x9
b.gt LBB0_8
; %bb.6:
cset w0, eq
bl _assert
ldr x8, [x19, #16]
ldr x9, [x20, #16]
cmp x8, x9
b.eq LBB0_8
; %bb.7:
mov x0, x19
bl _copy_type
mov x19, x0
mov w8, #1
str x8, [x0, #16]
LBB0_8:
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
.loh AdrpLdrGot Lloh0, Lloh1
.cfi_endproc
; -- End function
.comm _type_int,8,3 ; @type_int
.no_dead_strip _usual_arith_conv
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_usual_arith_conv.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function valid_pointer_binop
_valid_pointer_binop: ## @valid_pointer_binop
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
## kill: def $edi killed $edi def $rdi
movl $1, %eax
leal -128(%rdi), %ecx
cmpl $4, %ecx
jb LBB0_4
## %bb.1:
cmpl $62, %edi
ja LBB0_3
## %bb.2:
movl %edi, %ecx
movabsq $5764642707406323712, %rdx ## imm = 0x5000200000000000
btq %rcx, %rdx
jae LBB0_3
LBB0_4:
popq %rbp
retq
LBB0_3:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _valid_pointer_binop
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function valid_pointer_binop
_valid_pointer_binop: ; @valid_pointer_binop
.cfi_startproc
; %bb.0:
mov x8, x0
mov w0, #1
sub w9, w8, #128
cmp w9, #4
b.lo LBB0_3
; %bb.1:
cmp w8, #62
b.hi LBB0_4
; %bb.2:
mov w8, w8
mov w9, #1
lsl x8, x9, x8
mov x9, #35184372088832
movk x9, #20480, lsl #48
tst x8, x9
b.eq LBB0_4
LBB0_3:
ret
LBB0_4:
mov w0, #0
ret
.cfi_endproc
; -- End function
.no_dead_strip _valid_pointer_binop
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_valid_pointer_binop.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function wrap
_wrap: ## @wrap
.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, %rbx
movq %rdi, %r14
movl (%rsi), %esi
callq _same_arith_type
testq %rax, %rax
je LBB0_2
## %bb.1:
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
LBB0_2:
movq _AST_CONV@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmp _ast_uop ## TAILCALL
.cfi_endproc
## -- End function
.comm _AST_CONV,4,2 ## @AST_CONV
.no_dead_strip _wrap
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function wrap
_wrap: ; @wrap
.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
ldr w1, [x1]
bl _same_arith_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
ret
LBB0_2:
Lloh0:
adrp x8, _AST_CONV@GOTPAGE
Lloh1:
ldr x8, [x8, _AST_CONV@GOTPAGEOFF]
Lloh2:
ldr w0, [x8]
mov x1, x20
mov x2, x19
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _ast_uop
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _AST_CONV,4,2 ; @AST_CONV
.no_dead_strip _wrap
.subsections_via_symbols
|
AnghaBench/8cc/extr_parse.c_wrap.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function clean
_clean: ## @clean
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdi, %rbx
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -48(%rbp)
xorl %edi, %edi
cmpb $47, (%rbx)
sete %dil
callq _assert
movq _PATH_MAX@GOTPCREL(%rip), %rax
movl (%rax), %eax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq %rsp, %r14
movb $47, (%r14)
movl $1, %eax
leaq L_.str(%rip), %r15
leaq L_.str.1(%rip), %r12
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_2 Depth 2
## Child Loop BB0_7 Depth 2
## Child Loop BB0_11 Depth 2
movq %rax, %r13
jmp LBB0_2
.p2align 4, 0x90
LBB0_3: ## in Loop: Header=BB0_2 Depth=2
addq %rcx, %rbx
LBB0_2: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl $1, %ecx
cmpb $47, (%rbx)
je LBB0_3
## %bb.4: ## in Loop: Header=BB0_2 Depth=2
movq %r15, %rdi
movq %rbx, %rsi
movl $2, %edx
callq _memcmp
movl $2, %ecx
testl %eax, %eax
je LBB0_3
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq %r12, %rdi
movq %rbx, %rsi
movl $3, %edx
callq _memcmp
testl %eax, %eax
je LBB0_10
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
incq %rbx
incq %r13
movq %r13, %rax
.p2align 4, 0x90
LBB0_7: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movzbl -1(%rbx), %ecx
testb %cl, %cl
je LBB0_14
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
cmpb $47, %cl
je LBB0_13
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movb %cl, -1(%r14,%rax)
incq %rbx
incq %rax
jmp LBB0_7
.p2align 4, 0x90
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
addq $3, %rbx
movl $1, %eax
cmpq $1, %r13
je LBB0_1
.p2align 4, 0x90
LBB0_11: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpb $47, -2(%r14,%r13)
leaq -1(%r13), %r13
jne LBB0_11
## %bb.12: ## in Loop: Header=BB0_1 Depth=1
movq %r13, %rax
jmp LBB0_1
.p2align 4, 0x90
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
movb $47, -1(%r14,%rax)
jmp LBB0_1
LBB0_14:
movb $0, -1(%r14,%rax)
movq %r14, %rdi
callq _strdup
movq ___stack_chk_guard@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq -48(%rbp), %rcx
jne LBB0_16
## %bb.15:
leaq -40(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
LBB0_16:
callq ___stack_chk_fail
.cfi_endproc
## -- End function
.comm _PATH_MAX,4,2 ## @PATH_MAX
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "./"
L_.str.1: ## @.str.1
.asciz "../"
.no_dead_strip _clean
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function clean
_clean: ; @clean
.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
sub sp, sp, #16
mov x19, x0
Lloh0:
adrp x8, ___stack_chk_guard@GOTPAGE
Lloh1:
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
ldr x8, [x8]
stur x8, [x29, #-72]
ldrb w8, [x0]
cmp w8, #47
cset w0, eq
bl _assert
Lloh3:
adrp x8, _PATH_MAX@GOTPAGE
Lloh4:
ldr x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
ldr w8, [x8]
mov x9, x8
Lloh6:
adrp x16, ___chkstk_darwin@GOTPAGE
Lloh7:
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
mov x9, sp
add x8, x8, #15
and x8, x8, #0x1fffffff0
sub x20, x9, x8
mov sp, x20
mov w23, #47
mov x24, x20
strb w23, [x24], #-2
mov w8, #1
Lloh8:
adrp x21, l_.str@PAGE
Lloh9:
add x21, x21, l_.str@PAGEOFF
Lloh10:
adrp x22, l_.str.1@PAGE
Lloh11:
add x22, x22, l_.str.1@PAGEOFF
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
; Child Loop BB0_7 Depth 2
; Child Loop BB0_11 Depth 2
mov x25, x8
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=2
mov w8, #1
add x19, x19, x8
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldrb w8, [x19]
cmp w8, #47
b.eq LBB0_2
; %bb.4: ; in Loop: Header=BB0_3 Depth=2
mov x0, x21
mov x1, x19
mov w2, #2
bl _memcmp
cbnz w0, LBB0_6
; %bb.5: ; in Loop: Header=BB0_3 Depth=2
mov w8, #2
add x19, x19, x8
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
mov x0, x22
mov x1, x19
mov w2, #3
bl _memcmp
cbz w0, LBB0_10
LBB0_7: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
add x19, x19, #1
ldurb w8, [x19, #-1]
cbz w8, LBB0_14
; %bb.8: ; in Loop: Header=BB0_7 Depth=2
cmp w8, #47
b.eq LBB0_13
; %bb.9: ; in Loop: Header=BB0_7 Depth=2
strb w8, [x20, x25]
add x25, x25, #1
b LBB0_7
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
add x19, x19, #3
mov w8, #1
cmp x25, #1
b.eq LBB0_1
LBB0_11: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldrb w8, [x24, x25]
sub x25, x25, #1
cmp w8, #47
b.ne LBB0_11
; %bb.12: ; in Loop: Header=BB0_1 Depth=1
mov x8, x25
b LBB0_1
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
add x8, x25, #1
strb w23, [x20, x25]
b LBB0_1
LBB0_14:
strb wzr, [x20, x25]
mov x0, x20
bl _strdup
ldur x8, [x29, #-72]
Lloh12:
adrp x9, ___stack_chk_guard@GOTPAGE
Lloh13:
ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
ldr x9, [x9]
cmp x9, x8
b.ne LBB0_16
; %bb.15:
sub sp, x29, #64
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_16:
bl ___stack_chk_fail
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpLdrGot Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.loh AdrpLdrGotLdr Lloh12, Lloh13, Lloh14
.cfi_endproc
; -- End function
.comm _PATH_MAX,4,2 ; @PATH_MAX
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "./"
l_.str.1: ; @.str.1
.asciz "../"
.no_dead_strip _clean
.subsections_via_symbols
|
AnghaBench/8cc/extr_path.c_clean.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _set_add ## -- Begin function set_add
.p2align 4, 0x90
_set_add: ## @set_add
.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, 8(%rax)
movq %r14, (%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 _set_add ; -- Begin function set_add
.p2align 2
_set_add: ; @set_add
.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 x19, x20, [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_set.c_set_add.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _set_intersection ## -- Begin function set_intersection
.p2align 4, 0x90
_set_intersection: ## @set_intersection
.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
testq %rdi, %rdi
je LBB0_1
## %bb.2:
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
jmp LBB0_3
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_3 Depth=1
movq 8(%rbx), %rbx
testq %rbx, %rbx
je LBB0_6
LBB0_3: ## =>This Inner Loop Header: Depth=1
movl (%rbx), %esi
movq %r14, %rdi
callq _set_has
testq %rax, %rax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl (%rbx), %esi
movq %r15, %rdi
callq _set_add
movq %rax, %r15
jmp LBB0_5
LBB0_1:
xorl %r15d, %r15d
LBB0_6:
movq %r15, %rax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
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 _set_intersection ; -- Begin function set_intersection
.p2align 2
_set_intersection: ; @set_intersection
.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
cbz x0, LBB0_5
; %bb.1:
mov x19, x1
mov x20, x0
mov x21, #0
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
ldr x20, [x20, #8]
cbz x20, LBB0_6
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w1, [x20]
mov x0, x19
bl _set_has
cbz x0, LBB0_2
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
ldr w1, [x20]
mov x0, x21
bl _set_add
mov x21, x0
b LBB0_2
LBB0_5:
mov x21, #0
LBB0_6:
mov x0, x21
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_set.c_set_intersection.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _set_union ## -- Begin function set_union
.p2align 4, 0x90
_set_union: ## @set_union
.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 %rsi, %r14
testq %rdi, %rdi
je LBB0_1
## %bb.2:
movq %rdi, %rbx
movq %r14, %r15
jmp LBB0_3
.p2align 4, 0x90
LBB0_5: ## in Loop: Header=BB0_3 Depth=1
movq 8(%rbx), %rbx
testq %rbx, %rbx
je LBB0_6
LBB0_3: ## =>This Inner Loop Header: Depth=1
movl (%rbx), %esi
movq %r14, %rdi
callq _set_has
testl %eax, %eax
jne LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl (%rbx), %esi
movq %r15, %rdi
callq _set_add
movq %rax, %r15
jmp LBB0_5
LBB0_1:
movq %r14, %r15
LBB0_6:
movq %r15, %rax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
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 _set_union ; -- Begin function set_union
.p2align 2
_set_union: ; @set_union
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x1
cbz x0, LBB0_5
; %bb.1:
mov x20, x0
mov x21, x19
b LBB0_3
LBB0_2: ; in Loop: Header=BB0_3 Depth=1
ldr x20, [x20, #8]
cbz x20, LBB0_6
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w1, [x20]
mov x0, x19
bl _set_has
cbnz w0, LBB0_2
; %bb.4: ; in Loop: Header=BB0_3 Depth=1
ldr w1, [x20]
mov x0, x21
bl _set_add
mov x21, x0
b LBB0_2
LBB0_5:
mov x21, x19
LBB0_6:
mov x0, x21
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_set.c_set_union.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function assert_null2
_assert_null2: ## @assert_null2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testq %rsi, %rsi
je LBB0_1
## %bb.2:
movl %edi, %eax
leaq L_.str(%rip), %rdi
movl %eax, %esi
popq %rbp
jmp _error ## TAILCALL
LBB0_1:
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d: Null expected"
.no_dead_strip _assert_null2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function assert_null2
_assert_null2: ; @assert_null2
.cfi_startproc
; %bb.0:
cbz x1, LBB0_2
; %bb.1:
mov x8, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
mov x1, x8
b _error
LBB0_2:
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d: Null expected"
.no_dead_strip _assert_null2
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_assert_null2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function assert_string2
_assert_string2: ## @assert_string2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r14
movq %rsi, %rbx
movl %edi, %r15d
movq %rsi, %rdi
movq %rdx, %rsi
callq _strcmp
testq %rax, %rax
je LBB0_1
## %bb.2:
leaq L_.str(%rip), %rdi
movl %r15d, %esi
movq %rbx, %rdx
movq %r14, %rcx
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _error ## TAILCALL
LBB0_1:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d: Expected \"%s\" but got \"%s\""
.no_dead_strip _assert_string2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function assert_string2
_assert_string2: ; @assert_string2
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x2
mov x20, x1
mov x21, x0
mov x0, x1
mov x1, x2
bl _strcmp
cbz x0, LBB0_2
; %bb.1:
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
mov x1, x21
mov x2, x20
mov x3, 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 _error
LBB0_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
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d: Expected \"%s\" but got \"%s\""
.no_dead_strip _assert_string2
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_assert_string2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function assert_true2
_assert_true2: ## @assert_true2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testl %edx, %edx
je LBB0_2
## %bb.1:
popq %rbp
retq
LBB0_2:
movq %rsi, %rax
movl %edi, %esi
leaq L_.str(%rip), %rdi
movq %rax, %rdx
popq %rbp
jmp _error ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d: assert_true: %s"
.no_dead_strip _assert_true2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function assert_true2
_assert_true2: ; @assert_true2
.cfi_startproc
; %bb.0:
cbz w2, LBB0_2
; %bb.1:
ret
LBB0_2:
mov x8, x1
mov x1, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
mov x2, x8
b _error
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d: assert_true: %s"
.no_dead_strip _assert_true2
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_assert_true2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get_base_file ## -- Begin function get_base_file
.p2align 4, 0x90
_get_base_file: ## @get_base_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get_base_file ; -- Begin function get_base_file
.p2align 2
_get_base_file: ; @get_base_file
.cfi_startproc
; %bb.0:
mov x0, #0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_get_base_file.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
callq _test_buf
xorl %eax, %eax
callq _test_list
xorl %eax, %eax
callq _test_map
xorl %eax, %eax
callq _test_map_stack
xorl %eax, %eax
callq _test_dict
xorl %eax, %eax
callq _test_set
xorl %eax, %eax
callq _test_path
xorl %eax, %eax
callq _test_file
leaq L_str(%rip), %rdi
callq _puts
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_str: ## @str
.asciz "Passed"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
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 _test_buf
bl _test_list
bl _test_map
bl _test_map_stack
bl _test_dict
bl _test_set
bl _test_path
bl _test_file
Lloh0:
adrp x0, l_str@PAGE
Lloh1:
add x0, x0, l_str@PAGEOFF
bl _puts
mov w0, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_str: ; @str
.asciz "Passed"
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_main.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_buf
_test_buf: ## @test_buf
.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 _make_buffer
movq %rax, %rbx
movq %rax, %rdi
movl $97, %esi
callq _buf_write
movq %rbx, %rdi
movl $98, %esi
callq _buf_write
movq %rbx, %rdi
xorl %esi, %esi
callq _buf_write
movq %rbx, %rdi
callq _buf_body
leaq L_.str(%rip), %rdi
movl %eax, %esi
callq _assert_string
xorl %eax, %eax
callq _make_buffer
movq %rax, %rbx
movq %rax, %rdi
movl $46, %esi
callq _buf_write
leaq L_.str.1(%rip), %rsi
leaq L_.str.2(%rip), %rdx
movq %rbx, %rdi
callq _buf_printf
movq %rbx, %rdi
callq _buf_body
leaq L_.str.3(%rip), %rdi
movl %eax, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _assert_string ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "ab"
L_.str.1: ## @.str.1
.asciz "%s"
L_.str.2: ## @.str.2
.asciz "0123456789"
L_.str.3: ## @.str.3
.asciz ".0123456789"
.no_dead_strip _test_buf
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_buf
_test_buf: ; @test_buf
.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 _make_buffer
mov x19, x0
mov w1, #97
bl _buf_write
mov x0, x19
mov w1, #98
bl _buf_write
mov x0, x19
mov w1, #0
bl _buf_write
mov x0, x19
bl _buf_body
mov x1, x0
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _assert_string
bl _make_buffer
mov x19, x0
mov w1, #46
bl _buf_write
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
Lloh4:
adrp x2, l_.str.2@PAGE
Lloh5:
add x2, x2, l_.str.2@PAGEOFF
mov x0, x19
bl _buf_printf
mov x0, x19
bl _buf_body
mov x1, x0
Lloh6:
adrp x0, l_.str.3@PAGE
Lloh7:
add x0, x0, l_.str.3@PAGEOFF
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _assert_string
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "ab"
l_.str.1: ; @.str.1
.asciz "%s"
l_.str.2: ; @.str.2
.asciz "0123456789"
l_.str.3: ; @.str.3
.asciz ".0123456789"
.no_dead_strip _test_buf
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_test_buf.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_dict
_test_dict: ## @test_dict
.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_dict
movq %rax, %rbx
leaq L_.str(%rip), %r14
movq %rax, %rdi
movq %r14, %rsi
callq _dict_get
movq %rax, %rdi
callq _assert_null
movl $50, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq _dict_put
leaq L_.str.1(%rip), %r15
movl $70, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq _dict_put
movq %rbx, %rdi
movq %r14, %rsi
callq _dict_get
movl $50, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
movq %r15, %rsi
callq _dict_get
movl $70, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
callq _dict_keys
movl %eax, %edi
callq _vec_len
movl $2, %edi
movq %rax, %rsi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _assert_int ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "abc"
L_.str.1: ## @.str.1
.asciz "xyz"
.no_dead_strip _test_dict
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_dict
_test_dict: ; @test_dict
.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_dict
mov x19, x0
Lloh0:
adrp x20, l_.str@PAGE
Lloh1:
add x20, x20, l_.str@PAGEOFF
mov x1, x20
bl _dict_get
bl _assert_null
mov x0, x19
mov x1, x20
mov w2, #50
bl _dict_put
Lloh2:
adrp x21, l_.str.1@PAGE
Lloh3:
add x21, x21, l_.str.1@PAGEOFF
mov x0, x19
mov x1, x21
mov w2, #70
bl _dict_put
mov x0, x19
mov x1, x20
bl _dict_get
mov x1, x0
mov w0, #50
bl _assert_int
mov x0, x19
mov x1, x21
bl _dict_get
mov x1, x0
mov w0, #70
bl _assert_int
mov x0, x19
bl _dict_keys
bl _vec_len
mov x1, x0
mov w0, #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 _assert_int
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "abc"
l_.str.1: ; @.str.1
.asciz "xyz"
.no_dead_strip _test_dict
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_test_dict.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_file
_test_file: ## @test_file
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _make_file_string
movl %eax, %edi
callq _stream_push
xorl %eax, %eax
callq _readc
movl $97, %edi
movq %rax, %rsi
callq _assert_int
xorl %eax, %eax
callq _readc
movl $98, %edi
movq %rax, %rsi
callq _assert_int
movl $98, %edi
callq _unreadc
movl $97, %edi
callq _unreadc
xorl %eax, %eax
callq _readc
movl $97, %edi
movq %rax, %rsi
callq _assert_int
xorl %eax, %eax
callq _readc
movl $98, %edi
movq %rax, %rsi
callq _assert_int
xorl %eax, %eax
callq _readc
movl $99, %edi
movq %rax, %rsi
callq _assert_int
xorl %eax, %eax
callq _readc
movl $10, %edi
movq %rax, %rsi
callq _assert_int
movl $10, %edi
callq _unreadc
xorl %eax, %eax
callq _readc
movl $10, %edi
movq %rax, %rsi
callq _assert_int
xorl %eax, %eax
callq _readc
shrq $63, %rax
movl %eax, %edi
popq %rbp
jmp _assert_true ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "abc"
.no_dead_strip _test_file
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_file
_test_file: ; @test_file
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _make_file_string
bl _stream_push
bl _readc
mov x1, x0
mov w0, #97
bl _assert_int
bl _readc
mov x1, x0
mov w0, #98
bl _assert_int
mov w0, #98
bl _unreadc
mov w0, #97
bl _unreadc
bl _readc
mov x1, x0
mov w0, #97
bl _assert_int
bl _readc
mov x1, x0
mov w0, #98
bl _assert_int
bl _readc
mov x1, x0
mov w0, #99
bl _assert_int
bl _readc
mov x1, x0
mov w0, #10
bl _assert_int
mov w0, #10
bl _unreadc
bl _readc
mov x1, x0
mov w0, #10
bl _assert_int
bl _readc
lsr x0, x0, #63
; kill: def $w0 killed $w0 killed $x0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _assert_true
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "abc"
.no_dead_strip _test_file
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_test_file.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_list
_test_list: ## @test_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 %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
xorl %eax, %eax
callq _make_vector
movq %rax, %r14
movq %rax, %rdi
callq _vec_len
xorl %edi, %edi
movq %rax, %rsi
callq _assert_int
movl $1, %esi
movq %r14, %rdi
callq _vec_push
movq %r14, %rdi
callq _vec_len
movl $1, %edi
movq %rax, %rsi
callq _assert_int
movl $2, %esi
movq %r14, %rdi
callq _vec_push
movq %r14, %rdi
callq _vec_len
movl $2, %edi
movq %rax, %rsi
callq _assert_int
movq %r14, %rdi
callq _vec_copy
movq %rax, %rbx
movq %rax, %rdi
callq _vec_len
movl $2, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
xorl %esi, %esi
callq _vec_get
movl $1, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
movl $1, %esi
callq _vec_get
movl $2, %edi
movq %rax, %rsi
callq _assert_int
movq %r14, %rdi
callq _vec_reverse
movq %rax, %rbx
movq %rax, %rdi
callq _vec_len
movl $2, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
callq _vec_pop
movl $1, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
callq _vec_len
movl $1, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
callq _vec_pop
movl $2, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
callq _vec_len
xorl %edi, %edi
movq %rax, %rsi
callq _assert_int
xorl %eax, %eax
callq _make_vector
movq %rax, %rbx
movl $1, %esi
movq %rax, %rdi
callq _vec_push
movq %rbx, %rdi
callq _vec_head
movl $1, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
callq _vec_tail
movl $1, %edi
movq %rax, %rsi
callq _assert_int
movl $2, %esi
movq %rbx, %rdi
callq _vec_push
movq %rbx, %rdi
callq _vec_head
movl $1, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
callq _vec_tail
movl $2, %edi
movq %rax, %rsi
callq _assert_int
xorl %eax, %eax
callq _make_vector
movq %rax, %rbx
movl $1, %esi
movq %rax, %rdi
callq _vec_push
movl $2, %esi
movq %rbx, %rdi
callq _vec_push
movq %rbx, %rdi
xorl %esi, %esi
callq _vec_get
movl $1, %edi
movq %rax, %rsi
callq _assert_int
movq %rbx, %rdi
movl $1, %esi
callq _vec_get
movl $2, %edi
movq %rax, %rsi
popq %rbx
popq %r14
popq %rbp
jmp _assert_int ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_list
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_list
_test_list: ; @test_list
.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 _make_vector
mov x19, x0
bl _vec_len
mov x1, x0
mov w0, #0
bl _assert_int
mov x0, x19
mov w1, #1
bl _vec_push
mov x0, x19
bl _vec_len
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
mov w1, #2
bl _vec_push
mov x0, x19
bl _vec_len
mov x1, x0
mov w0, #2
bl _assert_int
mov x0, x19
bl _vec_copy
mov x20, x0
bl _vec_len
mov x1, x0
mov w0, #2
bl _assert_int
mov x0, x20
mov w1, #0
bl _vec_get
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x20
mov w1, #1
bl _vec_get
mov x1, x0
mov w0, #2
bl _assert_int
mov x0, x19
bl _vec_reverse
mov x19, x0
bl _vec_len
mov x1, x0
mov w0, #2
bl _assert_int
mov x0, x19
bl _vec_pop
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
bl _vec_len
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
bl _vec_pop
mov x1, x0
mov w0, #2
bl _assert_int
mov x0, x19
bl _vec_len
mov x1, x0
mov w0, #0
bl _assert_int
bl _make_vector
mov x19, x0
mov w1, #1
bl _vec_push
mov x0, x19
bl _vec_head
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
bl _vec_tail
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
mov w1, #2
bl _vec_push
mov x0, x19
bl _vec_head
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
bl _vec_tail
mov x1, x0
mov w0, #2
bl _assert_int
bl _make_vector
mov x19, x0
mov w1, #1
bl _vec_push
mov x0, x19
mov w1, #2
bl _vec_push
mov x0, x19
mov w1, #0
bl _vec_get
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
mov w1, #1
bl _vec_get
mov x1, x0
mov w0, #2
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _assert_int
.cfi_endproc
; -- End function
.no_dead_strip _test_list
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_test_list.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_map
_test_map: ## @test_map
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
.cfi_offset %rbx, -48
.cfi_offset %r12, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
xorl %ebx, %ebx
xorl %eax, %eax
callq _make_map
movq %rax, %r14
leaq L_.str(%rip), %rsi
movq %rax, %rdi
callq _map_get
movq %rax, %rdi
callq _assert_null
leaq L_.str.1(%rip), %r15
.p2align 4, 0x90
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movl %ebx, %esi
callq _format
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq _map_put
movq %r14, %rdi
movq %r12, %rsi
callq _map_get
movslq %eax, %rsi
movl %ebx, %edi
callq _assert_int
incq %rbx
cmpq $10000, %rbx ## imm = 0x2710
jne LBB0_1
## %bb.2:
xorl %ebx, %ebx
leaq L_.str.1(%rip), %r15
.p2align 4, 0x90
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movl %ebx, %esi
callq _format
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq _map_put
movq %r14, %rdi
movq %r12, %rsi
callq _map_get
movslq %eax, %rsi
movl %ebx, %edi
callq _assert_int
incq %rbx
cmpq $1000, %rbx ## imm = 0x3E8
jne LBB0_3
## %bb.4:
xorl %ebx, %ebx
leaq L_.str.1(%rip), %r15
.p2align 4, 0x90
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq %r15, %rdi
movl %ebx, %esi
callq _format
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
callq _map_get
movl %ebx, %edi
movq %rax, %rsi
callq _assert_int
movq %r14, %rdi
movq %r12, %rsi
callq _map_remove
movq %r14, %rdi
movq %r12, %rsi
callq _map_get
movq %rax, %rdi
callq _assert_null
incl %ebx
cmpl $10000, %ebx ## imm = 0x2710
jne LBB0_5
## %bb.6:
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "abc"
L_.str.1: ## @.str.1
.asciz "%d"
.no_dead_strip _test_map
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_map
_test_map: ; @test_map
.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_map
mov x19, x0
Lloh0:
adrp x1, l_.str@PAGE
Lloh1:
add x1, x1, l_.str@PAGEOFF
bl _map_get
bl _assert_null
mov x20, #0
Lloh2:
adrp x21, l_.str.1@PAGE
Lloh3:
add x21, x21, l_.str.1@PAGEOFF
mov w23, #10000
LBB0_1: ; =>This Inner Loop Header: Depth=1
mov x0, x21
mov x1, x20
bl _format
mov x22, x0
mov x0, x19
mov x1, x22
mov x2, x20
bl _map_put
mov x0, x19
mov x1, x22
bl _map_get
sxtw x1, w0
mov x0, x20
bl _assert_int
add x20, x20, #1
cmp x20, x23
b.ne LBB0_1
; %bb.2:
mov x20, #0
Lloh4:
adrp x21, l_.str.1@PAGE
Lloh5:
add x21, x21, l_.str.1@PAGEOFF
LBB0_3: ; =>This Inner Loop Header: Depth=1
mov x0, x21
mov x1, x20
bl _format
mov x22, x0
mov x0, x19
mov x1, x22
mov x2, x20
bl _map_put
mov x0, x19
mov x1, x22
bl _map_get
sxtw x1, w0
mov x0, x20
bl _assert_int
add x20, x20, #1
cmp x20, #1000
b.ne LBB0_3
; %bb.4:
mov w20, #0
Lloh6:
adrp x21, l_.str.1@PAGE
Lloh7:
add x21, x21, l_.str.1@PAGEOFF
mov w23, #10000
LBB0_5: ; =>This Inner Loop Header: Depth=1
mov x0, x21
mov x1, x20
bl _format
mov x22, x0
mov x0, x19
mov x1, x22
bl _map_get
mov x1, x0
mov x0, x20
bl _assert_int
mov x0, x19
mov x1, x22
bl _map_remove
mov x0, x19
mov x1, x22
bl _map_get
bl _assert_null
add w20, w20, #1
cmp w20, w23
b.ne LBB0_5
; %bb.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 Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh6, Lloh7
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "abc"
l_.str.1: ; @.str.1
.asciz "%d"
.no_dead_strip _test_map
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_test_map.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_map_stack
_test_map_stack: ## @test_map_stack
.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_map
movq %rax, %r15
leaq L_.str(%rip), %r14
movl $1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq _map_put
leaq L_.str.1(%rip), %rsi
movl $2, %edx
movq %r15, %rdi
callq _map_put
movq %r15, %rdi
movq %r14, %rsi
callq _map_get
movl $1, %edi
movl %eax, %esi
callq _assert_int
movq %r15, %rdi
callq _make_map_parent
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq _map_get
movl $1, %edi
movl %eax, %esi
callq _assert_int
movl $3, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq _map_put
movq %rbx, %rdi
movq %r14, %rsi
callq _map_get
movl $3, %edi
movl %eax, %esi
callq _assert_int
movq %r15, %rdi
movq %r14, %rsi
callq _map_get
movl $1, %edi
movl %eax, %esi
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _assert_int ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "x"
L_.str.1: ## @.str.1
.asciz "y"
.no_dead_strip _test_map_stack
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_map_stack
_test_map_stack: ; @test_map_stack
.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_map
mov x19, x0
Lloh0:
adrp x20, l_.str@PAGE
Lloh1:
add x20, x20, l_.str@PAGEOFF
mov x1, x20
mov w2, #1
bl _map_put
Lloh2:
adrp x1, l_.str.1@PAGE
Lloh3:
add x1, x1, l_.str.1@PAGEOFF
mov x0, x19
mov w2, #2
bl _map_put
mov x0, x19
mov x1, x20
bl _map_get
mov x1, x0
mov w0, #1
; kill: def $w1 killed $w1 killed $x1
bl _assert_int
mov x0, x19
bl _make_map_parent
mov x21, x0
mov x1, x20
bl _map_get
mov x1, x0
mov w0, #1
; kill: def $w1 killed $w1 killed $x1
bl _assert_int
mov x0, x21
mov x1, x20
mov w2, #3
bl _map_put
mov x0, x21
mov x1, x20
bl _map_get
mov x1, x0
mov w0, #3
; kill: def $w1 killed $w1 killed $x1
bl _assert_int
mov x0, x19
mov x1, x20
bl _map_get
mov x1, x0
mov w0, #1
; kill: def $w1 killed $w1 killed $x1
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 _assert_int
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "x"
l_.str.1: ; @.str.1
.asciz "y"
.no_dead_strip _test_map_stack
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_test_map_stack.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_path
_test_path: ## @test_path
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq %rax
.cfi_offset %rbx, -24
leaq L_.str(%rip), %rbx
movq %rbx, %rdi
callq _fullpath
movq %rbx, %rdi
movl %eax, %esi
callq _assert_string
leaq L_.str.1(%rip), %rbx
movq %rbx, %rdi
callq _fullpath
movq %rbx, %rdi
movl %eax, %esi
callq _assert_string
leaq L_.str.2(%rip), %rdi
callq _fullpath
movq %rbx, %rdi
movl %eax, %esi
callq _assert_string
leaq L_.str.3(%rip), %rdi
callq _fullpath
movq %rbx, %rdi
movl %eax, %esi
callq _assert_string
leaq L_.str.5(%rip), %rdi
callq _fullpath
leaq L_.str.4(%rip), %rdi
movl %eax, %esi
callq _assert_string
leaq L_.str.7(%rip), %rdi
callq _fullpath
leaq L_.str.6(%rip), %rbx
movq %rbx, %rdi
movl %eax, %esi
callq _assert_string
leaq L_.str.8(%rip), %rdi
callq _fullpath
movq %rbx, %rdi
movl %eax, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _assert_string ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "/abc"
L_.str.1: ## @.str.1
.asciz "/abc/def"
L_.str.2: ## @.str.2
.asciz "/abc///def"
L_.str.3: ## @.str.3
.asciz "//abc///def"
L_.str.4: ## @.str.4
.asciz "/abc/xyz"
L_.str.5: ## @.str.5
.asciz "/abc/def/../xyz"
L_.str.6: ## @.str.6
.asciz "/xyz"
L_.str.7: ## @.str.7
.asciz "/abc/def/../../../xyz"
L_.str.8: ## @.str.8
.asciz "/abc/def/../../../../xyz"
.no_dead_strip _test_path
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_path
_test_path: ; @test_path
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
Lloh0:
adrp x19, l_.str@PAGE
Lloh1:
add x19, x19, l_.str@PAGEOFF
mov x0, x19
bl _fullpath
mov x1, x0
mov x0, x19
bl _assert_string
Lloh2:
adrp x19, l_.str.1@PAGE
Lloh3:
add x19, x19, l_.str.1@PAGEOFF
mov x0, x19
bl _fullpath
mov x1, x0
mov x0, x19
bl _assert_string
Lloh4:
adrp x0, l_.str.2@PAGE
Lloh5:
add x0, x0, l_.str.2@PAGEOFF
bl _fullpath
mov x1, x0
mov x0, x19
bl _assert_string
Lloh6:
adrp x0, l_.str.3@PAGE
Lloh7:
add x0, x0, l_.str.3@PAGEOFF
bl _fullpath
mov x1, x0
mov x0, x19
bl _assert_string
Lloh8:
adrp x0, l_.str.5@PAGE
Lloh9:
add x0, x0, l_.str.5@PAGEOFF
bl _fullpath
mov x1, x0
Lloh10:
adrp x0, l_.str.4@PAGE
Lloh11:
add x0, x0, l_.str.4@PAGEOFF
bl _assert_string
Lloh12:
adrp x0, l_.str.7@PAGE
Lloh13:
add x0, x0, l_.str.7@PAGEOFF
bl _fullpath
mov x1, x0
Lloh14:
adrp x19, l_.str.6@PAGE
Lloh15:
add x19, x19, l_.str.6@PAGEOFF
mov x0, x19
bl _assert_string
Lloh16:
adrp x0, l_.str.8@PAGE
Lloh17:
add x0, x0, l_.str.8@PAGEOFF
bl _fullpath
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 _assert_string
.loh AdrpAdd Lloh16, Lloh17
.loh AdrpAdd Lloh14, Lloh15
.loh AdrpAdd Lloh12, Lloh13
.loh AdrpAdd Lloh10, Lloh11
.loh AdrpAdd Lloh8, Lloh9
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "/abc"
l_.str.1: ; @.str.1
.asciz "/abc/def"
l_.str.2: ; @.str.2
.asciz "/abc///def"
l_.str.3: ; @.str.3
.asciz "//abc///def"
l_.str.4: ; @.str.4
.asciz "/abc/xyz"
l_.str.5: ; @.str.5
.asciz "/abc/def/../xyz"
l_.str.6: ; @.str.6
.asciz "/xyz"
l_.str.7: ; @.str.7
.asciz "/abc/def/../../../xyz"
l_.str.8: ; @.str.8
.asciz "/abc/def/../../../../xyz"
.no_dead_strip _test_path
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_test_path.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_set
_test_set: ## @test_set
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
.cfi_offset %rbx, -56
.cfi_offset %r12, -48
.cfi_offset %r13, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
leaq L_.str(%rip), %r14
xorl %edi, %edi
movq %r14, %rsi
callq _set_has
xorl %edi, %edi
movl %eax, %esi
callq _assert_int
xorl %edi, %edi
movq %r14, %rsi
callq _set_add
leaq L_.str.1(%rip), %r15
movq %rax, %rdi
movq %r15, %rsi
callq _set_add
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq _set_has
movl $1, %edi
movl %eax, %esi
callq _assert_int
movq %rbx, %rdi
movq %r15, %rsi
callq _set_has
movl $1, %edi
movl %eax, %esi
callq _assert_int
leaq L_.str.2(%rip), %rsi
movq %rbx, %rdi
callq _set_has
xorl %edi, %edi
movl %eax, %esi
callq _assert_int
xorl %edi, %edi
movq %r14, %rsi
callq _set_add
leaq L_.str.3(%rip), %r12
movq %rax, %rdi
movq %r12, %rsi
callq _set_add
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq _set_union
movq %rax, %rdi
movq %r14, %rsi
callq _set_has
movl $1, %edi
movl %eax, %esi
callq _assert_int
movq %rbx, %rdi
movq %r13, %rsi
callq _set_union
movq %rax, %rdi
movq %r15, %rsi
callq _set_has
movl $1, %edi
movl %eax, %esi
callq _assert_int
movq %rbx, %rdi
movq %r13, %rsi
callq _set_union
movq %rax, %rdi
movq %r12, %rsi
callq _set_has
movl $1, %edi
movl %eax, %esi
callq _assert_int
movq %rbx, %rdi
movq %r13, %rsi
callq _set_intersection
movq %rax, %rdi
movq %r14, %rsi
callq _set_has
movl $1, %edi
movl %eax, %esi
callq _assert_int
movq %rbx, %rdi
movq %r13, %rsi
callq _set_intersection
movq %rax, %rdi
movq %r15, %rsi
callq _set_has
xorl %edi, %edi
movl %eax, %esi
callq _assert_int
movq %rbx, %rdi
movq %r13, %rsi
callq _set_intersection
movq %rax, %rdi
movq %r12, %rsi
callq _set_has
xorl %edi, %edi
movl %eax, %esi
addq $8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp _assert_int ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "abc"
L_.str.1: ## @.str.1
.asciz "def"
L_.str.2: ## @.str.2
.asciz "xyz"
L_.str.3: ## @.str.3
.asciz "DEF"
.no_dead_strip _test_set
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_set
_test_set: ; @test_set
.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 x20, l_.str@PAGE
Lloh1:
add x20, x20, l_.str@PAGEOFF
mov x0, #0
mov x1, x20
bl _set_has
mov x1, x0
mov w0, #0
bl _assert_int
mov x0, #0
mov x1, x20
bl _set_add
Lloh2:
adrp x21, l_.str.1@PAGE
Lloh3:
add x21, x21, l_.str.1@PAGEOFF
mov x1, x21
bl _set_add
mov x19, x0
mov x1, x20
bl _set_has
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
mov x1, x21
bl _set_has
mov x1, x0
mov w0, #1
bl _assert_int
Lloh4:
adrp x1, l_.str.2@PAGE
Lloh5:
add x1, x1, l_.str.2@PAGEOFF
mov x0, x19
bl _set_has
mov x1, x0
mov w0, #0
bl _assert_int
mov x0, #0
mov x1, x20
bl _set_add
Lloh6:
adrp x22, l_.str.3@PAGE
Lloh7:
add x22, x22, l_.str.3@PAGEOFF
mov x1, x22
bl _set_add
mov x23, x0
mov x0, x19
mov x1, x23
bl _set_union
mov x1, x20
bl _set_has
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
mov x1, x23
bl _set_union
mov x1, x21
bl _set_has
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
mov x1, x23
bl _set_union
mov x1, x22
bl _set_has
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
mov x1, x23
bl _set_intersection
mov x1, x20
bl _set_has
mov x1, x0
mov w0, #1
bl _assert_int
mov x0, x19
mov x1, x23
bl _set_intersection
mov x1, x21
bl _set_has
mov x1, x0
mov w0, #0
bl _assert_int
mov x0, x19
mov x1, x23
bl _set_intersection
mov x1, x22
bl _set_has
mov x1, x0
mov w0, #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 _assert_int
.loh AdrpAdd Lloh6, Lloh7
.loh AdrpAdd Lloh4, Lloh5
.loh AdrpAdd Lloh2, Lloh3
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "abc"
l_.str.1: ; @.str.1
.asciz "def"
l_.str.2: ; @.str.2
.asciz "xyz"
l_.str.3: ; @.str.3
.asciz "DEF"
.no_dead_strip _test_set
.subsections_via_symbols
|
AnghaBench/8cc/extr_utiltest.c_test_set.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function do_make_vector
_do_make_vector: ## @do_make_vector
.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
movl $24, %edi
callq _malloc
movq %rax, %rbx
movl %r14d, %edi
callq _roundup
movl %eax, %r14d
testl %eax, %eax
jle LBB0_2
## %bb.1:
movl %r14d, %edi
shll $3, %edi
callq _malloc
movq %rax, 16(%rbx)
LBB0_2:
movq $0, 8(%rbx)
movl %r14d, (%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _do_make_vector
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function do_make_vector
_do_make_vector: ; @do_make_vector
.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
mov w0, #24
bl _malloc
mov x19, x0
mov x0, x20
bl _roundup
mov x20, x0
cmp w0, #1
b.lt LBB0_2
; %bb.1:
lsl w0, w20, #3
bl _malloc
str x0, [x19, #16]
LBB0_2:
str xzr, [x19, #8]
str w20, [x19]
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 _do_make_vector
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_do_make_vector.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function extend
_extend: ## @extend
.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
addl (%rdi), %esi
cmpl 4(%rdi), %esi
jle LBB0_2
## %bb.1:
movq %rdi, %rbx
movl %esi, %edi
callq _roundup
movq _MIN_SIZE@GOTPCREL(%rip), %rcx
movl (%rcx), %esi
movl %eax, %edi
callq _max
movl %eax, %r14d
leal (,%r14,8), %edi
callq _malloc
movq %rax, %r15
movq 8(%rbx), %rsi
movl (%rbx), %edx
shll $3, %edx
movq %rax, %rdi
callq _memcpy
movq %r15, 8(%rbx)
movl %r14d, 4(%rbx)
LBB0_2:
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _MIN_SIZE,4,2 ## @MIN_SIZE
.no_dead_strip _extend
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function extend
_extend: ; @extend
.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
ldp w8, w9, [x0]
add w0, w8, w1
cmp w0, w9
b.le LBB0_2
; %bb.1:
bl _roundup
Lloh0:
adrp x8, _MIN_SIZE@GOTPAGE
Lloh1:
ldr x8, [x8, _MIN_SIZE@GOTPAGEOFF]
Lloh2:
ldr w1, [x8]
bl _max
mov x20, x0
lsl w0, w0, #3
bl _malloc
mov x21, x0
ldr x1, [x19, #8]
ldr w8, [x19]
lsl w2, w8, #3
bl _memcpy
str x21, [x19, #8]
str w20, [x19, #4]
LBB0_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
ret
.loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2
.cfi_endproc
; -- End function
.comm _MIN_SIZE,4,2 ; @MIN_SIZE
.no_dead_strip _extend
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_extend.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_vector ## -- Begin function make_vector
.p2align 4, 0x90
_make_vector: ## @make_vector
.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
popq %rbp
jmp _do_make_vector ## TAILCALL
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_vector ; -- Begin function make_vector
.p2align 2
_make_vector: ; @make_vector
.cfi_startproc
; %bb.0:
mov w0, #0
b _do_make_vector
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_make_vector.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _make_vector1 ## -- Begin function make_vector1
.p2align 4, 0x90
_make_vector1: ## @make_vector1
.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 %edi, %edi
callq _do_make_vector
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq _vec_push
movq %rbx, %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_vector1 ; -- Begin function make_vector1
.p2align 2
_make_vector1: ; @make_vector1
.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, #0
bl _do_make_vector
mov x20, x0
mov x1, x19
bl _vec_push
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
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_make_vector1.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function max
_max: ## @max
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %esi, %eax
cmpl %esi, %edi
cmovgl %edi, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _max
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function max
_max: ; @max
.cfi_startproc
; %bb.0:
cmp w0, w1
csel w0, w0, w1, gt
ret
.cfi_endproc
; -- End function
.no_dead_strip _max
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_max.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function roundup
_roundup: ## @roundup
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
testl %edi, %edi
je LBB0_4
## %bb.1:
movl $1, %ecx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
movl %ecx, %eax
leal (%rax,%rax), %ecx
cmpl %edi, %eax
jl LBB0_2
## %bb.3:
## kill: def $eax killed $eax killed $rax
popq %rbp
retq
LBB0_4:
xorl %eax, %eax
## kill: def $eax killed $eax killed $rax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _roundup
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function roundup
_roundup: ; @roundup
.cfi_startproc
; %bb.0:
cbz w0, LBB0_4
; %bb.1:
mov w9, #1
LBB0_2: ; =>This Inner Loop Header: Depth=1
mov x8, x9
lsl w9, w9, #1
cmp w8, w0
b.lt LBB0_2
; %bb.3:
mov x0, x8
ret
LBB0_4:
mov w0, #0
ret
.cfi_endproc
; -- End function
.no_dead_strip _roundup
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_roundup.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_append ## -- Begin function vec_append
.p2align 4, 0x90
_vec_append: ## @vec_append
.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, %rbx
movq %rdi, %r14
movl (%rsi), %esi
callq _extend
movl (%r14), %edi
addl 4(%r14), %edi
movl (%rbx), %edx
movl 4(%rbx), %esi
shll $3, %edx
callq _memcpy
movl (%rbx), %eax
addl %eax, (%r14)
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 _vec_append ; -- Begin function vec_append
.p2align 2
_vec_append: ; @vec_append
.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
ldr w1, [x1]
bl _extend
ldp w9, w8, [x20]
add w0, w9, w8
ldp w8, w1, [x19]
lsl w2, w8, #3
bl _memcpy
ldr w8, [x19]
ldr w9, [x20]
add w8, w9, w8
str w8, [x20]
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_vector.c_vec_append.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_body ## -- Begin function vec_body
.p2align 4, 0x90
_vec_body: ## @vec_body
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq (%rdi), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_body ; -- Begin function vec_body
.p2align 2
_vec_body: ; @vec_body
.cfi_startproc
; %bb.0:
ldr x0, [x0]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_vec_body.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_copy ## -- Begin function vec_copy
.p2align 4, 0x90
_vec_copy: ## @vec_copy
.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 (%rdi), %edi
callq _do_make_vector
movq %rax, %r14
movl 4(%rax), %edi
movl (%rbx), %edx
movl 4(%rbx), %esi
shll $3, %edx
callq _memcpy
movl (%rbx), %eax
movl %eax, (%r14)
movq %r14, %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 _vec_copy ; -- Begin function vec_copy
.p2align 2
_vec_copy: ; @vec_copy
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
ldr w0, [x0]
bl _do_make_vector
mov x20, x0
ldr w0, [x0, #4]
ldp w8, w1, [x19]
lsl w2, w8, #3
bl _memcpy
ldr w8, [x19]
str w8, [x20]
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
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_vec_copy.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_get ## -- Begin function vec_get
.p2align 4, 0x90
_vec_get: ## @vec_get
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movl %esi, %ebx
movq %rdi, %r14
xorl %edi, %edi
testl %esi, %esi
js LBB0_2
## %bb.1:
cmpl %ebx, (%r14)
setg %dil
LBB0_2:
callq _assert
movq 8(%r14), %rax
movslq %ebx, %rcx
movq (%rax,%rcx,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 _vec_get ; -- Begin function vec_get
.p2align 2
_vec_get: ; @vec_get
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x1
mov x20, x0
tbnz w1, #31, LBB0_2
; %bb.1:
ldr w8, [x20]
cmp w8, w19
cset w0, gt
b LBB0_3
LBB0_2:
mov w0, #0
LBB0_3:
bl _assert
ldr x8, [x20, #8]
ldr x0, [x8, w19, sxtw #3]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_vec_get.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_head ## -- Begin function vec_head
.p2align 4, 0x90
_vec_head: ## @vec_head
.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 %edi, %edi
cmpq $0, (%rbx)
setg %dil
callq _assert
movq 8(%rbx), %rax
movq (%rax), %rax
addq $8, %rsp
popq %rbx
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 _vec_head ; -- Begin function vec_head
.p2align 2
_vec_head: ; @vec_head
.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]
cmp x8, #0
cset w0, gt
bl _assert
ldr x8, [x19, #8]
ldr x0, [x8]
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_vector.c_vec_head.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_len ## -- Begin function vec_len
.p2align 4, 0x90
_vec_len: ## @vec_len
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl (%rdi), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_len ; -- Begin function vec_len
.p2align 2
_vec_len: ; @vec_len
.cfi_startproc
; %bb.0:
ldr w0, [x0]
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_vec_len.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_pop ## -- Begin function vec_pop
.p2align 4, 0x90
_vec_pop: ## @vec_pop
.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 %edi, %edi
cmpq $0, (%rbx)
setne %dil
callq _assert
movq (%rbx), %rax
movq 8(%rbx), %rcx
leaq -1(%rax), %rdx
movq %rdx, (%rbx)
movq -8(%rcx,%rax,8), %rax
addq $8, %rsp
popq %rbx
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 _vec_pop ; -- Begin function vec_pop
.p2align 2
_vec_pop: ; @vec_pop
.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]
cmp x8, #0
cset w0, ne
bl _assert
ldp x9, x8, [x19]
sub x9, x9, #1
str x9, [x19]
ldr x0, [x8, x9, lsl #3]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_vec_pop.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_push ## -- Begin function vec_push
.p2align 4, 0x90
_vec_push: ## @vec_push
.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 $1, %esi
callq _extend
movq 8(%rbx), %rax
movslq (%rbx), %rcx
leal 1(%rcx), %edx
movl %edx, (%rbx)
movq %r14, (%rax,%rcx,8)
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 _vec_push ; -- Begin function vec_push
.p2align 2
_vec_push: ; @vec_push
.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 w1, #1
bl _extend
ldr x8, [x20, #8]
ldrsw x9, [x20]
add w10, w9, #1
str w10, [x20]
str x19, [x8, x9, lsl #3]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_vec_push.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_reverse ## -- Begin function vec_reverse
.p2align 4, 0x90
_vec_reverse: ## @vec_reverse
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r14
pushq %rbx
.cfi_offset %rbx, -32
.cfi_offset %r14, -24
movq %rdi, %r14
movl (%rdi), %edi
callq _do_make_vector
movl (%r14), %ecx
testl %ecx, %ecx
jle LBB0_3
## %bb.1:
movq 8(%r14), %rdx
movq 8(%rax), %rsi
movl $-1, %edi
xorl %ebx, %ebx
.p2align 4, 0x90
LBB0_2: ## =>This Inner Loop Header: Depth=1
addl %edi, %ecx
movslq %ecx, %rcx
movl (%rdx,%rcx,4), %ecx
movl %ecx, (%rsi,%rbx,4)
incq %rbx
movslq (%r14), %rcx
decl %edi
cmpq %rcx, %rbx
jl LBB0_2
LBB0_3:
movl %ecx, (%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 _vec_reverse ; -- Begin function vec_reverse
.p2align 2
_vec_reverse: ; @vec_reverse
.cfi_startproc
; %bb.0:
stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
mov x19, x0
ldr w0, [x0]
bl _do_make_vector
ldr w8, [x19]
cmp w8, #1
b.lt LBB0_3
; %bb.1:
mov x9, #0
ldr x10, [x19, #8]
ldr x11, [x0, #8]
mov w12, #-1
LBB0_2: ; =>This Inner Loop Header: Depth=1
add w8, w8, w12
ldr w8, [x10, w8, sxtw #2]
str w8, [x11, x9, lsl #2]
add x9, x9, #1
ldrsw x8, [x19]
sub w12, w12, #1
cmp x9, x8
b.lt LBB0_2
LBB0_3:
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
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_vec_reverse.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_set ## -- Begin function vec_set
.p2align 4, 0x90
_vec_set: ## @vec_set
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
.cfi_offset %rbx, -40
.cfi_offset %r14, -32
.cfi_offset %r15, -24
movq %rdx, %r14
movl %esi, %ebx
movq %rdi, %r15
xorl %edi, %edi
testl %esi, %esi
js LBB0_2
## %bb.1:
cmpl %ebx, (%r15)
setg %dil
LBB0_2:
callq _assert
movq 8(%r15), %rax
movslq %ebx, %rcx
movq %r14, (%rax,%rcx,8)
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
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 _vec_set ; -- Begin function vec_set
.p2align 2
_vec_set: ; @vec_set
.cfi_startproc
; %bb.0:
stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 48
stp x20, x19, [sp, #16] ; 16-byte Folded Spill
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w19, -24
.cfi_offset w20, -32
.cfi_offset w21, -40
.cfi_offset w22, -48
mov x19, x2
mov x20, x1
mov x21, x0
tbnz w1, #31, LBB0_2
; %bb.1:
ldr w8, [x21]
cmp w8, w20
cset w0, gt
b LBB0_3
LBB0_2:
mov w0, #0
LBB0_3:
bl _assert
ldr x8, [x21, #8]
str x19, [x8, w20, sxtw #3]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
ldp x20, x19, [sp, #16] ; 16-byte Folded Reload
ldp x22, x21, [sp], #48 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/extr_vector.c_vec_set.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _vec_tail ## -- Begin function vec_tail
.p2align 4, 0x90
_vec_tail: ## @vec_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 %rbx
pushq %rax
.cfi_offset %rbx, -24
movq %rdi, %rbx
xorl %edi, %edi
cmpl $0, (%rbx)
setg %dil
callq _assert
movq 8(%rbx), %rax
movslq (%rbx), %rcx
movq -8(%rax,%rcx,8), %rax
addq $8, %rsp
popq %rbx
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 _vec_tail ; -- Begin function vec_tail
.p2align 2
_vec_tail: ; @vec_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 x19, x0
ldr w8, [x0]
cmp w8, #0
cset w0, gt
bl _assert
ldr x8, [x19, #8]
ldrsw x9, [x19]
add x8, x8, x9, lsl #3
ldur x0, [x8, #-8]
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_vector.c_vec_tail.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _test_alignas
xorl %eax, %eax
callq _test_alignof
xorl %eax, %eax
popq %rbp
jmp _test_constexpr ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "alignment"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _test_alignas
bl _test_alignof
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _test_constexpr
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "alignment"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_align.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_basic
_test_basic: ## @test_basic
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $3, %edi
movl $3, %esi
callq _expect
movl $3, %edi
movl $3, %esi
callq _expect
movl $10, %edi
movl $10, %esi
callq _expect
movl $11, %edi
movl $11, %esi
callq _expect
movl $14, %edi
movl $14, %esi
callq _expect
movl $4, %edi
movl $4, %esi
callq _expect
movl $4, %edi
movl $4, %esi
callq _expect
movl $3, %edi
movl $3, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $98, %edi
movl $98, %esi
callq _expect
movl $-1, %edi
movl $-1, %esi
callq _expect
movl $-1, %edi
movl $-1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_basic
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_basic
_test_basic: ; @test_basic
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #0
mov w1, #0
bl _expect
mov w0, #3
mov w1, #3
bl _expect
mov w0, #3
mov w1, #3
bl _expect
mov w0, #10
mov w1, #10
bl _expect
mov w0, #11
mov w1, #11
bl _expect
mov w0, #14
mov w1, #14
bl _expect
mov w0, #4
mov w1, #4
bl _expect
mov w0, #4
mov w1, #4
bl _expect
mov w0, #3
mov w1, #3
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #98
mov w1, #98
bl _expect
mov w0, #-1
mov w1, #-1
bl _expect
mov w0, #-1
mov w1, #-1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_basic
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_arith.c_test_basic.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_bool
_test_bool: ## @test_bool
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_bool
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_bool
_test_bool: ; @test_bool
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_bool
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_arith.c_test_bool.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function test_comma
LCPI0_0:
.quad 0x401c000000000000 ## double 7
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_test_comma: ## @test_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 $3, %edi
movl $3, %esi
callq _expect
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movl $7, %edi
popq %rbp
jmp _expectf ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_comma
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_comma
_test_comma: ; @test_comma
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #3
mov w1, #3
bl _expect
fmov d0, #7.00000000
mov w0, #7
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expectf
.cfi_endproc
; -- End function
.no_dead_strip _test_comma
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_arith.c_test_comma.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_inc_dec
_test_inc_dec: ## @test_inc_dec
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $15, %edi
movl $15, %esi
callq _expect
movl $16, %edi
movl $16, %esi
callq _expect
movl $16, %edi
movl $16, %esi
callq _expect
movl $15, %edi
movl $15, %esi
callq _expect
movl $14, %edi
movl $14, %esi
callq _expect
movl $14, %edi
movl $14, %esi
callq _expect
movl $15, %edi
movl $15, %esi
callq _expect
movl $15, %edi
movl $15, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_inc_dec
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_inc_dec
_test_inc_dec: ; @test_inc_dec
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #15
mov w1, #15
bl _expect
mov w0, #16
mov w1, #16
bl _expect
mov w0, #16
mov w1, #16
bl _expect
mov w0, #15
mov w1, #15
bl _expect
mov w0, #14
mov w1, #14
bl _expect
mov w0, #14
mov w1, #14
bl _expect
mov w0, #15
mov w1, #15
bl _expect
mov w0, #15
mov w1, #15
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_inc_dec
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_arith.c_test_inc_dec.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_relative
_test_relative: ## @test_relative
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_relative
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_relative
_test_relative: ; @test_relative
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_relative
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_arith.c_test_relative.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_ternary
_test_ternary: ## @test_ternary
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $51, %edi
movl $51, %esi
callq _expect
movl $52, %edi
movl $52, %esi
callq _expect
movl $26, %edi
movl $26, %esi
callq _expect
movl $17, %edi
movl $17, %esi
callq _expect
movl $52, %edi
movl $52, %esi
callq _expect
movl $3, %edi
movl $3, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_ternary
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_ternary
_test_ternary: ; @test_ternary
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #51
mov w1, #51
bl _expect
mov w0, #52
mov w1, #52
bl _expect
mov w0, #26
mov w1, #26
bl _expect
mov w0, #17
mov w1, #17
bl _expect
mov w0, #52
mov w1, #52
bl _expect
mov w0, #3
mov w1, #3
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_ternary
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_arith.c_test_ternary.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_unary
_test_unary: ## @test_unary
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $-2, %edi
movl $-2, %esi
callq _expect
movl $-2, %edi
movl $-2, %esi
callq _expect
movl $-2, %edi
movl $-2, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_unary
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_unary
_test_unary: ; @test_unary
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #-2
mov w1, #-2
bl _expect
mov w0, #-2
mov w1, #-2
bl _expect
mov w0, #-2
mov w1, #-2
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_unary
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_arith.c_test_unary.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _test_basic
xorl %eax, %eax
callq _test_relative
xorl %eax, %eax
callq _test_inc_dec
xorl %eax, %eax
callq _test_bool
xorl %eax, %eax
callq _test_unary
xorl %eax, %eax
callq _test_ternary
xorl %eax, %eax
popq %rbp
jmp _test_comma ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "basic arithmetic"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _test_basic
bl _test_relative
bl _test_inc_dec
bl _test_bool
bl _test_unary
bl _test_ternary
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _test_comma
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "basic arithmetic"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_arith.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t4
_t4: ## @t4
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, %edi
movl $1, %esi
callq _expect
movl $2, %edi
movl $2, %esi
callq _expect
movl $3, %edi
movl $3, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t4
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t4
_t4: ; @t4
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #1
mov w1, #1
bl _expect
mov w0, #2
mov w1, #2
bl _expect
mov w0, #3
mov w1, #3
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t4
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_array.c_t4.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t6a
_t6a: ## @t6a
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl 16(%rsi), %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t6a
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t6a
_t6a: ; @t6a
.cfi_startproc
; %bb.0:
ldr w1, [x1, #16]
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t6a
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_array.c_t6a.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function t7
_t7: ## @t7
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $68, %edi
movl $68, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _t7
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function t7
_t7: ; @t7
.cfi_startproc
; %bb.0:
mov w0, #68
mov w1, #68
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _t7
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_array.c_t7.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _t1
xorl %eax, %eax
callq _t2
xorl %eax, %eax
callq _t3
xorl %eax, %eax
callq _t4
xorl %eax, %eax
callq _t5
xorl %eax, %eax
callq _t6
xorl %eax, %eax
popq %rbp
jmp _t7 ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "array"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _t1
bl _t2
bl _t3
bl _t4
bl _t5
bl _t6
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _t7
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "array"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_array.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
movl $5, %edi
movl $5, %esi
callq _expect
movl $3, %edi
movl $3, %esi
callq _expect
movl $30, %edi
movl $30, %esi
callq _expect
movl $15, %edi
movl $15, %esi
callq _expect
movl $3, %edi
movl $3, %esi
callq _expect
movl $6, %edi
movl $6, %esi
callq _expect
movl $14, %edi
movl $14, %esi
callq _expect
movl $13, %edi
movl $13, %esi
callq _expect
movl $52, %edi
movl $52, %esi
callq _expect
movl $13, %edi
movl $13, %esi
callq _expect
movl $5, %edi
movl $5, %esi
callq _expect
movl $3, %edi
movl $3, %esi
callq _expect
movl $30, %edi
movl $30, %esi
callq _expect
movl $15, %edi
movl $15, %esi
callq _expect
movl $3, %edi
movl $3, %esi
callq _expect
movl $6, %edi
movl $6, %esi
callq _expect
movl $14, %edi
movl $14, %esi
callq _expect
movl $13, %edi
movl $13, %esi
callq _expect
movl $52, %edi
movl $52, %esi
callq _expect
movl $13, %edi
movl $13, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "compound assignment"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
mov w0, #5
mov w1, #5
bl _expect
mov w0, #3
mov w1, #3
bl _expect
mov w0, #30
mov w1, #30
bl _expect
mov w0, #15
mov w1, #15
bl _expect
mov w0, #3
mov w1, #3
bl _expect
mov w0, #6
mov w1, #6
bl _expect
mov w0, #14
mov w1, #14
bl _expect
mov w0, #13
mov w1, #13
bl _expect
mov w0, #52
mov w1, #52
bl _expect
mov w0, #13
mov w1, #13
bl _expect
mov w0, #5
mov w1, #5
bl _expect
mov w0, #3
mov w1, #3
bl _expect
mov w0, #30
mov w1, #30
bl _expect
mov w0, #15
mov w1, #15
bl _expect
mov w0, #3
mov w1, #3
bl _expect
mov w0, #6
mov w1, #6
bl _expect
mov w0, #14
mov w1, #14
bl _expect
mov w0, #13
mov w1, #13
bl _expect
mov w0, #52
mov w1, #52
bl _expect
mov w0, #13
mov w1, #13
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "compound assignment"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_assign.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_and
_test_and: ## @test_and
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $2, %edi
movl $2, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_and
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_and
_test_and: ; @test_and
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #0
mov w1, #0
bl _expect
mov w0, #2
mov w1, #2
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_and
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_bitop.c_test_and.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_not
_test_not: ## @test_not
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $-1, %edi
movl $-1, %esi
callq _expect
movl $-3, %edi
movl $-3, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_not
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_not
_test_not: ; @test_not
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #-1
mov w1, #-1
bl _expect
mov w0, #-3
mov w1, #-3
bl _expect
mov w0, #0
mov w1, #0
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_not
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_bitop.c_test_not.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_or
_test_or: ## @test_or
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $3, %edi
movl $3, %esi
callq _expect
movl $7, %edi
movl $7, %esi
callq _expect
movl $7, %edi
movl $7, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_or
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_or
_test_or: ; @test_or
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #3
mov w1, #3
bl _expect
mov w0, #7
mov w1, #7
bl _expect
mov w0, #7
mov w1, #7
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_or
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_bitop.c_test_or.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_shift
_test_shift: ## @test_shift
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $16, %edi
movl $16, %esi
callq _expect
movl $48, %edi
movl $48, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $2, %edi
movl $2, %esi
callq _expect
movl $1, %edi
movl $1, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_shift
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_shift
_test_shift: ; @test_shift
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #16
mov w1, #16
bl _expect
mov w0, #48
mov w1, #48
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #2
mov w1, #2
bl _expect
mov w0, #1
mov w1, #1
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_shift
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_bitop.c_test_shift.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_xor
_test_xor: ## @test_xor
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $10, %edi
movl $10, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_xor
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_xor
_test_xor: ; @test_xor
.cfi_startproc
; %bb.0:
mov w0, #10
mov w1, #10
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_xor
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_bitop.c_test_xor.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
callq _test_or
xorl %eax, %eax
callq _test_and
xorl %eax, %eax
callq _test_not
xorl %eax, %eax
callq _test_xor
xorl %eax, %eax
popq %rbp
jmp _test_shift ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "bitwise operators"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
bl _test_or
bl _test_and
bl _test_not
bl _test_xor
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _test_shift
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "bitwise operators"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_bitop.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_return_address
_test_return_address: ## @test_return_address
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _test_return_address
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_return_address
_test_return_address: ; @test_return_address
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.no_dead_strip _test_return_address
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_builtin.c_test_return_address.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
xorl %eax, %eax
popq %rbp
jmp _test_return_address ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "builtin"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _test_return_address
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "builtin"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_builtin.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_signedcast
_test_signedcast: ## @test_signedcast
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $-1, %edi
movl $-1, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_signedcast
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_signedcast
_test_signedcast: ; @test_signedcast
.cfi_startproc
; %bb.0:
mov w0, #-1
mov w1, #-1
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_signedcast
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_cast.c_test_signedcast.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_unsignedcast
_test_unsignedcast: ## @test_unsignedcast
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, %edi
movl $1, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_unsignedcast
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_unsignedcast
_test_unsignedcast: ; @test_unsignedcast
.cfi_startproc
; %bb.0:
mov w0, #1
mov w1, #1
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_unsignedcast
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_cast.c_test_unsignedcast.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function testmain
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
LCPI0_2:
.quad 0x4000000000000000 ## double 2
.section __TEXT,__literal4,4byte_literals
.p2align 2
LCPI0_1:
.long 0x3f800000 ## float 1
.section __TEXT,__text,regular,pure_instructions
.globl _testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
callq _expectf
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
callq _expectf
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
movaps %xmm0, %xmm1
callq _expectd
movl $5, %edi
movl $5, %esi
callq _expect
xorl %eax, %eax
callq _test_signedcast
xorl %eax, %eax
popq %rbp
jmp _test_unsignedcast ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "cast"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
fmov d0, #1.00000000
fmov s1, #1.00000000
bl _expectf
fmov d0, #1.00000000
fmov s1, #1.00000000
bl _expectf
fmov d0, #2.00000000
fmov d1, #2.00000000
bl _expectd
mov w0, #5
mov w1, #5
bl _expect
bl _test_signedcast
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _test_unsignedcast
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "cast"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_cast.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
movl $1, %edi
movl $1, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $1, %edi
movl $1, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "comparison operators"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #1
mov w1, #1
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #0
mov w1, #0
bl _expect
mov w0, #1
mov w1, #1
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "comparison operators"
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_comp.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ## -- Begin function testmain
.p2align 4, 0x90
_testmain: ## @testmain
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq L_.str(%rip), %rdi
callq _print
movq _p1@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl (%rax), %esi
movl $1, %edi
callq _expect
movq _q1@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl (%rax), %esi
movl $3, %edi
callq _expect
movq _p2@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl -4(%rax), %esi
movl $7, %edi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "constexpr"
.comm _p1,8,3 ## @p1
.comm _q1,8,3 ## @q1
.comm _p2,8,3 ## @p2
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testmain ; -- Begin function testmain
.p2align 2
_testmain: ; @testmain
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
Lloh0:
adrp x0, l_.str@PAGE
Lloh1:
add x0, x0, l_.str@PAGEOFF
bl _print
Lloh2:
adrp x8, _p1@GOTPAGE
Lloh3:
ldr x8, [x8, _p1@GOTPAGEOFF]
Lloh4:
ldr x8, [x8]
ldr w1, [x8]
mov w0, #1
bl _expect
Lloh5:
adrp x8, _q1@GOTPAGE
Lloh6:
ldr x8, [x8, _q1@GOTPAGEOFF]
Lloh7:
ldr x8, [x8]
ldr w1, [x8]
mov w0, #3
bl _expect
Lloh8:
adrp x8, _p2@GOTPAGE
Lloh9:
ldr x8, [x8, _p2@GOTPAGEOFF]
Lloh10:
ldr x8, [x8]
ldur w1, [x8, #-4]
mov w0, #7
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.loh AdrpLdrGotLdr Lloh8, Lloh9, Lloh10
.loh AdrpLdrGotLdr Lloh5, Lloh6, Lloh7
.loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4
.loh AdrpAdd Lloh0, Lloh1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "constexpr"
.comm _p1,8,3 ; @p1
.comm _q1,8,3 ; @q1
.comm _p2,8,3 ; @p2
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_constexpr.c_testmain.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_do
_test_do: ## @test_do
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $5050, %edi ## imm = 0x13BA
movl $5050, %esi ## imm = 0x13BA
callq _expect
movl $37, %edi
movl $37, %esi
callq _expect
movl $30, %edi
movl $30, %esi
callq _expect
movl $72, %edi
movl $72, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_do
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_do
_test_do: ; @test_do
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #5050
mov w1, #5050
bl _expect
mov w0, #37
mov w1, #37
bl _expect
mov w0, #30
mov w1, #30
bl _expect
mov w0, #72
mov w1, #72
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_do
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_do.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_for
_test_for: ## @test_for
.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 $10, %edi
movl $10, %esi
callq _expect
movl $10, %edi
movl $10, %esi
callq _expect
xorl %ecx, %ecx
xorl %eax, %eax
jmp LBB0_1
.p2align 4, 0x90
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
addl $2, %eax
movl %esi, %ecx
cmpl $100, %eax
je LBB0_5
LBB0_1: ## =>This Inner Loop Header: Depth=1
leal (%rcx,%rax), %esi
cmpl $5, %eax
cmovbl %ecx, %esi
cmpl $4, %eax
jb LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpl $8, %eax
je LBB0_5
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
addl %eax, %esi
incl %esi
jmp LBB0_4
LBB0_5:
movl $26, %edi
## kill: def $esi killed $esi killed $rsi
callq _expect
movl $8, %ebx
.p2align 4, 0x90
LBB0_6: ## =>This Inner Loop Header: Depth=1
movl %ebx, %edi
movl %ebx, %esi
callq _expect
addl $2, %ebx
cmpl $202, %ebx
jne LBB0_6
## %bb.7:
movl $68, %edi
movl $68, %esi
addq $8, %rsp
popq %rbx
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_for
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_for
_test_for: ; @test_for
.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, #10
mov w1, #10
bl _expect
mov w0, #10
mov w1, #10
bl _expect
mov w1, #0
mov w8, #0
b LBB0_2
LBB0_1: ; in Loop: Header=BB0_2 Depth=1
add w8, w8, #1
cmp w8, #100
b.eq LBB0_5
LBB0_2: ; =>This Inner Loop Header: Depth=1
cmp w8, #5
b.lo LBB0_1
; %bb.3: ; in Loop: Header=BB0_2 Depth=1
cmp w8, #9
b.eq LBB0_5
; %bb.4: ; in Loop: Header=BB0_2 Depth=1
add w1, w1, w8
b LBB0_1
LBB0_5:
mov w0, #26
bl _expect
mov w19, #8
LBB0_6: ; =>This Inner Loop Header: Depth=1
mov x0, x19
mov x1, x19
bl _expect
add w19, w19, #2
cmp w19, #202
b.ne LBB0_6
; %bb.7:
mov w0, #68
mov w1, #68
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [sp], #32 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_for
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_for.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_goto
_test_goto: ## @test_goto
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %edi, %edi
xorl %esi, %esi
callq _expect
movl $55, %edi
movl $55, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_goto
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_goto
_test_goto: ; @test_goto
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w0, #0
mov w1, #0
bl _expect
mov w0, #55
mov w1, #55
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_goto
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_goto.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function test_if
_test_if: ## @test_if
.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 _test_if1
movl $97, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _test_if2
movl $98, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _test_if3
movl $99, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _test_if4
movl $100, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _test_if5
movl $101, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _test_if6
movl $102, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _test_if7
movl $103, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _test_if8
movl $104, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _test_if9
movl $105, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _test_if10
movl $106, %edi
movl %eax, %esi
callq _expect
xorl %eax, %eax
callq _test_if11
movl $107, %edi
movl %eax, %esi
popq %rbp
jmp _expect ## TAILCALL
.cfi_endproc
## -- End function
.no_dead_strip _test_if
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function test_if
_test_if: ; @test_if
.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 _test_if1
mov x1, x0
mov w0, #97
bl _expect
bl _test_if2
mov x1, x0
mov w0, #98
bl _expect
bl _test_if3
mov x1, x0
mov w0, #99
bl _expect
bl _test_if4
mov x1, x0
mov w0, #100
bl _expect
bl _test_if5
mov x1, x0
mov w0, #101
bl _expect
bl _test_if6
mov x1, x0
mov w0, #102
bl _expect
bl _test_if7
mov x1, x0
mov w0, #103
bl _expect
bl _test_if8
mov x1, x0
mov w0, #104
bl _expect
bl _test_if9
mov x1, x0
mov w0, #105
bl _expect
bl _test_if10
mov x1, x0
mov w0, #106
bl _expect
bl _test_if11
mov x1, x0
mov w0, #107
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
b _expect
.cfi_endproc
; -- End function
.no_dead_strip _test_if
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if1 ## -- Begin function test_if1
.p2align 4, 0x90
_test_if1: ## @test_if1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $97, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if1 ; -- Begin function test_if1
.p2align 2
_test_if1: ; @test_if1
.cfi_startproc
; %bb.0:
mov w0, #97
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if1.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if10 ## -- Begin function test_if10
.p2align 4, 0x90
_test_if10: ## @test_if10
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $106, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if10 ; -- Begin function test_if10
.p2align 2
_test_if10: ; @test_if10
.cfi_startproc
; %bb.0:
mov w0, #106
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if10.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if11 ## -- Begin function test_if11
.p2align 4, 0x90
_test_if11: ## @test_if11
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $107, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if11 ; -- Begin function test_if11
.p2align 2
_test_if11: ; @test_if11
.cfi_startproc
; %bb.0:
mov w0, #107
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if11.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if2 ## -- Begin function test_if2
.p2align 4, 0x90
_test_if2: ## @test_if2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $98, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if2 ; -- Begin function test_if2
.p2align 2
_test_if2: ; @test_if2
.cfi_startproc
; %bb.0:
mov w0, #98
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if2.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if3 ## -- Begin function test_if3
.p2align 4, 0x90
_test_if3: ## @test_if3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $99, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if3 ; -- Begin function test_if3
.p2align 2
_test_if3: ; @test_if3
.cfi_startproc
; %bb.0:
mov w0, #99
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if3.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if4 ## -- Begin function test_if4
.p2align 4, 0x90
_test_if4: ## @test_if4
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $100, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if4 ; -- Begin function test_if4
.p2align 2
_test_if4: ; @test_if4
.cfi_startproc
; %bb.0:
mov w0, #100
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if4.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if5 ## -- Begin function test_if5
.p2align 4, 0x90
_test_if5: ## @test_if5
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $101, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if5 ; -- Begin function test_if5
.p2align 2
_test_if5: ; @test_if5
.cfi_startproc
; %bb.0:
mov w0, #101
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if5.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if6 ## -- Begin function test_if6
.p2align 4, 0x90
_test_if6: ## @test_if6
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $102, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if6 ; -- Begin function test_if6
.p2align 2
_test_if6: ; @test_if6
.cfi_startproc
; %bb.0:
mov w0, #102
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if6.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if7 ## -- Begin function test_if7
.p2align 4, 0x90
_test_if7: ## @test_if7
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $103, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if7 ; -- Begin function test_if7
.p2align 2
_test_if7: ; @test_if7
.cfi_startproc
; %bb.0:
mov w0, #103
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if7.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if8 ## -- Begin function test_if8
.p2align 4, 0x90
_test_if8: ## @test_if8
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $104, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if8 ; -- Begin function test_if8
.p2align 2
_test_if8: ; @test_if8
.cfi_startproc
; %bb.0:
mov w0, #104
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if8.c
|
anghabench
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if9 ## -- Begin function test_if9
.p2align 4, 0x90
_test_if9: ## @test_if9
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $105, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test_if9 ; -- Begin function test_if9
.p2align 2
_test_if9: ; @test_if9
.cfi_startproc
; %bb.0:
mov w0, #105
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
|
AnghaBench/8cc/test/extr_control.c_test_if9.c
|
anghabench
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.