arm
stringlengths 122
113k
| x86
stringlengths 122
93.9k
| filename
stringlengths 33
207
|
---|---|---|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_randomLength
_FUZ_randomLength: ; @FUZ_randomLength
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str w1, [sp, #4]
ldr x0, [sp, #8]
bl _FUZ_rand
ldr w9, [sp, #4]
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
str w8, [sp]
ldr x0, [sp, #8]
ldr w1, [sp]
bl _FUZ_rLogLength
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_randomLength
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_randomLength
_FUZ_randomLength: ## @FUZ_randomLength
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rdi
callq _FUZ_rand
cltd
idivl -12(%rbp)
movl %edx, -16(%rbp)
movq -8(%rbp), %rdi
movl -16(%rbp), %esi
callq _FUZ_rLogLength
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_randomLength
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_FUZ_randomLength.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_usage
_FUZ_usage: ; @FUZ_usage
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
adrp x8, _nbTestsDefault@GOTPAGE
ldr x8, [x8, _nbTestsDefault@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _DISPLAY
adrp x8, _FUZ_compressibility_default@GOTPAGE
ldr x8, [x8, _FUZ_compressibility_default@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _DISPLAY
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage :\n"
l_.str.1: ; @.str.1
.asciz " %s [args]\n"
l_.str.2: ; @.str.2
.asciz "\n"
l_.str.3: ; @.str.3
.asciz "Arguments :\n"
l_.str.4: ; @.str.4
.asciz " -i# : Nb of tests (default:%i) \n"
.comm _nbTestsDefault,4,2 ; @nbTestsDefault
l_.str.5: ; @.str.5
.asciz " -s# : Select seed (default:prompt user)\n"
l_.str.6: ; @.str.6
.asciz " -t# : Select starting test number (default:0)\n"
l_.str.7: ; @.str.7
.asciz " -P# : Select compressibility in %% (default:%i%%)\n"
.comm _FUZ_compressibility_default,4,2 ; @FUZ_compressibility_default
l_.str.8: ; @.str.8
.asciz " -v : verbose\n"
l_.str.9: ; @.str.9
.asciz " -p : pause at the end\n"
l_.str.10: ; @.str.10
.asciz " -h : display help and exit\n"
.no_dead_strip _FUZ_usage
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_usage
_FUZ_usage: ## @FUZ_usage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -8(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _nbTestsDefault@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _FUZ_compressibility_default@GOTPCREL(%rip), %rax
movl (%rax), %esi
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _DISPLAY
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage :\n"
L_.str.1: ## @.str.1
.asciz " %s [args]\n"
L_.str.2: ## @.str.2
.asciz "\n"
L_.str.3: ## @.str.3
.asciz "Arguments :\n"
L_.str.4: ## @.str.4
.asciz " -i# : Nb of tests (default:%i) \n"
.comm _nbTestsDefault,4,2 ## @nbTestsDefault
L_.str.5: ## @.str.5
.asciz " -s# : Select seed (default:prompt user)\n"
L_.str.6: ## @.str.6
.asciz " -t# : Select starting test number (default:0)\n"
L_.str.7: ## @.str.7
.asciz " -P# : Select compressibility in %% (default:%i%%)\n"
.comm _FUZ_compressibility_default,4,2 ## @FUZ_compressibility_default
L_.str.8: ## @.str.8
.asciz " -v : verbose\n"
L_.str.9: ## @.str.9
.asciz " -p : pause at the end\n"
L_.str.10: ## @.str.10
.asciz " -h : display help and exit\n"
.no_dead_strip _FUZ_usage
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_FUZ_usage.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function findDiff
_findDiff: ; @findDiff
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #40]
str x1, [sp, #32]
str x2, [sp, #24]
ldr x8, [sp, #40]
str x8, [sp, #16]
ldr x8, [sp, #32]
str x8, [sp, #8]
str xzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #8]
ldr x10, [sp]
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
b LBB0_6
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_6:
ldr x0, [sp]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _findDiff
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function findDiff
_findDiff: ## @findDiff
.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, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
movq %rax, -40(%rbp)
movq $0, -48(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -48(%rbp), %rax
cmpq -24(%rbp), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq -48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -40(%rbp), %rcx
movq -48(%rbp), %rdx
cmpq (%rcx,%rdx,8), %rax
je LBB0_4
## %bb.3:
jmp LBB0_6
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -48(%rbp), %rax
addq $1, %rax
movq %rax, -48(%rbp)
jmp LBB0_1
LBB0_6:
movq -48(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _findDiff
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_findDiff.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function longCommandWArg
_longCommandWArg: ; @longCommandWArg
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldr x0, [sp, #16]
bl _strlen
str x0, [sp, #8]
ldur x8, [x29, #-8]
ldr x0, [x8]
ldr x1, [sp, #16]
ldr x2, [sp, #8]
bl _strncmp
subs w8, w0, #0
cset w8, eq
and w8, w8, #0x1
str w8, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x10, [sp, #8]
ldur x9, [x29, #-8]
ldr x8, [x9]
add x8, x8, x10
str x8, [x9]
b LBB0_2
LBB0_2:
ldr w0, [sp, #4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _longCommandWArg
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function longCommandWArg
_longCommandWArg: ## @longCommandWArg
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rdi
callq _strlen
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _strncmp
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
movl %eax, -28(%rbp)
cmpl $0, -28(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
LBB0_2:
movl -28(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _longCommandWArg
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_longCommandWArg.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function readU32FromChar
_readU32FromChar: ; @readU32FromChar
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp] ; 4-byte Folded Spill
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp] ; 4-byte Folded Reload
tbz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
mov w9, #10
mul w8, w8, w9
str w8, [sp, #4]
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w9, w8, #48
ldr w8, [sp, #4]
add w8, w8, w9
str w8, [sp, #4]
ldr x9, [sp, #8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_1
LBB0_5:
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #75
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_14
b LBB0_7
LBB0_7:
ldr w8, [sp, #4]
lsl w8, w8, #10
str w8, [sp, #4]
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr w8, [sp, #4]
lsl w8, w8, #10
str w8, [sp, #4]
b LBB0_9
LBB0_9:
ldr x9, [sp, #8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #105
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x9, [sp, #8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_11
LBB0_11:
ldr x8, [sp, #8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #66
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
ldr x9, [sp, #8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_13
LBB0_13:
b LBB0_14
LBB0_14:
ldr w0, [sp, #4]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.no_dead_strip _readU32FromChar
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function readU32FromChar
_readU32FromChar: ## @readU32FromChar
.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, -8(%rbp)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -13(%rbp) ## 1-byte Spill
jl LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -13(%rbp) ## 1-byte Spill
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movb -13(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_4
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
imull $10, -12(%rbp), %eax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
subl $48, %eax
addl -12(%rbp), %eax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
jmp LBB0_1
LBB0_5:
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $75, %eax
je LBB0_7
## %bb.6:
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_14
LBB0_7:
movl -12(%rbp), %eax
shll $10, %eax
movl %eax, -12(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_9
## %bb.8:
movl -12(%rbp), %eax
shll $10, %eax
movl %eax, -12(%rbp)
LBB0_9:
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $105, %eax
jne LBB0_11
## %bb.10:
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_11:
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $66, %eax
jne LBB0_13
## %bb.12:
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_13:
jmp LBB0_14
LBB0_14:
movl -12(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _readU32FromChar
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_readU32FromChar.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI0_0:
.quad 0x4059000000000000 ; double 100
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _g_displayLevel@GOTPAGE
ldr x8, [x8, _g_displayLevel@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
stur wzr, [x29, #-20]
stur wzr, [x29, #-24]
adrp x8, _nbTestsDefault@GOTPAGE
ldr x8, [x8, _nbTestsDefault@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-32]
stur wzr, [x29, #-36]
adrp x8, _FUZ_compressibility_default@GOTPAGE
ldr x8, [x8, _FUZ_compressibility_default@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-40]
stur wzr, [x29, #-44]
stur wzr, [x29, #-48]
stur wzr, [x29, #-52]
mov w8, #1
stur w8, [x29, #-56]
stur wzr, [x29, #-60]
ldur x9, [x29, #-16]
ldr x9, [x9]
str x9, [sp, #56]
stur w8, [x29, #-28]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_12 Depth 2
ldur w8, [x29, #-28]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_37
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldursw x9, [x29, #-28]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #48]
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
b LBB0_36
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #48]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB0_35
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #48
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
add x0, sp, #48
bl _readU32FromChar
stur w0, [x29, #-60]
b LBB0_36
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #48]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
stur w8, [x29, #-60]
b LBB0_36
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #48]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
stur wzr, [x29, #-56]
b LBB0_36
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
b LBB0_12
LBB0_12: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #48]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_34
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=2
ldr x8, [sp, #48]
ldrsb w8, [x8]
subs w8, w8, #80
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
subs x8, x8, #38
cset w8, hi
tbnz w8, #0, LBB0_32
; %bb.14: ; in Loop: Header=BB0_12 Depth=2
ldr x11, [sp, #16] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_15:
ldr x0, [sp, #56]
bl _FUZ_usage
stur w0, [x29, #-4]
b LBB0_52
LBB0_16: ; in Loop: Header=BB0_12 Depth=2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
b LBB0_33
LBB0_17: ; in Loop: Header=BB0_12 Depth=2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
b LBB0_33
LBB0_18: ; in Loop: Header=BB0_12 Depth=2
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
mov w8, #1
stur w8, [x29, #-48]
b LBB0_33
LBB0_19: ; in Loop: Header=BB0_12 Depth=2
add x0, sp, #48
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
stur wzr, [x29, #-52]
bl _readU32FromChar
stur w0, [x29, #-32]
b LBB0_33
LBB0_20: ; in Loop: Header=BB0_12 Depth=2
add x0, sp, #48
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
stur wzr, [x29, #-32]
bl _readU32FromChar
stur w0, [x29, #-52]
ldr x8, [sp, #48]
ldrsb w8, [x8]
subs w8, w8, #115
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_12 Depth=2
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_12 Depth=2
ldr x8, [sp, #48]
ldrsb w8, [x8]
subs w8, w8, #109
cset w8, ne
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_12 Depth=2
ldur w8, [x29, #-52]
mov w9, #60
mul w8, w8, w9
stur w8, [x29, #-52]
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_12 Depth=2
ldr x8, [sp, #48]
ldrsb w8, [x8]
subs w8, w8, #110
cset w8, ne
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_12 Depth=2
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_12 Depth=2
b LBB0_33
LBB0_27: ; in Loop: Header=BB0_12 Depth=2
add x0, sp, #48
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
mov w8, #1
stur w8, [x29, #-24]
bl _readU32FromChar
stur w0, [x29, #-20]
b LBB0_33
LBB0_28: ; in Loop: Header=BB0_12 Depth=2
add x0, sp, #48
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
bl _readU32FromChar
stur w0, [x29, #-36]
b LBB0_33
LBB0_29: ; in Loop: Header=BB0_12 Depth=2
add x0, sp, #48
ldr x8, [sp, #48]
add x8, x8, #1
str x8, [sp, #48]
bl _readU32FromChar
stur w0, [x29, #-40]
ldur w8, [x29, #-40]
subs w8, w8, #100
cset w8, le
tbnz w8, #0, LBB0_31
b LBB0_30
LBB0_30: ; in Loop: Header=BB0_12 Depth=2
mov w8, #100
stur w8, [x29, #-40]
b LBB0_31
LBB0_31: ; in Loop: Header=BB0_12 Depth=2
b LBB0_33
LBB0_32:
ldr x0, [sp, #56]
bl _FUZ_usage
mov w8, #1
stur w8, [x29, #-4]
b LBB0_52
LBB0_33: ; in Loop: Header=BB0_12 Depth=2
b LBB0_12
LBB0_34: ; in Loop: Header=BB0_1 Depth=1
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_1 Depth=1
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB0_1
LBB0_37:
adrp x8, _ZSTD_VERSION_STRING@GOTPAGE
ldr x8, [x8, _ZSTD_VERSION_STRING@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
mov x10, #64
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38:
mov x0, #0
bl _time
mov x8, x0
add x0, sp, #44
str w8, [sp, #44]
mov w1, #4
mov w2, #1
bl _XXH32
str w0, [sp, #40]
ldr w8, [sp, #40]
mov w10, #10000
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
stur w8, [x29, #-20]
b LBB0_39
LBB0_39:
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-40]
adrp x9, _FUZ_compressibility_default@GOTPAGE
ldr x9, [x9, _FUZ_compressibility_default@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_41
b LBB0_40
LBB0_40:
ldur w9, [x29, #-40]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
b LBB0_41
LBB0_41:
ldur w8, [x29, #-60]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_43
b LBB0_42
LBB0_42:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w1, [x8]
mov w0, #3
bl _MAX
ldr x8, [sp, #24] ; 8-byte Folded Reload
str w0, [x8]
ldur w0, [x29, #-20]
ldur s1, [x29, #-40]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
ldur w1, [x29, #-60]
bl _FUZ_mallocTests
stur w0, [x29, #-4]
b LBB0_52
LBB0_43:
ldur w8, [x29, #-32]
ldur w9, [x29, #-36]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_45
b LBB0_44
LBB0_44:
ldur w8, [x29, #-36]
stur w8, [x29, #-32]
b LBB0_45
LBB0_45:
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_47
b LBB0_46
LBB0_46:
ldur s1, [x29, #-40]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
mov w0, #0
bl _basicUnitTests
stur w0, [x29, #-44]
b LBB0_47
LBB0_47:
ldur w8, [x29, #-44]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_49
b LBB0_48
LBB0_48:
ldur w0, [x29, #-20]
ldur w1, [x29, #-32]
ldur w2, [x29, #-36]
ldur w3, [x29, #-52]
ldur s1, [x29, #-40]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
ldur w4, [x29, #-56]
bl _fuzzerTests
stur w0, [x29, #-44]
b LBB0_49
LBB0_49:
ldur w8, [x29, #-48]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_51
b LBB0_50
LBB0_50:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _DISPLAY
bl _getchar
str w0, [sp, #36]
b LBB0_51
LBB0_51:
ldur w8, [x29, #-44]
stur w8, [x29, #-4]
b LBB0_52
LBB0_52:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_29-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_20-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_15-Ltmp0
.long LBB0_19-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_18-Ltmp0
.long LBB0_17-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_27-Ltmp0
.long LBB0_28-Ltmp0
.long LBB0_32-Ltmp0
.long LBB0_16-Ltmp0
; -- End function
.comm _nbTestsDefault,4,2 ; @nbTestsDefault
.comm _FUZ_compressibility_default,4,2 ; @FUZ_compressibility_default
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "--memtest="
l_.str.1: ; @.str.1
.asciz "--memtest"
l_.str.2: ; @.str.2
.asciz "--no-big-tests"
.comm _g_displayLevel,4,2 ; @g_displayLevel
l_.str.3: ; @.str.3
.asciz "Starting zstd tester (%i-bits, %s)\n"
.comm _ZSTD_VERSION_STRING,4,2 ; @ZSTD_VERSION_STRING
l_.str.4: ; @.str.4
.asciz "Seed = %u\n"
l_.str.5: ; @.str.5
.asciz "Compressibility : %i%%\n"
l_.str.6: ; @.str.6
.asciz "Press Enter \n"
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI0_0:
.quad 0x4059000000000000 ## double 100
.section __TEXT,__text,regular,pure_instructions
.globl _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
subq $112, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -20(%rbp)
movl $0, -24(%rbp)
movq _nbTestsDefault@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -32(%rbp)
movl $0, -36(%rbp)
movq _FUZ_compressibility_default@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -40(%rbp)
movl $0, -44(%rbp)
movl $0, -48(%rbp)
movl $0, -52(%rbp)
movl $1, -56(%rbp)
movl $0, -60(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -72(%rbp)
movl $1, -28(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_12 Depth 2
movl -28(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_36
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -80(%rbp)
cmpq $0, -80(%rbp)
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_35
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB0_34
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
leaq -80(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
leaq -80(%rbp), %rdi
callq _readU32FromChar
movl %eax, -60(%rbp)
jmp LBB0_35
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movl $1, -60(%rbp)
jmp LBB0_35
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_11
## %bb.10: ## in Loop: Header=BB0_1 Depth=1
movl $0, -56(%rbp)
jmp LBB0_35
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
LBB0_12: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB0_33
## %bb.13: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
movsbl (%rax), %eax
addl $-80, %eax
movl %eax, %ecx
movq %rcx, -104(%rbp) ## 8-byte Spill
subl $38, %eax
ja LBB0_31
## %bb.52: ## in Loop: Header=BB0_12 Depth=2
movq -104(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_14:
movq -72(%rbp), %rdi
callq _FUZ_usage
movl %eax, -4(%rbp)
jmp LBB0_51
LBB0_15: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $1, %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_32
LBB0_16: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %ecx
addl $-1, %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
jmp LBB0_32
LBB0_17: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $1, -48(%rbp)
jmp LBB0_32
LBB0_18: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $0, -52(%rbp)
leaq -80(%rbp), %rdi
callq _readU32FromChar
movl %eax, -32(%rbp)
jmp LBB0_32
LBB0_19: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $0, -32(%rbp)
leaq -80(%rbp), %rdi
callq _readU32FromChar
movl %eax, -52(%rbp)
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $115, %eax
jne LBB0_21
## %bb.20: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
LBB0_21: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $109, %eax
jne LBB0_23
## %bb.22: ## in Loop: Header=BB0_12 Depth=2
imull $60, -52(%rbp), %eax
movl %eax, -52(%rbp)
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
LBB0_23: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
movsbl (%rax), %eax
cmpl $110, %eax
jne LBB0_25
## %bb.24: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
LBB0_25: ## in Loop: Header=BB0_12 Depth=2
jmp LBB0_32
LBB0_26: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
movl $1, -24(%rbp)
leaq -80(%rbp), %rdi
callq _readU32FromChar
movl %eax, -20(%rbp)
jmp LBB0_32
LBB0_27: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
leaq -80(%rbp), %rdi
callq _readU32FromChar
movl %eax, -36(%rbp)
jmp LBB0_32
LBB0_28: ## in Loop: Header=BB0_12 Depth=2
movq -80(%rbp), %rax
addq $1, %rax
movq %rax, -80(%rbp)
leaq -80(%rbp), %rdi
callq _readU32FromChar
movl %eax, -40(%rbp)
cmpl $100, -40(%rbp)
jle LBB0_30
## %bb.29: ## in Loop: Header=BB0_12 Depth=2
movl $100, -40(%rbp)
LBB0_30: ## in Loop: Header=BB0_12 Depth=2
jmp LBB0_32
LBB0_31:
movq -72(%rbp), %rdi
callq _FUZ_usage
movl $1, -4(%rbp)
jmp LBB0_51
LBB0_32: ## in Loop: Header=BB0_12 Depth=2
jmp LBB0_12
LBB0_33: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_34
LBB0_34: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_35
LBB0_35: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_36:
movq _ZSTD_VERSION_STRING@GOTPCREL(%rip), %rax
movl (%rax), %edx
leaq L_.str.3(%rip), %rdi
movl $64, %esi
movb $0, %al
callq _DISPLAY
cmpl $0, -24(%rbp)
jne LBB0_38
## %bb.37:
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, -84(%rbp)
leaq -84(%rbp), %rdi
movl $4, %esi
movl $1, %edx
callq _XXH32
movl %eax, -88(%rbp)
movl -88(%rbp), %eax
movl $10000, %ecx ## imm = 0x2710
cltd
idivl %ecx
movl %edx, -20(%rbp)
LBB0_38:
movl -20(%rbp), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -40(%rbp), %eax
movq _FUZ_compressibility_default@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
je LBB0_40
## %bb.39:
movl -40(%rbp), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_40:
cmpl $0, -60(%rbp)
je LBB0_42
## %bb.41:
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $3, %edi
callq _MAX
movl %eax, %ecx
movq _g_displayLevel@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movl -20(%rbp), %edi
cvtsi2sdl -40(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movl -60(%rbp), %esi
callq _FUZ_mallocTests
movl %eax, -4(%rbp)
jmp LBB0_51
LBB0_42:
movl -32(%rbp), %eax
cmpl -36(%rbp), %eax
jge LBB0_44
## %bb.43:
movl -36(%rbp), %eax
movl %eax, -32(%rbp)
LBB0_44:
cmpl $0, -36(%rbp)
jne LBB0_46
## %bb.45:
cvtsi2sdl -40(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
xorl %edi, %edi
callq _basicUnitTests
movl %eax, -44(%rbp)
LBB0_46:
cmpl $0, -44(%rbp)
jne LBB0_48
## %bb.47:
movl -20(%rbp), %edi
movl -32(%rbp), %esi
movl -36(%rbp), %edx
movl -52(%rbp), %ecx
cvtsi2sdl -40(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
movl -56(%rbp), %r8d
callq _fuzzerTests
movl %eax, -44(%rbp)
LBB0_48:
cmpl $0, -48(%rbp)
je LBB0_50
## %bb.49:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _DISPLAY
movb $0, %al
callq _getchar
movl %eax, -92(%rbp)
LBB0_50:
movl -44(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_51:
movl -4(%rbp), %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
.long L0_0_set_28
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_19
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_14
.long L0_0_set_18
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_31
.long L0_0_set_17
.long L0_0_set_16
.long L0_0_set_31
.long L0_0_set_26
.long L0_0_set_27
.long L0_0_set_31
.long L0_0_set_15
.end_data_region
## -- End function
.comm _nbTestsDefault,4,2 ## @nbTestsDefault
.comm _FUZ_compressibility_default,4,2 ## @FUZ_compressibility_default
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "--memtest="
L_.str.1: ## @.str.1
.asciz "--memtest"
L_.str.2: ## @.str.2
.asciz "--no-big-tests"
.comm _g_displayLevel,4,2 ## @g_displayLevel
L_.str.3: ## @.str.3
.asciz "Starting zstd tester (%i-bits, %s)\n"
.comm _ZSTD_VERSION_STRING,4,2 ## @ZSTD_VERSION_STRING
L_.str.4: ## @.str.4
.asciz "Seed = %u\n"
L_.str.5: ## @.str.5
.asciz "Compressibility : %i%%\n"
L_.str.6: ## @.str.6
.asciz "Press Enter \n"
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_fuzzer.c_main.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
adrp x8, _dictionaries@GOTPAGE
ldr x8, [x8, _dictionaries@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldr x0, [x8, #8]
ldr x8, [sp, #24]
ldr w1, [x8]
mov w2, #1
bl _ZSTD_createCDict
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x0, [sp, #16]
bl _ZSTD_freeCDict
mov w8, #1
stur w8, [x29, #-4]
b LBB0_9
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldr x0, [x8, #8]
ldr x8, [sp, #24]
ldr w1, [x8]
bl _ZSTD_createDDict
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x0, [sp, #8]
bl _ZSTD_freeDDict
mov w8, #2
stur w8, [x29, #-4]
b LBB0_9
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
add x8, x8, #16
str x8, [sp, #24]
b LBB0_1
LBB0_8:
stur wzr, [x29, #-4]
b LBB0_9
LBB0_9:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _dictionaries,8,3 ; @dictionaries
.subsections_via_symbols
|
.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
subq $48, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq _dictionaries@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
cmpq $0, 8(%rax)
je LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rdi
movq -24(%rbp), %rax
movl (%rax), %esi
movl $1, %edx
callq _ZSTD_createCDict
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
je LBB0_4
## %bb.3:
movq -32(%rbp), %rdi
callq _ZSTD_freeCDict
movl $1, -4(%rbp)
jmp LBB0_9
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rdi
movq -24(%rbp), %rax
movl (%rax), %esi
callq _ZSTD_createDDict
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
je LBB0_6
## %bb.5:
movq -40(%rbp), %rdi
callq _ZSTD_freeDDict
movl $2, -4(%rbp)
jmp LBB0_9
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $16, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_8:
movl $0, -4(%rbp)
LBB0_9:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _dictionaries,8,3 ## @dictionaries
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_invalidDictionaries.c_main.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
bl _testSimpleAPI
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w8, [sp, #8]
stur w8, [x29, #-4]
b LBB0_7
LBB0_2:
bl _testStreamingAPI
str w0, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr w8, [sp, #4]
stur w8, [x29, #-4]
b LBB0_7
LBB0_4:
bl _testFrameDecoding
str w0, [sp]
ldr w8, [sp]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr w8, [sp]
stur w8, [x29, #-4]
b LBB0_7
LBB0_6:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
stur wzr, [x29, #-4]
b LBB0_7
LBB0_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "OK\n"
.subsections_via_symbols
|
.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
subq $16, %rsp
movl $0, -4(%rbp)
movb $0, %al
callq _testSimpleAPI
movl %eax, -8(%rbp)
cmpl $0, -8(%rbp)
je LBB0_2
## %bb.1:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_7
LBB0_2:
movb $0, %al
callq _testStreamingAPI
movl %eax, -12(%rbp)
cmpl $0, -12(%rbp)
je LBB0_4
## %bb.3:
movl -12(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_7
LBB0_4:
movb $0, %al
callq _testFrameDecoding
movl %eax, -16(%rbp)
cmpl $0, -16(%rbp)
je LBB0_6
## %bb.5:
movl -16(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_7
LBB0_6:
leaq L_.str(%rip), %rdi
callq _DISPLAY
movl $0, -4(%rbp)
LBB0_7:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "OK\n"
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_legacy.c_main.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testSimpleAPI
_testSimpleAPI: ; @testSimpleAPI
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
adrp x8, _EXPECTED@GOTPAGE
ldr x8, [x8, _EXPECTED@GOTPAGEOFF]
ldr w0, [x8]
bl _strlen
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
bl _malloc
str x0, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_12
LBB0_2:
ldr x0, [sp, #24]
ldur x1, [x29, #-16]
adrp x8, _COMPRESSED@GOTPAGE
ldr x8, [x8, _COMPRESSED@GOTPAGEOFF]
ldr w2, [x8]
adrp x8, _COMPRESSED_SIZE@GOTPAGE
ldr x8, [x8, _COMPRESSED_SIZE@GOTPAGEOFF]
ldr w3, [x8]
bl _ZSTD_decompress
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_3
LBB0_3:
ldr x8, [sp, #16]
adrp x9, _ZSTD_error_prefix_unknown@GOTPAGE
ldr x9, [x9, _ZSTD_error_prefix_unknown@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
b LBB0_6
LBB0_5:
ldr x0, [sp, #16]
bl _ZSTD_getErrorName
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
b LBB0_6
LBB0_6:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_12
LBB0_7:
ldr x8, [sp, #16]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
b LBB0_9
LBB0_9:
adrp x8, _EXPECTED@GOTPAGE
ldr x8, [x8, _EXPECTED@GOTPAGEOFF]
ldr w0, [x8]
ldr x1, [sp, #24]
ldur x2, [x29, #-16]
bl _memcmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_12
LBB0_11:
ldr x0, [sp, #24]
bl _free
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
stur wzr, [x29, #-4]
b LBB0_12
LBB0_12:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _EXPECTED,4,2 ; @EXPECTED
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "ERROR: Not enough memory!\n"
.comm _COMPRESSED,4,2 ; @COMPRESSED
.comm _COMPRESSED_SIZE,4,2 ; @COMPRESSED_SIZE
.comm _ZSTD_error_prefix_unknown,8,3 ; @ZSTD_error_prefix_unknown
l_.str.1: ; @.str.1
.asciz "ERROR: Invalid frame magic number, was this compiled without legacy support?\n"
l_.str.2: ; @.str.2
.asciz "ERROR: %s\n"
l_.str.3: ; @.str.3
.asciz "ERROR: Wrong decoded size\n"
l_.str.4: ; @.str.4
.asciz "ERROR: Wrong decoded output produced\n"
l_.str.5: ; @.str.5
.asciz "Simple API OK\n"
.no_dead_strip _testSimpleAPI
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testSimpleAPI
_testSimpleAPI: ## @testSimpleAPI
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq _EXPECTED@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _strlen
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _malloc
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_12
LBB0_2:
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
movq _COMPRESSED@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _COMPRESSED_SIZE@GOTPCREL(%rip), %rax
movl (%rax), %ecx
callq _ZSTD_decompress
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_7
## %bb.3:
movq -32(%rbp), %rax
movq _ZSTD_error_prefix_unknown@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_5
## %bb.4:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
jmp LBB0_6
LBB0_5:
movq -32(%rbp), %rdi
callq _ZSTD_getErrorName
movl %eax, %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_6:
movl $1, -4(%rbp)
jmp LBB0_12
LBB0_7:
movq -32(%rbp), %rax
cmpq -16(%rbp), %rax
je LBB0_9
## %bb.8:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_9:
movq _EXPECTED@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movq -16(%rbp), %rdx
callq _memcmp
cmpq $0, %rax
je LBB0_11
## %bb.10:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_12
LBB0_11:
movq -24(%rbp), %rdi
callq _free
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $0, -4(%rbp)
LBB0_12:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EXPECTED,4,2 ## @EXPECTED
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "ERROR: Not enough memory!\n"
.comm _COMPRESSED,4,2 ## @COMPRESSED
.comm _COMPRESSED_SIZE,4,2 ## @COMPRESSED_SIZE
.comm _ZSTD_error_prefix_unknown,8,3 ## @ZSTD_error_prefix_unknown
L_.str.1: ## @.str.1
.asciz "ERROR: Invalid frame magic number, was this compiled without legacy support?\n"
L_.str.2: ## @.str.2
.asciz "ERROR: %s\n"
L_.str.3: ## @.str.3
.asciz "ERROR: Wrong decoded size\n"
L_.str.4: ## @.str.4
.asciz "ERROR: Wrong decoded output produced\n"
L_.str.5: ## @.str.5
.asciz "Simple API OK\n"
.no_dead_strip _testSimpleAPI
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_legacy.c_testSimpleAPI.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testFrameDecoding
_testFrameDecoding: ; @testFrameDecoding
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
adrp x8, _EXPECTED@GOTPAGE
ldr x8, [x8, _EXPECTED@GOTPAGEOFF]
ldr w0, [x8]
bl _strlen
str x0, [sp, #8] ; 8-byte Folded Spill
adrp x8, _COMPRESSED@GOTPAGE
ldr x8, [x8, _COMPRESSED@GOTPAGEOFF]
ldr x0, [x8]
adrp x8, _COMPRESSED_SIZE@GOTPAGE
ldr x8, [x8, _COMPRESSED_SIZE@GOTPAGEOFF]
ldr x1, [x8]
bl _ZSTD_decompressBound
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
subs x8, x0, x8
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_11
LBB0_2:
adrp x8, _COMPRESSED@GOTPAGE
ldr x8, [x8, _COMPRESSED@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-16]
adrp x8, _COMPRESSED_SIZE@GOTPAGE
ldr x8, [x8, _COMPRESSED_SIZE@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #24]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldur x0, [x29, #-16]
ldr x1, [sp, #24]
bl _ZSTD_findFrameCompressedSize
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x0, [sp, #16]
bl _ZSTD_getErrorName
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_11
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #16]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_11
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldr x9, [sp, #16]
ldur x8, [x29, #-16]
add x8, x8, x9
stur x8, [x29, #-16]
ldr x9, [sp, #16]
ldr x8, [sp, #24]
subs x8, x8, x9
str x8, [sp, #24]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
b LBB0_10
LBB0_9: ; in Loop: Header=BB0_3 Depth=1
b LBB0_3
LBB0_10:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
stur wzr, [x29, #-4]
b LBB0_11
LBB0_11:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _EXPECTED,4,2 ; @EXPECTED
.comm _COMPRESSED,8,3 ; @COMPRESSED
.comm _COMPRESSED_SIZE,8,3 ; @COMPRESSED_SIZE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "ERROR: ZSTD_decompressBound: decompressed bound too small\n"
l_.str.1: ; @.str.1
.asciz "ERROR: ZSTD_findFrameCompressedSize: %s\n"
l_.str.2: ; @.str.2
.asciz "ERROR: ZSTD_findFrameCompressedSize: expected frameSize to align with src buffer"
l_.str.3: ; @.str.3
.asciz "Frame Decoding OK\n"
.no_dead_strip _testFrameDecoding
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testFrameDecoding
_testFrameDecoding: ## @testFrameDecoding
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq _EXPECTED@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _strlen
movq %rax, -40(%rbp) ## 8-byte Spill
movq _COMPRESSED@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq _COMPRESSED_SIZE@GOTPCREL(%rip), %rax
movq (%rax), %rsi
callq _ZSTD_decompressBound
movq %rax, %rcx
movq -40(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
jle LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_11
LBB0_2:
movq _COMPRESSED@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movq _COMPRESSED_SIZE@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
callq _ZSTD_findFrameCompressedSize
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_5
## %bb.4:
movq -32(%rbp), %rdi
callq _ZSTD_getErrorName
movl %eax, %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_11
LBB0_5: ## in Loop: Header=BB0_3 Depth=1
movq -32(%rbp), %rax
cmpq -24(%rbp), %rax
jbe LBB0_7
## %bb.6:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_11
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
movq -32(%rbp), %rax
addq -16(%rbp), %rax
movq %rax, -16(%rbp)
movq -32(%rbp), %rcx
movq -24(%rbp), %rax
subq %rcx, %rax
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_9
## %bb.8:
jmp LBB0_10
LBB0_9: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_3
LBB0_10:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $0, -4(%rbp)
LBB0_11:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _EXPECTED,4,2 ## @EXPECTED
.comm _COMPRESSED,8,3 ## @COMPRESSED
.comm _COMPRESSED_SIZE,8,3 ## @COMPRESSED_SIZE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "ERROR: ZSTD_decompressBound: decompressed bound too small\n"
L_.str.1: ## @.str.1
.asciz "ERROR: ZSTD_findFrameCompressedSize: %s\n"
L_.str.2: ## @.str.2
.asciz "ERROR: ZSTD_findFrameCompressedSize: expected frameSize to align with src buffer"
L_.str.3: ## @.str.3
.asciz "Frame Decoding OK\n"
.no_dead_strip _testFrameDecoding
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_legacy.c_testFrameDecoding.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testStreamingAPI
_testStreamingAPI: ; @testStreamingAPI
.cfi_startproc
; %bb.0:
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, #144] ; 16-byte Folded Spill
add x29, sp, #144
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-8]
bl _ZSTD_DStreamOutSize
stur x0, [x29, #-16]
ldur x0, [x29, #-16]
bl _malloc
stur x0, [x29, #-24]
bl _ZSTD_createDStream
stur x0, [x29, #-32]
adrp x8, _COMPRESSED@GOTPAGE
ldr x8, [x8, _COMPRESSED@GOTPAGEOFF]
ldrsw x8, [x8]
stur x8, [x29, #-64]
adrp x8, _COMPRESSED_SIZE@GOTPAGE
ldr x8, [x8, _COMPRESSED_SIZE@GOTPAGEOFF]
ldrsw x8, [x8]
stur x8, [x29, #-56]
stur wzr, [x29, #-48]
stur wzr, [x29, #-44]
stur wzr, [x29, #-40]
str xzr, [sp, #72]
mov w8, #1
str w8, [sp, #68]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_22
LBB0_2:
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
ldur x0, [x29, #-24]
bl _free
mov w8, #1
stur w8, [x29, #-4]
b LBB0_22
LBB0_4:
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-24]
str x8, [sp, #24]
ldur x8, [x29, #-16]
str x8, [sp, #32]
str xzr, [sp, #40]
str xzr, [sp, #48]
str wzr, [sp, #56]
ldr w8, [sp, #68]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x0, [x29, #-32]
bl _ZSTD_initDStream
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x0, [sp, #16]
bl _ZSTD_getErrorName
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-8]
b LBB0_19
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_5 Depth=1
ldur x0, [x29, #-32]
add x1, sp, #24
sub x2, x29, #64
bl _ZSTD_decompressStream
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x0, [sp, #8]
bl _ZSTD_getErrorName
mov x9, sp
; implicit-def: $x8
mov x8, x0
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-8]
b LBB0_19
LBB0_11: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_5 Depth=1
mov w8, #1
str w8, [sp, #68]
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_5 Depth=1
ldur x0, [x29, #-24]
adrp x8, _EXPECTED@GOTPAGE
ldr x8, [x8, _EXPECTED@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #72]
add x1, x8, x9
ldr x2, [sp, #40]
bl _memcmp
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-8]
b LBB0_19
LBB0_15: ; in Loop: Header=BB0_5 Depth=1
ldr x9, [sp, #40]
ldr x8, [sp, #72]
add x8, x8, x9
str x8, [sp, #72]
ldur x8, [x29, #-64]
ldur x9, [x29, #-56]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_18
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #40]
ldr x9, [sp, #48]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
b LBB0_19
LBB0_18: ; in Loop: Header=BB0_5 Depth=1
b LBB0_5
LBB0_19:
ldur x0, [x29, #-24]
bl _free
ldur x0, [x29, #-32]
bl _ZSTD_freeDStream
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
b LBB0_21
LBB0_21:
ldur w8, [x29, #-8]
stur w8, [x29, #-4]
b LBB0_22
LBB0_22:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #144] ; 16-byte Folded Reload
add sp, sp, #160
ret
.cfi_endproc
; -- End function
.comm _COMPRESSED,4,2 ; @COMPRESSED
.comm _COMPRESSED_SIZE,4,2 ; @COMPRESSED_SIZE
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "ERROR: Could not allocate memory\n"
l_.str.1: ; @.str.1
.asciz "ERROR: Could not create dstream\n"
l_.str.2: ; @.str.2
.asciz "ERROR: ZSTD_initDStream: %s\n"
l_.str.3: ; @.str.3
.asciz "ERROR: ZSTD_decompressStream: %s\n"
.comm _EXPECTED,8,3 ; @EXPECTED
l_.str.4: ; @.str.4
.asciz "ERROR: Wrong decoded output produced\n"
l_.str.5: ; @.str.5
.asciz "Streaming API OK\n"
.no_dead_strip _testStreamingAPI
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testStreamingAPI
_testStreamingAPI: ## @testStreamingAPI
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $144, %rsp
movl $0, -8(%rbp)
movb $0, %al
callq _ZSTD_DStreamOutSize
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
callq _malloc
movq %rax, -24(%rbp)
movb $0, %al
callq _ZSTD_createDStream
movq %rax, -32(%rbp)
movq _COMPRESSED@GOTPCREL(%rip), %rax
movslq (%rax), %rax
movq %rax, -64(%rbp)
movq _COMPRESSED_SIZE@GOTPCREL(%rip), %rax
movslq (%rax), %rax
movq %rax, -56(%rbp)
movl $0, -48(%rbp)
movl $0, -44(%rbp)
movl $0, -40(%rbp)
movq $0, -72(%rbp)
movl $1, -76(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_22
LBB0_2:
cmpq $0, -32(%rbp)
jne LBB0_4
## %bb.3:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -24(%rbp), %rdi
callq _free
movl $1, -4(%rbp)
jmp LBB0_22
LBB0_4:
jmp LBB0_5
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq %rax, -120(%rbp)
movq -16(%rbp), %rax
movq %rax, -112(%rbp)
movq $0, -104(%rbp)
movq $0, -96(%rbp)
movl $0, -88(%rbp)
cmpl $0, -76(%rbp)
je LBB0_9
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -32(%rbp), %rdi
callq _ZSTD_initDStream
movq %rax, -128(%rbp)
movq -128(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_8
## %bb.7:
movq -128(%rbp), %rdi
callq _ZSTD_getErrorName
movl %eax, %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -8(%rbp)
jmp LBB0_19
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_5 Depth=1
movq -32(%rbp), %rdi
leaq -120(%rbp), %rsi
leaq -64(%rbp), %rdx
callq _ZSTD_decompressStream
movq %rax, -136(%rbp)
movq -136(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_11
## %bb.10:
movq -136(%rbp), %rdi
callq _ZSTD_getErrorName
movl %eax, %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -8(%rbp)
jmp LBB0_19
LBB0_11: ## in Loop: Header=BB0_5 Depth=1
cmpq $0, -136(%rbp)
jne LBB0_13
## %bb.12: ## in Loop: Header=BB0_5 Depth=1
movl $1, -76(%rbp)
LBB0_13: ## in Loop: Header=BB0_5 Depth=1
movq -24(%rbp), %rdi
movq _EXPECTED@GOTPCREL(%rip), %rax
movq (%rax), %rsi
addq -72(%rbp), %rsi
movq -104(%rbp), %rdx
callq _memcmp
cmpq $0, %rax
je LBB0_15
## %bb.14:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -8(%rbp)
jmp LBB0_19
LBB0_15: ## in Loop: Header=BB0_5 Depth=1
movq -104(%rbp), %rax
addq -72(%rbp), %rax
movq %rax, -72(%rbp)
movq -64(%rbp), %rax
cmpq -56(%rbp), %rax
jne LBB0_18
## %bb.16: ## in Loop: Header=BB0_5 Depth=1
movq -104(%rbp), %rax
cmpq -96(%rbp), %rax
jge LBB0_18
## %bb.17:
jmp LBB0_19
LBB0_18: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_5
LBB0_19:
movq -24(%rbp), %rdi
callq _free
movq -32(%rbp), %rdi
callq _ZSTD_freeDStream
cmpl $0, -8(%rbp)
jne LBB0_21
## %bb.20:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_21:
movl -8(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_22:
movl -4(%rbp), %eax
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _COMPRESSED,4,2 ## @COMPRESSED
.comm _COMPRESSED_SIZE,4,2 ## @COMPRESSED_SIZE
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "ERROR: Could not allocate memory\n"
L_.str.1: ## @.str.1
.asciz "ERROR: Could not create dstream\n"
L_.str.2: ## @.str.2
.asciz "ERROR: ZSTD_initDStream: %s\n"
L_.str.3: ## @.str.3
.asciz "ERROR: ZSTD_decompressStream: %s\n"
.comm _EXPECTED,8,3 ## @EXPECTED
L_.str.4: ## @.str.4
.asciz "ERROR: Wrong decoded output produced\n"
L_.str.5: ## @.str.5
.asciz "Streaming API OK\n"
.no_dead_strip _testStreamingAPI
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_legacy.c_testStreamingAPI.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function compress
_compress: ; @compress
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur w1, [x29, #-20]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
ldur x8, [x29, #-32]
str x8, [sp, #32]
ldur x8, [x29, #-40]
str x8, [sp, #40]
str xzr, [sp, #48]
str xzr, [sp, #56]
str wzr, [sp, #64]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #48]
ldr x9, [sp, #56]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add x1, sp, #28
str w8, [sp, #28]
ldur x0, [x29, #-16]
add x2, sp, #32
bl _ZSTD_compressStream
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_8
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_5:
ldur w8, [x29, #-20]
add x1, sp, #12
str w8, [sp, #12]
ldur x0, [x29, #-16]
bl _ZSTD_flushStream
str x0, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_8
LBB0_7:
stur wzr, [x29, #-4]
b LBB0_8
LBB0_8:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.no_dead_strip _compress
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function compress
_compress: ## @compress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq -32(%rbp), %rax
movq %rax, -80(%rbp)
movq -40(%rbp), %rax
movq %rax, -72(%rbp)
movq $0, -64(%rbp)
movq $0, -56(%rbp)
movl $0, -48(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -64(%rbp), %rax
cmpq -56(%rbp), %rax
jge LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
movl %eax, -84(%rbp)
movq -16(%rbp), %rdi
leaq -84(%rbp), %rsi
leaq -80(%rbp), %rdx
callq _ZSTD_compressStream
movq %rax, -96(%rbp)
movq -96(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_4
## %bb.3:
movl $1, -4(%rbp)
jmp LBB0_8
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_5:
movl -20(%rbp), %eax
movl %eax, -100(%rbp)
movq -16(%rbp), %rdi
leaq -100(%rbp), %rsi
callq _ZSTD_flushStream
movq %rax, -112(%rbp)
cmpq $0, -112(%rbp)
je LBB0_7
## %bb.6:
movl $1, -4(%rbp)
jmp LBB0_8
LBB0_7:
movl $0, -4(%rbp)
LBB0_8:
movl -4(%rbp), %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _compress
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_longmatch.c_compress.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #320
.cfi_def_cfa_offset 320
stp x28, x27, [sp, #288] ; 16-byte Folded Spill
stp x29, x30, [sp, #304] ; 16-byte Folded Spill
add x29, sp, #304
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
; implicit-def: $w8
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
stur wzr, [x29, #-92]
stur w0, [x29, #-96]
stur x1, [x29, #-104]
bl _ZSTD_createCStream
stur x0, [x29, #-112]
ldur x8, [x29, #-112]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #1
stur w8, [x29, #-92]
b LBB0_26
LBB0_2:
sub x0, x29, #140
str x0, [sp, #16] ; 8-byte Folded Spill
mov w1, #0
str w1, [sp, #28] ; 4-byte Folded Spill
mov w2, #28
bl _memset
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w4, [sp, #28] ; 4-byte Folded Reload
mov w9, #18
stur w9, [x29, #-140]
mov w9, #13
stur w9, [x29, #-136]
mov w9, #14
stur w9, [x29, #-132]
mov w9, #1
stur w9, [x29, #-128]
mov w9, #7
stur w9, [x29, #-124]
mov w9, #16
stur w9, [x29, #-120]
adrp x9, _ZSTD_fast@GOTPAGE
ldr x9, [x9, _ZSTD_fast@GOTPAGEOFF]
ldr w9, [x9]
stur w9, [x29, #-116]
ldur w9, [x29, #-140]
str w9, [sp, #148]
ldur x0, [x29, #-112]
ldur q0, [x29, #-140]
add x3, sp, #112
str q0, [sp, #112]
ldur q0, [x8, #12]
stur q0, [x3, #12]
mov x1, #0
mov x2, x4
bl _ZSTD_initCStream_advanced
str x0, [sp, #152]
ldr x0, [sp, #152]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #2
stur w8, [x29, #-92]
b LBB0_26
LBB0_4:
ldr w8, [sp, #8] ; 4-byte Folded Reload
str wzr, [sp, #108]
str w8, [sp, #104]
ldr w9, [sp, #148]
mov w8, #1
str w8, [sp, #12] ; 4-byte Folded Spill
lsl w10, w8, w9
; implicit-def: $x9
mov x9, x10
sxtw x9, w9
str x9, [sp, #96]
str xzr, [sp, #88]
ldr w9, [sp, #148]
lsl w0, w8, w9
bl _malloc
ldr w8, [sp, #12] ; 4-byte Folded Reload
str x0, [sp, #80]
ldr w9, [sp, #148]
lsl w0, w8, w9
bl _ZSTD_compressBound
bl _malloc
ldr w8, [sp, #12] ; 4-byte Folded Reload
str x0, [sp, #72]
ldr x9, [sp, #72]
str x9, [sp, #56]
ldr w9, [sp, #148]
lsl w0, w8, w9
bl _ZSTD_compressBound
str w0, [sp, #64]
str wzr, [sp, #68]
sub x0, x29, #87
adrp x1, l___const.main.match@PAGE
add x1, x1, l___const.main.match@PAGEOFF
mov x2, #63
bl _memcpy
ldr w8, [sp, #12] ; 4-byte Folded Reload
ldr w9, [sp, #148]
lsl w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
subs x8, x8, #126
str x8, [sp, #48]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
str xzr, [sp, #40]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #40]
subs x8, x8, #63
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr x9, [sp, #40]
sub x8, x29, #87
add x8, x8, x9
ldrb w8, [x8]
ldr x9, [sp, #80]
ldr x10, [sp, #40]
add x9, x9, x10
strb w8, [x9]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #40]
add x8, x8, #1
str x8, [sp, #40]
b LBB0_5
LBB0_8:
str xzr, [sp, #40]
b LBB0_9
LBB0_9: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #40]
ldr x9, [sp, #48]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
bl _rand
and x8, x0, #0xff
ldr x9, [sp, #80]
ldr x10, [sp, #40]
add x10, x10, #63
; kill: def $w8 killed $w8 killed $x8
strb w8, [x9, x10]
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_9 Depth=1
ldr x8, [sp, #40]
add x8, x8, #1
str x8, [sp, #40]
b LBB0_9
LBB0_12:
str xzr, [sp, #40]
b LBB0_13
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #40]
subs x8, x8, #63
cset w8, hs
tbnz w8, #0, LBB0_16
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
ldr x9, [sp, #40]
sub x8, x29, #87
add x8, x8, x9
ldrb w8, [x8]
ldr x9, [sp, #80]
ldr x10, [sp, #48]
add x10, x10, #63
ldr x11, [sp, #40]
add x10, x10, x11
add x9, x9, x10
strb w8, [x9]
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_13 Depth=1
ldr x8, [sp, #40]
add x8, x8, #1
str x8, [sp, #40]
b LBB0_13
LBB0_16:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldur x0, [x29, #-112]
ldr x3, [sp, #80]
ldr x4, [sp, #96]
ldr x1, [sp, #56]
ldr x2, [sp, #64]
bl _compress
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
mov w8, #1
stur w8, [x29, #-92]
b LBB0_26
LBB0_18:
ldr x9, [sp, #96]
ldrsw x8, [sp, #108]
add x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #108]
b LBB0_19
LBB0_19: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #108]
mov w9, #-2147483648
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_25
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_19 Depth=1
bl _rand
ldr x8, [sp, #96]
ldr x9, [sp, #88]
subs x8, x8, x9
add x9, x8, #1
udiv x8, x0, x9
mul x8, x8, x9
subs x8, x0, x8
str x8, [sp, #32]
ldr x8, [sp, #88]
ldr x9, [sp, #96]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_19 Depth=1
str xzr, [sp, #88]
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_19 Depth=1
ldur x0, [x29, #-112]
ldr x8, [sp, #80]
ldr x9, [sp, #88]
add x3, x8, x9
ldr x4, [sp, #32]
ldr x1, [sp, #56]
ldr x2, [sp, #64]
bl _compress
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23:
mov w8, #1
stur w8, [x29, #-92]
b LBB0_26
LBB0_24: ; in Loop: Header=BB0_19 Depth=1
ldr x9, [sp, #32]
ldr x8, [sp, #88]
add x8, x8, x9
str x8, [sp, #88]
ldr x9, [sp, #32]
ldrsw x8, [sp, #108]
add x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #108]
b LBB0_19
LBB0_25:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x0, [sp, #80]
bl _free
ldr x0, [sp, #72]
bl _free
stur wzr, [x29, #-92]
b LBB0_26
LBB0_26:
ldur w8, [x29, #-92]
str w8, [sp, #4] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_28
b LBB0_27
LBB0_27:
bl ___stack_chk_fail
LBB0_28:
ldr w0, [sp, #4] ; 4-byte Folded Reload
ldp x29, x30, [sp, #304] ; 16-byte Folded Reload
ldp x28, x27, [sp, #288] ; 16-byte Folded Reload
add sp, sp, #320
ret
.cfi_endproc
; -- End function
.comm _ZSTD_fast,4,2 ; @ZSTD_fast
.section __TEXT,__cstring,cstring_literals
l___const.main.match: ; @__const.main.match
.asciz "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
l_.str: ; @.str
.asciz "\n === Long Match Test === \n"
l_.str.1: ; @.str.1
.asciz "Creating random data to produce long matches \n"
l_.str.2: ; @.str.2
.asciz "Compressing, trying to generate a segfault \n"
l_.str.3: ; @.str.3
.asciz "Compression completed successfully (no error triggered)\n"
.subsections_via_symbols
|
.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
subq $272, %rsp ## imm = 0x110
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -84(%rbp)
movl %edi, -88(%rbp)
movq %rsi, -96(%rbp)
movb $0, %al
callq _ZSTD_createCStream
movq %rax, -104(%rbp)
cmpq $0, -104(%rbp)
jne LBB0_2
## %bb.1:
movl $1, -84(%rbp)
jmp LBB0_26
LBB0_2:
leaq -136(%rbp), %rdi
xorl %esi, %esi
movl $28, %edx
callq _memset
movl $18, -136(%rbp)
movl $13, -132(%rbp)
movl $14, -128(%rbp)
movl $1, -124(%rbp)
movl $7, -120(%rbp)
movl $16, -116(%rbp)
movq _ZSTD_fast@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -112(%rbp)
movl -136(%rbp), %eax
movl %eax, -148(%rbp)
movq -104(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %ecx, %ecx
leaq -136(%rbp), %rax
movl %ecx, %edx
movq (%rax), %r8
movq %r8, (%rsp)
movq 8(%rax), %r8
movq %r8, 8(%rsp)
movq 16(%rax), %r8
movq %r8, 16(%rsp)
movl 24(%rax), %eax
movl %eax, 24(%rsp)
callq _ZSTD_initCStream_advanced
movq %rax, -144(%rbp)
movq -144(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_4
## %bb.3:
movl $2, -84(%rbp)
jmp LBB0_26
LBB0_4:
movl $0, -152(%rbp)
## implicit-def: $eax
movl %eax, -156(%rbp)
movl -148(%rbp), %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
cltq
movq %rax, -168(%rbp)
movq $0, -176(%rbp)
movl -148(%rbp), %ecx
movl $1, %edi
## kill: def $cl killed $ecx
shll %cl, %edi
callq _malloc
movq %rax, -184(%rbp)
movl -148(%rbp), %ecx
movl $1, %edi
## kill: def $cl killed $ecx
shll %cl, %edi
callq _ZSTD_compressBound
movl %eax, %edi
callq _malloc
movq %rax, -192(%rbp)
movq -192(%rbp), %rax
movq %rax, -208(%rbp)
movl -148(%rbp), %ecx
movl $1, %edi
## kill: def $cl killed $ecx
shll %cl, %edi
callq _ZSTD_compressBound
movl %eax, -200(%rbp)
movl $0, -196(%rbp)
leaq -80(%rbp), %rdi
leaq L___const.main.match(%rip), %rsi
movl $63, %edx
callq _memcpy
movl -148(%rbp), %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
cltq
subq $126, %rax
movq %rax, -216(%rbp)
leaq L_.str(%rip), %rdi
callq _printf
leaq L_.str.1(%rip), %rdi
callq _printf
movq $0, -224(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
cmpq $63, -224(%rbp)
jae LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -224(%rbp), %rax
movb -80(%rbp,%rax), %dl
movq -184(%rbp), %rax
movq -224(%rbp), %rcx
movb %dl, (%rax,%rcx)
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -224(%rbp), %rax
addq $1, %rax
movq %rax, -224(%rbp)
jmp LBB0_5
LBB0_8:
movq $0, -224(%rbp)
LBB0_9: ## =>This Inner Loop Header: Depth=1
movq -224(%rbp), %rax
cmpq -216(%rbp), %rax
jae LBB0_12
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movb $0, %al
callq _rand
andq $255, %rax
movb %al, %dl
movq -184(%rbp), %rax
movq -224(%rbp), %rcx
addq $63, %rcx
movb %dl, (%rax,%rcx)
## %bb.11: ## in Loop: Header=BB0_9 Depth=1
movq -224(%rbp), %rax
addq $1, %rax
movq %rax, -224(%rbp)
jmp LBB0_9
LBB0_12:
movq $0, -224(%rbp)
LBB0_13: ## =>This Inner Loop Header: Depth=1
cmpq $63, -224(%rbp)
jae LBB0_16
## %bb.14: ## in Loop: Header=BB0_13 Depth=1
movq -224(%rbp), %rax
movb -80(%rbp,%rax), %dl
movq -184(%rbp), %rax
movq -216(%rbp), %rcx
addq $63, %rcx
addq -224(%rbp), %rcx
movb %dl, (%rax,%rcx)
## %bb.15: ## in Loop: Header=BB0_13 Depth=1
movq -224(%rbp), %rax
addq $1, %rax
movq %rax, -224(%rbp)
jmp LBB0_13
LBB0_16:
leaq L_.str.2(%rip), %rdi
callq _printf
movq -104(%rbp), %rdi
movq -184(%rbp), %rcx
movq -168(%rbp), %r8
movq -208(%rbp), %rsi
movq -200(%rbp), %rdx
callq _compress
cmpq $0, %rax
je LBB0_18
## %bb.17:
movl $1, -84(%rbp)
jmp LBB0_26
LBB0_18:
movq -168(%rbp), %rcx
movslq -152(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -152(%rbp)
LBB0_19: ## =>This Inner Loop Header: Depth=1
cmpl $-2147483648, -152(%rbp) ## imm = 0x80000000
jge LBB0_25
## %bb.20: ## in Loop: Header=BB0_19 Depth=1
movb $0, %al
callq _rand
movq -168(%rbp), %rcx
subq -176(%rbp), %rcx
addq $1, %rcx
xorl %edx, %edx
## kill: def $rdx killed $edx
divq %rcx
movq %rdx, -232(%rbp)
movq -176(%rbp), %rax
cmpq -168(%rbp), %rax
jne LBB0_22
## %bb.21: ## in Loop: Header=BB0_19 Depth=1
movq $0, -176(%rbp)
LBB0_22: ## in Loop: Header=BB0_19 Depth=1
movq -104(%rbp), %rdi
movq -184(%rbp), %rcx
addq -176(%rbp), %rcx
movq -232(%rbp), %r8
movq -208(%rbp), %rsi
movq -200(%rbp), %rdx
callq _compress
cmpq $0, %rax
je LBB0_24
## %bb.23:
movl $1, -84(%rbp)
jmp LBB0_26
LBB0_24: ## in Loop: Header=BB0_19 Depth=1
movq -232(%rbp), %rax
addq -176(%rbp), %rax
movq %rax, -176(%rbp)
movq -232(%rbp), %rcx
movslq -152(%rbp), %rax
addq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -152(%rbp)
jmp LBB0_19
LBB0_25:
leaq L_.str.3(%rip), %rdi
callq _printf
movq -184(%rbp), %rdi
callq _free
movq -192(%rbp), %rdi
callq _free
movl $0, -84(%rbp)
LBB0_26:
movl -84(%rbp), %eax
movl %eax, -236(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_28
## %bb.27:
movl -236(%rbp), %eax ## 4-byte Reload
addq $272, %rsp ## imm = 0x110
popq %rbp
retq
LBB0_28:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _ZSTD_fast,4,2 ## @ZSTD_fast
.section __TEXT,__cstring,cstring_literals
.p2align 4 ## @__const.main.match
L___const.main.match:
.asciz "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
L_.str: ## @.str
.asciz "\n === Long Match Test === \n"
L_.str.1: ## @.str.1
.asciz "Creating random data to produce long matches \n"
L_.str.2: ## @.str.2
.asciz "Compressing, trying to generate a segfault \n"
L_.str.3: ## @.str.3
.asciz "Compression completed successfully (no error triggered)\n"
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_longmatch.c_main.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_benchParam
_BMK_benchParam: ; @BMK_benchParam
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x8, x3
str x0, [sp, #16]
str w1, [sp, #12]
str w2, [sp, #8]
add x3, sp, #4
str w8, [sp, #4]
ldr w0, [sp, #12]
ldr w1, [sp, #8]
adrp x8, _BASE_CLEVEL@GOTPAGE
ldr x8, [x8, _BASE_CLEVEL@GOTPAGEOFF]
ldr w2, [x8]
adrp x8, _BMK_both@GOTPAGE
ldr x8, [x8, _BMK_both@GOTPAGEOFF]
ldr w4, [x8]
mov w5, #3
bl _BMK_benchMemInvertible
str w0, [sp]
ldr w0, [sp]
bl _BMK_isSuccessful_benchOutcome
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
ldr w0, [sp]
bl _BMK_extract_benchResult
ldr x8, [sp, #16]
str w0, [x8]
stur wzr, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _BASE_CLEVEL,4,2 ; @BASE_CLEVEL
.comm _BMK_both,4,2 ; @BMK_both
.no_dead_strip _BMK_benchParam
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function BMK_benchParam
_BMK_benchParam: ## @BMK_benchParam
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl %edx, -24(%rbp)
movl %ecx, -28(%rbp)
movl -20(%rbp), %edi
movl -24(%rbp), %esi
movq _BASE_CLEVEL@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _BMK_both@GOTPCREL(%rip), %rax
movl (%rax), %r8d
leaq -28(%rbp), %rcx
movl $3, %r9d
callq _BMK_benchMemInvertible
movl %eax, -32(%rbp)
movl -32(%rbp), %edi
callq _BMK_isSuccessful_benchOutcome
cmpl $0, %eax
jne LBB0_2
## %bb.1:
movl $1, -4(%rbp)
jmp LBB0_3
LBB0_2:
movl -32(%rbp), %edi
callq _BMK_extract_benchResult
movl %eax, %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movl $0, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _BASE_CLEVEL,4,2 ## @BASE_CLEVEL
.comm _BMK_both,4,2 ## @BMK_both
.no_dead_strip _BMK_benchParam
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_BMK_benchParam.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_displayOneResult
_BMK_displayOneResult: ; @BMK_displayOneResult
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x1, [sp, #40] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x2, [x29, #-16]
mov w8, #1
stur w8, [x29, #-28]
ldr x0, [x1, #24]
bl _cParamUnsetMin
ldr x1, [sp, #40] ; 8-byte Folded Reload
stur x0, [x29, #-40]
ldur x8, [x29, #-40]
str x8, [x1, #24]
ldur x0, [x29, #-8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
stur xzr, [x29, #-24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-24]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _g_silenceParams@GOTPAGE
ldr x8, [x8, _g_silenceParams@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
ldur x1, [x29, #-24]
ldr x8, [x8, #24]
ldur x9, [x29, #-24]
ldr w2, [x8, x9, lsl #2]
mov w3, #3
bl _displayParamVal
stur wzr, [x29, #-28]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-24]
add x8, x8, #1
stur x8, [x29, #-24]
b LBB0_1
LBB0_8:
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldur d0, [x29, #-16]
ucvtf d0, d0
ldr s2, [x8]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fdiv d0, d0, d1
str d0, [sp, #32] ; 8-byte Folded Spill
b LBB0_11
LBB0_10:
movi d0, #0000000000000000
str d0, [sp, #32] ; 8-byte Folded Spill
b LBB0_11
LBB0_11:
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr d0, [sp, #32] ; 8-byte Folded Reload
stur d0, [x29, #-48]
ldr d0, [x9, #16]
scvtf d0, d0
adrp x8, _MB_UNIT@GOTPAGE
ldr x8, [x8, _MB_UNIT@GOTPAGEOFF]
ldr d1, [x8]
fdiv d0, d0, d1
str d0, [sp, #56]
ldr d0, [x9, #8]
scvtf d0, d0
ldr d1, [x8]
fdiv d0, d0, d1
str d0, [sp, #48]
ldur x0, [x29, #-8]
ldur d2, [x29, #-48]
ldr d1, [sp, #56]
ldr d0, [sp, #48]
mov x8, sp
str d2, [x8]
str d1, [x8, #8]
str d0, [x8, #16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz " {"
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _g_silenceParams,8,3 ; @g_silenceParams
l_.str.1: ; @.str.1
.asciz ","
.comm _MB_UNIT,8,3 ; @MB_UNIT
l_.str.2: ; @.str.2
.asciz " }, /* R:%5.3f at %5.1f MB/s - %5.1f MB/s */\n"
.no_dead_strip _BMK_displayOneResult
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function BMK_displayOneResult
LCPI0_0:
.long 1127219200 ## 0x43300000
.long 1160773632 ## 0x45300000
.long 0 ## 0x0
.long 0 ## 0x0
LCPI0_1:
.quad 0x4330000000000000 ## double 4503599627370496
.quad 0x4530000000000000 ## double 1.9342813113834067E+25
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_BMK_displayOneResult: ## @BMK_displayOneResult
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
leaq 16(%rbp), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $1, -28(%rbp)
movq 24(%rax), %rdi
callq _cParamUnsetMin
movq %rax, %rcx
movq -72(%rbp), %rax ## 8-byte Reload
movq %rcx, -40(%rbp)
movq -40(%rbp), %rcx
movq %rcx, 24(%rax)
movq -8(%rbp), %rdi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
movq $0, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _g_silenceParams@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -28(%rbp)
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq -72(%rbp), %rax ## 8-byte Reload
movq -8(%rbp), %rdi
movq -24(%rbp), %rsi
movq 24(%rax), %rax
movq -24(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movl $3, %ecx
callq _displayParamVal
movl $0, -28(%rbp)
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_8:
movq -72(%rbp), %rax ## 8-byte Reload
cmpl $0, (%rax)
je LBB0_10
## %bb.9:
movq -72(%rbp), %rax ## 8-byte Reload
movaps LCPI0_0(%rip), %xmm1 ## xmm1 = [1127219200,1160773632,0,0]
movq -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
punpckldq %xmm1, %xmm0 ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd LCPI0_1(%rip), %xmm1 ## xmm1 = [4.503599627370496E+15,1.9342813113834067E+25]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 ## xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -80(%rbp) ## 8-byte Spill
jmp LBB0_11
LBB0_10:
xorps %xmm0, %xmm0
movsd %xmm0, -80(%rbp) ## 8-byte Spill
jmp LBB0_11
LBB0_11:
movq -72(%rbp), %rax ## 8-byte Reload
movsd -80(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
movsd %xmm0, -48(%rbp)
cvtsi2sdq 16(%rax), %xmm0
movq _MB_UNIT@GOTPCREL(%rip), %rcx
divsd (%rcx), %xmm0
movsd %xmm0, -56(%rbp)
cvtsi2sdq 8(%rax), %xmm0
movq _MB_UNIT@GOTPCREL(%rip), %rax
divsd (%rax), %xmm0
movsd %xmm0, -64(%rbp)
movq -8(%rbp), %rdi
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -56(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd -64(%rbp), %xmm2 ## xmm2 = mem[0],zero
leaq L_.str.2(%rip), %rsi
movb $3, %al
callq _fprintf
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " {"
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _g_silenceParams,8,3 ## @g_silenceParams
L_.str.1: ## @.str.1
.asciz ","
.comm _MB_UNIT,8,3 ## @MB_UNIT
L_.str.2: ## @.str.2
.asciz " }, /* R:%5.3f at %5.1f MB/s - %5.1f MB/s */\n"
.no_dead_strip _BMK_displayOneResult
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_BMK_displayOneResult.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_paramValues_into_commandLine
_BMK_paramValues_into_commandLine: ; @BMK_paramValues_into_commandLine
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur x1, [x29, #-8]
stur x0, [x29, #-16]
mov w8, #1
str w8, [sp, #20]
ldur x0, [x29, #-16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
str xzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_11
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _g_silenceParams@GOTPAGE
ldr x8, [x8, _g_silenceParams@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #24]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
b LBB0_10
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
adrp x8, _g_paramNames@GOTPAGE
ldr x8, [x8, _g_paramNames@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #24]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldr x8, [sp, #24]
adrp x9, _strt_ind@GOTPAGE
ldr x9, [x9, _strt_ind@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldur x8, [x29, #-8]
ldr x9, [sp, #24]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
b LBB0_9
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldr x1, [sp, #24]
ldur x8, [x29, #-8]
ldr x9, [sp, #24]
ldr x2, [x8, x9, lsl #3]
mov w3, #0
bl _displayParamVal
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #20]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_1
LBB0_11:
ldur x0, [x29, #-16]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "--zstd="
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _g_silenceParams,8,3 ; @g_silenceParams
l_.str.1: ; @.str.1
.asciz ","
l_.str.2: ; @.str.2
.asciz "%s="
.comm _g_paramNames,8,3 ; @g_paramNames
.comm _strt_ind,8,3 ; @strt_ind
l_.str.3: ; @.str.3
.asciz "%u"
l_.str.4: ; @.str.4
.asciz "\n"
.no_dead_strip _BMK_paramValues_into_commandLine
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function BMK_paramValues_into_commandLine
_BMK_paramValues_into_commandLine: ## @BMK_paramValues_into_commandLine
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rsi, -8(%rbp)
movq %rdi, -16(%rbp)
movl $1, -28(%rbp)
movq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
movq $0, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_11
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _g_silenceParams@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
cmpq $0, (%rax,%rcx,8)
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_10
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -28(%rbp)
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq _g_paramNames@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -8(%rbp), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %edx
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
jmp LBB0_9
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movq -8(%rbp), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
xorl %ecx, %ecx
callq _displayParamVal
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl $0, -28(%rbp)
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_11:
movq -16(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _fprintf
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "--zstd="
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _g_silenceParams,8,3 ## @g_silenceParams
L_.str.1: ## @.str.1
.asciz ","
L_.str.2: ## @.str.2
.asciz "%s="
.comm _g_paramNames,8,3 ## @g_paramNames
.comm _strt_ind,8,3 ## @strt_ind
L_.str.3: ## @.str.3
.asciz "%u"
L_.str.4: ## @.str.4
.asciz "\n"
.no_dead_strip _BMK_paramValues_into_commandLine
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_BMK_paramValues_into_commandLine.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_generate_cLevelTable
_BMK_generate_cLevelTable: ; @BMK_generate_cLevelTable
.cfi_startproc
; %bb.0:
stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sub sp, sp, #128
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur x0, [x29, #-16]
mov x8, x1
stur w8, [x29, #-20]
adrp x8, _NB_LEVELS_TRACKED@GOTPAGE
ldr x8, [x8, _NB_LEVELS_TRACKED@GOTPAGEOFF]
ldr w8, [x8]
add w8, w8, #1
; kill: def $x8 killed $w8
stur x8, [x29, #-104] ; 8-byte Folded Spill
mov x9, sp
stur x9, [x29, #-40]
lsl x9, x8, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
stur x9, [x29, #-112] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldur x10, [x29, #-112] ; 8-byte Folded Reload
mov x9, sp
subs x0, x9, x10
stur x0, [x29, #-96] ; 8-byte Folded Spill
mov sp, x0
stur x8, [x29, #-48]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x8, x0
stur x8, [x29, #-56]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
stur x0, [x29, #-64]
adrp x8, _g_singleRun@GOTPAGE
ldr x8, [x8, _g_singleRun@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
and w0, w8, #0x1
bl _assert
ldur x9, [x29, #-104] ; 8-byte Folded Reload
ldur x0, [x29, #-96] ; 8-byte Folded Reload
mov x8, #4
mul x8, x8, x9
mov x2, x8
mov w1, #0
bl _memset
ldur x8, [x29, #-64]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
sub sp, sp, #16
mov x9, sp
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
add sp, sp, #16
mov w0, #1
bl _exit
LBB0_2:
adrp x8, _g_target@GOTPAGE
ldr x8, [x8, _g_target@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, _g_target@GOTPAGE
ldr x8, [x8, _g_target@GOTPAGEOFF]
ldr w8, [x8]
adrp x9, _MB_UNIT@GOTPAGE
ldr x9, [x9, _MB_UNIT@GOTPAGEOFF]
ldr w9, [x9]
mul w0, w8, w9
bl _BMK_init_level_constraints
b LBB0_5
LBB0_4:
ldur w1, [x29, #-12]
ldur w2, [x29, #-20]
mov w0, #1
bl _ZSTD_getCParams
bl _cParamsToPVals
stur x0, [x29, #-72]
ldur x3, [x29, #-72]
ldur x1, [x29, #-16]
ldur w8, [x29, #-20]
mov x2, x8
sub x0, x29, #76
bl _BMK_benchParam
ldur w8, [x29, #-76]
mov w9, #31
mul w8, w8, w9
mov w9, #32
sdiv w0, w8, w9
bl _BMK_init_level_constraints
b LBB0_5
LBB0_5:
adrp x8, _g_noSeed@GOTPAGE
ldr x8, [x8, _g_noSeed@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
mov w0, #1
stur w0, [x29, #-116] ; 4-byte Folded Spill
b LBB0_8
LBB0_7:
bl _ZSTD_maxCLevel
stur w0, [x29, #-116] ; 4-byte Folded Spill
b LBB0_8
LBB0_8:
ldur w8, [x29, #-116] ; 4-byte Folded Reload
stur w8, [x29, #-80]
stur wzr, [x29, #-84]
b LBB0_9
LBB0_9: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-84]
ldur w9, [x29, #-80]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
ldur w0, [x29, #-84]
ldur w1, [x29, #-12]
mov w2, #0
bl _ZSTD_getCParams
bl _cParamsToPVals
mov x8, x0
ldur x0, [x29, #-96] ; 8-byte Folded Reload
stur x8, [x29, #-32]
ldur x1, [x29, #-32]
ldur x2, [x29, #-16]
ldur w8, [x29, #-20]
mov x3, x8
bl _BMK_seed
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_9 Depth=1
ldur w8, [x29, #-84]
add w8, w8, #1
stur w8, [x29, #-84]
b LBB0_9
LBB0_12:
ldur x1, [x29, #-96] ; 8-byte Folded Reload
ldur x0, [x29, #-64]
ldur w2, [x29, #-16]
bl _BMK_saveAndPrint_cLevelTable
bl _UTIL_getTime
stur w0, [x29, #-88]
b LBB0_13
LBB0_13: ; =>This Inner Loop Header: Depth=1
ldur x1, [x29, #-96] ; 8-byte Folded Reload
ldur x0, [x29, #-64]
ldur x2, [x29, #-16]
ldur w8, [x29, #-20]
mov x3, x8
bl _BMK_selectRandomStart
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
ldur w0, [x29, #-88]
bl _BMK_timeSpan_s
adrp x8, _g_timeLimit_s@GOTPAGE
ldr x8, [x8, _g_timeLimit_s@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x0, x8
cset w8, lt
tbnz w8, #0, LBB0_13
b LBB0_15
LBB0_15:
ldur x1, [x29, #-96] ; 8-byte Folded Reload
ldur x0, [x29, #-64]
ldur w2, [x29, #-16]
bl _BMK_saveAndPrint_cLevelTable
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
ldur x0, [x29, #-64]
bl _fclose
ldur x8, [x29, #-40]
stur x8, [x29, #-128] ; 8-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
bl ___stack_chk_fail
LBB0_17:
ldur x8, [x29, #-128] ; 8-byte Folded Reload
mov sp, x8
mov sp, x29
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.comm _NB_LEVELS_TRACKED,4,2 ; @NB_LEVELS_TRACKED
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "grillResults.txt"
l_.str.1: ; @.str.1
.asciz "w"
.comm _g_singleRun,8,3 ; @g_singleRun
l_.str.2: ; @.str.2
.asciz "error opening %s \n"
.comm _g_target,4,2 ; @g_target
.comm _MB_UNIT,4,2 ; @MB_UNIT
.comm _g_noSeed,8,3 ; @g_noSeed
.comm _g_timeLimit_s,8,3 ; @g_timeLimit_s
l_.str.3: ; @.str.3
.asciz "grillParams operations completed \n"
.no_dead_strip _BMK_generate_cLevelTable
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function BMK_generate_cLevelTable
_BMK_generate_cLevelTable: ## @BMK_generate_cLevelTable
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -16(%rbp)
movl %esi, -24(%rbp)
movq _NB_LEVELS_TRACKED@GOTPCREL(%rip), %rax
movl (%rax), %eax
incl %eax
## kill: def $rax killed $eax
movq %rax, -104(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -40(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -104(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -112(%rbp) ## 8-byte Spill
movq %rax, -48(%rbp)
leaq L_.str(%rip), %rax
movq %rax, -56(%rbp)
leaq L_.str(%rip), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -64(%rbp)
movq _g_singleRun@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
sete %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -112(%rbp), %rdi ## 8-byte Reload
## kill: def $ecx killed $eax
movq -104(%rbp), %rax ## 8-byte Reload
shlq $2, %rax
movl %eax, %edx
xorl %esi, %esi
callq _memset
cmpq $0, -64(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str.2(%rip), %rdi
leaq L_.str(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _DISPLAY
movl $1, %edi
callq _exit
LBB0_2:
movq _g_target@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
je LBB0_4
## %bb.3:
movq _g_target@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _MB_UNIT@GOTPCREL(%rip), %rax
imull (%rax), %edi
callq _BMK_init_level_constraints
jmp LBB0_5
LBB0_4:
movl -12(%rbp), %esi
movl -24(%rbp), %edx
movl $1, %edi
callq _ZSTD_getCParams
movl %eax, %edi
callq _cParamsToPVals
movq %rax, -72(%rbp)
movq -72(%rbp), %rcx
movq -16(%rbp), %rsi
movl -24(%rbp), %edx
leaq -80(%rbp), %rdi
callq _BMK_benchParam
imull $31, -80(%rbp), %eax
movl $32, %ecx
cltd
idivl %ecx
movl %eax, %edi
callq _BMK_init_level_constraints
LBB0_5:
movq _g_noSeed@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_7
## %bb.6:
movl $1, %eax
movl %eax, -116(%rbp) ## 4-byte Spill
jmp LBB0_8
LBB0_7:
movb $0, %al
callq _ZSTD_maxCLevel
movl %eax, -116(%rbp) ## 4-byte Spill
LBB0_8:
movl -116(%rbp), %eax ## 4-byte Reload
movl %eax, -84(%rbp)
movl $0, -88(%rbp)
LBB0_9: ## =>This Inner Loop Header: Depth=1
movl -88(%rbp), %eax
cmpl -84(%rbp), %eax
jg LBB0_12
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movl -88(%rbp), %edi
movl -12(%rbp), %esi
xorl %edx, %edx
callq _ZSTD_getCParams
movl %eax, %edi
callq _cParamsToPVals
movq -112(%rbp), %rdi ## 8-byte Reload
movq %rax, -32(%rbp)
movq -32(%rbp), %rsi
movq -16(%rbp), %rdx
movl -24(%rbp), %ecx
callq _BMK_seed
## %bb.11: ## in Loop: Header=BB0_9 Depth=1
movl -88(%rbp), %eax
addl $1, %eax
movl %eax, -88(%rbp)
jmp LBB0_9
LBB0_12:
movq -112(%rbp), %rsi ## 8-byte Reload
movq -64(%rbp), %rdi
movl -16(%rbp), %edx
callq _BMK_saveAndPrint_cLevelTable
movb $0, %al
callq _UTIL_getTime
movl %eax, -92(%rbp)
LBB0_13: ## =>This Inner Loop Header: Depth=1
movq -112(%rbp), %rsi ## 8-byte Reload
movq -64(%rbp), %rdi
movq -16(%rbp), %rdx
movl -24(%rbp), %ecx
callq _BMK_selectRandomStart
## %bb.14: ## in Loop: Header=BB0_13 Depth=1
movl -92(%rbp), %edi
callq _BMK_timeSpan_s
movq _g_timeLimit_s@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jl LBB0_13
## %bb.15:
movq -112(%rbp), %rsi ## 8-byte Reload
movq -64(%rbp), %rdi
movl -16(%rbp), %edx
callq _BMK_saveAndPrint_cLevelTable
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -64(%rbp), %rdi
callq _fclose
movq -40(%rbp), %rax
movq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_17
## %bb.16:
movq %rbp, %rsp
popq %rbp
retq
LBB0_17:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _NB_LEVELS_TRACKED,4,2 ## @NB_LEVELS_TRACKED
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "grillResults.txt"
L_.str.1: ## @.str.1
.asciz "w"
.comm _g_singleRun,8,3 ## @g_singleRun
L_.str.2: ## @.str.2
.asciz "error opening %s \n"
.comm _g_target,4,2 ## @g_target
.comm _MB_UNIT,4,2 ## @MB_UNIT
.comm _g_noSeed,8,3 ## @g_noSeed
.comm _g_timeLimit_s,8,3 ## @g_timeLimit_s
L_.str.3: ## @.str.3
.asciz "grillParams operations completed \n"
.no_dead_strip _BMK_generate_cLevelTable
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_BMK_generate_cLevelTable.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_printWinner
_BMK_printWinner: ; @BMK_printWinner
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur x0, [x29, #-32]
stur w1, [x29, #-36]
stur w2, [x29, #-40]
stur w3, [x29, #-44]
stur x4, [x29, #-56]
adrp x8, l___const.BMK_printWinner.lvlstr@PAGE
add x8, x8, l___const.BMK_printWinner.lvlstr@PAGEOFF
ldr x10, [x8]
sub x9, x29, #24
stur x10, [x29, #-24]
ldur x8, [x8, #7]
stur x8, [x9, #7]
ldur w8, [x29, #-44]
str w8, [sp, #68]
ldur w8, [x29, #-40]
str w8, [sp, #64]
ldur x0, [x29, #-32]
mov x9, sp
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
ldur w8, [x29, #-36]
adrp x9, _CUSTOM_LEVEL@GOTPAGE
ldr x9, [x9, _CUSTOM_LEVEL@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w3, [x29, #-36]
sub x0, x29, #24
mov w1, #15
adrp x2, l_.str.2@PAGE
add x2, x2, l_.str.2@PAGEOFF
bl _snprintf
b LBB0_2
LBB0_2:
adrp x8, _TIMED@GOTPAGE
ldr x8, [x8, _TIMED@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, _TIMELOOP_NANOSEC@GOTPAGE
ldr x8, [x8, _TIMELOOP_NANOSEC@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
ldr x9, [x8]
mov x8, #60
str x8, [sp, #32] ; 8-byte Folded Spill
mul x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #60]
adrp x8, _g_time@GOTPAGE
ldr x8, [x8, _g_time@GOTPAGEOFF]
ldr w0, [x8]
bl _UTIL_clockSpanNano
ldr x12, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #40] ; 8-byte Folded Reload
str w0, [sp, #56]
ldr w9, [sp, #56]
ldr w10, [sp, #60]
sdiv w9, w9, w10
str w9, [sp, #52]
ldur x0, [x29, #-32]
ldrsw x9, [sp, #52]
udiv x10, x9, x12
ldrsw x9, [sp, #52]
udiv x11, x9, x12
mul x11, x11, x12
subs x9, x9, x11
ldr w11, [sp, #56]
ldr w12, [sp, #52]
ldr w13, [sp, #60]
mul w12, w12, w13
subs w11, w11, w12
scvtf d0, w11
ldr d1, [x8]
ucvtf d1, d1
fdiv d0, d0, d1
mov x8, sp
str x10, [x8]
str x9, [x8, #8]
str d0, [x8, #16]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
b LBB0_4
LBB0_4:
ldur x0, [x29, #-32]
mov x9, sp
sub x8, x29, #24
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
ldur x0, [x29, #-32]
ldur x2, [x29, #-56]
ldr x1, [sp, #64]
bl _BMK_displayOneResult
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
bl ___stack_chk_fail
LBB0_6:
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
l___const.BMK_printWinner.lvlstr: ; @__const.BMK_printWinner.lvlstr
.asciz "Custom Level\000\000"
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\r%79s\r"
l_.str.1: ; @.str.1
.space 1
.comm _CUSTOM_LEVEL,4,2 ; @CUSTOM_LEVEL
l_.str.2: ; @.str.2
.asciz " Level %2d "
.comm _TIMED,8,3 ; @TIMED
.comm _TIMELOOP_NANOSEC,8,3 ; @TIMELOOP_NANOSEC
.comm _g_time,4,2 ; @g_time
l_.str.3: ; @.str.3
.asciz "%1lu:%2lu:%05.2f - "
l_.str.4: ; @.str.4
.asciz "/* %s */ "
.no_dead_strip _BMK_printWinner
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function BMK_printWinner
LCPI0_0:
.long 1127219200 ## 0x43300000
.long 1160773632 ## 0x45300000
.long 0 ## 0x0
.long 0 ## 0x0
LCPI0_1:
.quad 0x4330000000000000 ## double 4503599627370496
.quad 0x4530000000000000 ## double 1.9342813113834067E+25
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_BMK_printWinner: ## @BMK_printWinner
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -32(%rbp)
movl %esi, -36(%rbp)
movl %edx, -40(%rbp)
movl %ecx, -44(%rbp)
movq %r8, -56(%rbp)
movq l___const.BMK_printWinner.lvlstr(%rip), %rax
movq %rax, -23(%rbp)
movl l___const.BMK_printWinner.lvlstr+8(%rip), %eax
movl %eax, -15(%rbp)
movw l___const.BMK_printWinner.lvlstr+12(%rip), %ax
movw %ax, -11(%rbp)
movb l___const.BMK_printWinner.lvlstr+14(%rip), %al
movb %al, -9(%rbp)
movl -44(%rbp), %eax
movl %eax, -60(%rbp)
movl -40(%rbp), %eax
movl %eax, -64(%rbp)
movq -32(%rbp), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rdx
movb $0, %al
callq _fprintf
movl -36(%rbp), %eax
movq _CUSTOM_LEVEL@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
je LBB0_2
## %bb.1:
leaq -23(%rbp), %rdi
movl -36(%rbp), %ecx
movl $15, %esi
leaq L_.str.2(%rip), %rdx
callq _snprintf
LBB0_2:
movq _TIMED@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_4
## %bb.3:
movq _TIMELOOP_NANOSEC@GOTPCREL(%rip), %rax
movq %rax, -88(%rbp) ## 8-byte Spill
movl (%rax), %eax
imull $60, %eax, %eax
movl %eax, -68(%rbp)
movq _g_time@GOTPCREL(%rip), %rax
movl (%rax), %edi
callq _UTIL_clockSpanNano
movl %eax, -72(%rbp)
movl -72(%rbp), %eax
movl -68(%rbp), %ecx
cltd
idivl %ecx
movl %eax, -76(%rbp)
movq -32(%rbp), %rdi
movslq -76(%rbp), %rcx
movl %ecx, %r8d
movabsq $-8608480567731124087, %rdx ## imm = 0x8888888888888889
movq %rcx, %rax
mulq %rdx
movq -88(%rbp), %rax ## 8-byte Reload
shrq $5, %rdx
imulq $60, %rdx, %rsi
subq %rsi, %rcx
movl -72(%rbp), %esi
movl -68(%rbp), %r9d
imull %r9d, %r8d
subl %r8d, %esi
cvtsi2sd %esi, %xmm0
movq (%rax), %xmm1 ## xmm1 = mem[0],zero
movaps LCPI0_0(%rip), %xmm2 ## xmm2 = [1127219200,1160773632,0,0]
punpckldq %xmm2, %xmm1 ## xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd LCPI0_1(%rip), %xmm2 ## xmm2 = [4.503599627370496E+15,1.9342813113834067E+25]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1 ## xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
leaq L_.str.3(%rip), %rsi
movb $1, %al
callq _fprintf
LBB0_4:
movq -32(%rbp), %rdi
leaq -23(%rbp), %rdx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _fprintf
movq -32(%rbp), %rdi
movq -56(%rbp), %rdx
movq -64(%rbp), %rsi
callq _BMK_displayOneResult
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_6
## %bb.5:
addq $96, %rsp
popq %rbp
retq
LBB0_6:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__const
l___const.BMK_printWinner.lvlstr: ## @__const.BMK_printWinner.lvlstr
.asciz "Custom Level\000\000"
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\r%79s\r"
L_.str.1: ## @.str.1
.space 1
.comm _CUSTOM_LEVEL,4,2 ## @CUSTOM_LEVEL
L_.str.2: ## @.str.2
.asciz " Level %2d "
.comm _TIMED,8,3 ## @TIMED
.comm _TIMELOOP_NANOSEC,8,3 ## @TIMELOOP_NANOSEC
.comm _g_time,4,2 ## @g_time
L_.str.3: ## @.str.3
.asciz "%1lu:%2lu:%05.2f - "
L_.str.4: ## @.str.4
.asciz "/* %s */ "
.no_dead_strip _BMK_printWinner
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_BMK_printWinner.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_print_cLevelTable
_BMK_print_cLevelTable: ; @BMK_print_cLevelTable
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
str x2, [sp, #8]
ldur x0, [x29, #-8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
ldur x0, [x29, #-8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
adrp x9, _NB_LEVELS_TRACKED@GOTPAGE
ldr x9, [x9, _NB_LEVELS_TRACKED@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
ldr w1, [sp, #4]
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
add x8, x8, x9, lsl #3
ldr w2, [x8, #4]
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
lsl x9, x9, #3
ldr w3, [x8, x9]
ldr x4, [sp, #8]
bl _BMK_print_cLevelEntry
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_1
LBB0_4:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\n /* Proposed configurations : */ \n"
l_.str.1: ; @.str.1
.asciz " /* W, C, H, S, L, T, strat */ \n"
.comm _NB_LEVELS_TRACKED,4,2 ; @NB_LEVELS_TRACKED
.no_dead_strip _BMK_print_cLevelTable
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function BMK_print_cLevelTable
_BMK_print_cLevelTable: ## @BMK_print_cLevelTable
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _fprintf
movq -8(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
callq _fprintf
movl $0, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
movq _NB_LEVELS_TRACKED@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jg LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
movl -28(%rbp), %esi
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movl 4(%rax,%rcx,8), %edx
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movl (%rax,%rcx,8), %ecx
movq -24(%rbp), %r8
callq _BMK_print_cLevelEntry
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_4:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n /* Proposed configurations : */ \n"
L_.str.1: ## @.str.1
.asciz " /* W, C, H, S, L, T, strat */ \n"
.comm _NB_LEVELS_TRACKED,4,2 ## @NB_LEVELS_TRACKED
.no_dead_strip _BMK_print_cLevelTable
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_BMK_print_cLevelTable.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_print_cLevelEntry
_BMK_print_cLevelEntry: ; @BMK_print_cLevelEntry
.cfi_startproc
; %bb.0:
sub sp, sp, #144
.cfi_def_cfa_offset 144
stp x29, x30, [sp, #128] ; 16-byte Folded Spill
add x29, sp, #128
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x3, [sp, #40] ; 8-byte Folded Spill
stur x2, [x29, #-8]
stur x0, [x29, #-16]
stur w1, [x29, #-20]
stur x4, [x29, #-32]
mov w8, #1
stur w8, [x29, #-44]
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, ge
and w0, w8, #0x1
bl _assert
ldur w8, [x29, #-20]
adrp x9, _NB_LEVELS_TRACKED@GOTPAGE
ldr x9, [x9, _NB_LEVELS_TRACKED@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
and w0, w8, #0x1
bl _assert
ldur x0, [x29, #-8]
bl _cParamUnsetMin
stur x0, [x29, #-56]
ldur x8, [x29, #-56]
stur x8, [x29, #-8]
ldur x0, [x29, #-16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
stur xzr, [x29, #-40]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-40]
adrp x9, _strt_ind@GOTPAGE
ldr x9, [x9, _strt_ind@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-44]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldur x1, [x29, #-40]
ldur x8, [x29, #-8]
ldur x9, [x29, #-40]
ldr w2, [x8, x9, lsl #2]
mov w3, #3
bl _displayParamVal
stur wzr, [x29, #-44]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-40]
add x8, x8, #1
stur x8, [x29, #-40]
b LBB0_1
LBB0_6:
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldur d0, [x29, #-32]
ucvtf d0, d0
ldr s2, [x8]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fdiv d0, d0, d1
str d0, [sp, #32] ; 8-byte Folded Spill
b LBB0_9
LBB0_8:
movi d0, #0000000000000000
str d0, [sp, #32] ; 8-byte Folded Spill
b LBB0_9
LBB0_9:
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr d0, [sp, #32] ; 8-byte Folded Reload
str d0, [sp, #64]
ldr d0, [x9, #16]
scvtf d0, d0
adrp x8, _MB_UNIT@GOTPAGE
ldr x8, [x8, _MB_UNIT@GOTPAGEOFF]
ldr d1, [x8]
fdiv d0, d0, d1
str d0, [sp, #56]
ldr d0, [x9, #8]
scvtf d0, d0
ldr d1, [x8]
fdiv d0, d0, d1
str d0, [sp, #48]
ldur x0, [x29, #-16]
ldur w8, [x29, #-20]
; implicit-def: $x9
mov x9, x8
ldr d2, [sp, #64]
ldr d1, [sp, #56]
ldr d0, [sp, #48]
mov x8, sp
str x9, [x8]
str d2, [x8, #8]
str d1, [x8, #16]
str d0, [x8, #24]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldp x29, x30, [sp, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.comm _NB_LEVELS_TRACKED,4,2 ; @NB_LEVELS_TRACKED
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz " {"
.comm _strt_ind,8,3 ; @strt_ind
l_.str.1: ; @.str.1
.asciz ","
.comm _MB_UNIT,8,3 ; @MB_UNIT
l_.str.2: ; @.str.2
.asciz " }, /* level %2i: R=%5.3f at %5.1f MB/s - %5.1f MB/s */\n"
.no_dead_strip _BMK_print_cLevelEntry
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal16,16byte_literals
.p2align 4 ## -- Begin function BMK_print_cLevelEntry
LCPI0_0:
.long 1127219200 ## 0x43300000
.long 1160773632 ## 0x45300000
.long 0 ## 0x0
.long 0 ## 0x0
LCPI0_1:
.quad 0x4330000000000000 ## double 4503599627370496
.quad 0x4530000000000000 ## double 1.9342813113834067E+25
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_BMK_print_cLevelEntry: ## @BMK_print_cLevelEntry
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
leaq 16(%rbp), %rax
movq %rax, -88(%rbp) ## 8-byte Spill
movq %rdx, -8(%rbp)
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movq %rcx, -32(%rbp)
movl $1, -44(%rbp)
cmpl $0, -20(%rbp)
setge %al
andb $1, %al
movzbl %al, %edi
callq _assert
movl -20(%rbp), %eax
movq _NB_LEVELS_TRACKED@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
setle %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -8(%rbp), %rdi
callq _cParamUnsetMin
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movq %rax, -8(%rbp)
movq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
ja LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -44(%rbp)
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -40(%rbp), %rsi
movq -8(%rbp), %rax
movq -40(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movl $3, %ecx
callq _displayParamVal
movl $0, -44(%rbp)
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_6:
movq -88(%rbp), %rax ## 8-byte Reload
cmpl $0, (%rax)
je LBB0_8
## %bb.7:
movq -88(%rbp), %rax ## 8-byte Reload
movaps LCPI0_0(%rip), %xmm1 ## xmm1 = [1127219200,1160773632,0,0]
movq -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
punpckldq %xmm1, %xmm0 ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd LCPI0_1(%rip), %xmm1 ## xmm1 = [4.503599627370496E+15,1.9342813113834067E+25]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 ## xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -96(%rbp) ## 8-byte Spill
jmp LBB0_9
LBB0_8:
xorps %xmm0, %xmm0
movsd %xmm0, -96(%rbp) ## 8-byte Spill
jmp LBB0_9
LBB0_9:
movq -88(%rbp), %rax ## 8-byte Reload
movsd -96(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
movsd %xmm0, -64(%rbp)
cvtsi2sdq 16(%rax), %xmm0
movq _MB_UNIT@GOTPCREL(%rip), %rcx
divsd (%rcx), %xmm0
movsd %xmm0, -72(%rbp)
cvtsi2sdq 8(%rax), %xmm0
movq _MB_UNIT@GOTPCREL(%rip), %rax
divsd (%rax), %xmm0
movsd %xmm0, -80(%rbp)
movq -16(%rbp), %rdi
movl -20(%rbp), %edx
movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -72(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd -80(%rbp), %xmm2 ## xmm2 = mem[0],zero
leaq L_.str.2(%rip), %rsi
movb $3, %al
callq _fprintf
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NB_LEVELS_TRACKED,4,2 ## @NB_LEVELS_TRACKED
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz " {"
.comm _strt_ind,8,3 ## @strt_ind
L_.str.1: ## @.str.1
.asciz ","
.comm _MB_UNIT,8,3 ## @MB_UNIT
L_.str.2: ## @.str.2
.asciz " }, /* level %2i: R=%5.3f at %5.1f MB/s - %5.1f MB/s */\n"
.no_dead_strip _BMK_print_cLevelEntry
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_BMK_print_cLevelEntry.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_selectRandomStart
_BMK_selectRandomStart: ; @BMK_selectRandomStart
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
mov x8, x2
stur w8, [x29, #-4]
stur x0, [x29, #-16]
str x1, [sp, #24]
str w3, [sp, #20]
adrp x0, _g_rand@GOTPAGE
ldr x0, [x0, _g_rand@GOTPAGEOFF]
bl _FUZ_rand
adrp x8, _NB_LEVELS_TRACKED@GOTPAGE
ldr x8, [x8, _NB_LEVELS_TRACKED@GOTPAGEOFF]
ldr w8, [x8]
add w9, w8, #1
sdiv w8, w0, w9
mul w8, w8, w9
subs w9, w0, w8
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
str x8, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #24]
ldr x9, [sp, #8]
ldr x8, [x8, x9, lsl #3]
adrp x9, _wlog_ind@GOTPAGE
ldr x9, [x9, _wlog_ind@GOTPAGEOFF]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
bl _randomParams
bl _pvalsToCParams
bl _cParamsToPVals
ldur w1, [x29, #-4]
mov w2, #0
bl _adjustParams
str x0, [sp]
ldur x0, [x29, #-16]
ldr x1, [sp, #24]
ldr w4, [sp, #20]
ldr x2, [sp]
ldur w8, [x29, #-4]
mov x3, x8
bl _playAround
b LBB0_4
LBB0_3:
ldur x0, [x29, #-16]
ldr x1, [sp, #24]
ldr x8, [sp, #24]
ldr x9, [sp, #8]
ldr w4, [sp, #20]
ldr x2, [x8, x9, lsl #3]
ldur w8, [x29, #-4]
mov x3, x8
bl _playAround
b LBB0_4
LBB0_4:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_rand,4,2 ; @g_rand
.comm _NB_LEVELS_TRACKED,4,2 ; @NB_LEVELS_TRACKED
.comm _wlog_ind,8,3 ; @wlog_ind
.no_dead_strip _BMK_selectRandomStart
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function BMK_selectRandomStart
_BMK_selectRandomStart: ## @BMK_selectRandomStart
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl %edx, -8(%rbp)
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movl %ecx, -28(%rbp)
movq _g_rand@GOTPCREL(%rip), %rdi
callq _FUZ_rand
movq _NB_LEVELS_TRACKED@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
addl $1, %ecx
cltd
idivl %ecx
movslq %edx, %rax
movq %rax, -40(%rbp)
cmpq $0, -40(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rax
movq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
cmpq $0, (%rax,%rcx,8)
jne LBB0_3
LBB0_2:
movb $0, %al
callq _randomParams
movl %eax, %edi
callq _pvalsToCParams
movl %eax, %edi
callq _cParamsToPVals
movl %eax, %edi
movl -8(%rbp), %esi
xorl %edx, %edx
callq _adjustParams
movq %rax, -48(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movl -28(%rbp), %r8d
movq -48(%rbp), %rdx
movl -8(%rbp), %ecx
callq _playAround
jmp LBB0_4
LBB0_3:
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movq -24(%rbp), %rax
movq -40(%rbp), %rcx
movl -28(%rbp), %r8d
movq (%rax,%rcx,8), %rdx
movl -8(%rbp), %ecx
callq _playAround
LBB0_4:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_rand,4,2 ## @g_rand
.comm _NB_LEVELS_TRACKED,4,2 ## @NB_LEVELS_TRACKED
.comm _wlog_ind,8,3 ## @wlog_ind
.no_dead_strip _BMK_selectRandomStart
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_BMK_selectRandomStart.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_timeSpan_s
_BMK_timeSpan_s: ; @BMK_timeSpan_s
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w0, [x29, #-4]
bl _UTIL_clockSpanMicro
mov x8, #16960
movk x8, #15, lsl #16
udiv x8, x0, x8
mov x0, x8
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _BMK_timeSpan_s
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function BMK_timeSpan_s
_BMK_timeSpan_s: ## @BMK_timeSpan_s
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl -4(%rbp), %edi
callq _UTIL_clockSpanMicro
movl $1000000, %ecx ## imm = 0xF4240
xorl %edx, %edx
## kill: def $rdx killed $edx
divq %rcx
## kill: def $eax killed $eax killed $rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _BMK_timeSpan_s
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_BMK_timeSpan_s.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function BMK_saveAndPrint_cLevelTable
_BMK_saveAndPrint_cLevelTable: ; @BMK_saveAndPrint_cLevelTable
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
str x2, [sp, #8]
ldur x0, [x29, #-8]
adrp x8, _SEEK_SET@GOTPAGE
ldr x8, [x8, _SEEK_SET@GOTPAGEOFF]
ldr w2, [x8]
mov w1, #0
bl _fseek
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
ldr x2, [sp, #8]
bl _BMK_print_cLevelTable
ldur x0, [x29, #-8]
bl _fflush
adrp x8, _stdout@GOTPAGE
ldr x8, [x8, _stdout@GOTPAGEOFF]
ldr x0, [x8]
ldr x1, [sp, #16]
ldr x2, [sp, #8]
bl _BMK_print_cLevelTable
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _SEEK_SET,4,2 ; @SEEK_SET
.comm _stdout,8,3 ; @stdout
.no_dead_strip _BMK_saveAndPrint_cLevelTable
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function BMK_saveAndPrint_cLevelTable
_BMK_saveAndPrint_cLevelTable: ## @BMK_saveAndPrint_cLevelTable
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rdi
movq _SEEK_SET@GOTPCREL(%rip), %rax
movl (%rax), %edx
xorl %esi, %esi
callq _fseek
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _BMK_print_cLevelTable
movq -8(%rbp), %rdi
callq _fflush
movq _stdout@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _BMK_print_cLevelTable
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _SEEK_SET,4,2 ## @SEEK_SET
.comm _stdout,8,3 ## @stdout
.no_dead_strip _BMK_saveAndPrint_cLevelTable
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_BMK_saveAndPrint_cLevelTable.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function FUZ_rotl32
_FUZ_rotl32: ; @FUZ_rotl32
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
ldr w8, [sp, #12]
ldr w9, [sp, #8]
lsl w8, w8, w9
ldr w9, [sp, #12]
ldr w11, [sp, #8]
mov w10, #32
subs w10, w10, w11
asr w9, w9, w10
orr w0, w8, w9
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.no_dead_strip _FUZ_rotl32
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function FUZ_rotl32
_FUZ_rotl32: ## @FUZ_rotl32
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl -4(%rbp), %eax
movl -8(%rbp), %ecx
## kill: def $cl killed $ecx
shll %cl, %eax
movl -4(%rbp), %edx
movl $32, %ecx
subl -8(%rbp), %ecx
## kill: def $cl killed $ecx
sarl %cl, %edx
movl %edx, %ecx
orl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _FUZ_rotl32
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_FUZ_rotl32.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function NB_TESTS_PLAYED
_NB_TESTS_PLAYED: ; @NB_TESTS_PLAYED
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w0, [x29, #-4]
bl _sanitizeParams
bl _pvalsToCParams
mov x8, x0
add x0, sp, #8
str w8, [sp, #8]
mov w1, #4
mov w2, #0
bl _XXH64
str x0, [sp]
adrp x8, _g_alreadyTested@GOTPAGE
ldr x8, [x8, _g_alreadyTested@GOTPAGEOFF]
ldr x8, [x8]
ldr x10, [sp]
adrp x9, _PARAMTABLEMASK@GOTPAGE
ldr x9, [x9, _PARAMTABLEMASK@GOTPAGEOFF]
ldr x9, [x9]
and x9, x9, x10, lsr #3
add x0, x8, x9, lsl #2
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _g_alreadyTested,8,3 ; @g_alreadyTested
.comm _PARAMTABLEMASK,8,3 ; @PARAMTABLEMASK
.no_dead_strip _NB_TESTS_PLAYED
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function NB_TESTS_PLAYED
_NB_TESTS_PLAYED: ## @NB_TESTS_PLAYED
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl -4(%rbp), %edi
callq _sanitizeParams
movl %eax, %edi
callq _pvalsToCParams
movl %eax, -8(%rbp)
leaq -8(%rbp), %rdi
movl $4, %esi
xorl %edx, %edx
callq _XXH64
movq %rax, -16(%rbp)
movq _g_alreadyTested@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
shrq $3, %rcx
movq _PARAMTABLEMASK@GOTPCREL(%rip), %rdx
andq (%rdx), %rcx
shlq $2, %rcx
addq %rcx, %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_alreadyTested,8,3 ## @g_alreadyTested
.comm _PARAMTABLEMASK,8,3 ## @PARAMTABLEMASK
.no_dead_strip _NB_TESTS_PLAYED
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_NB_TESTS_PLAYED.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function adjustParams
_adjustParams: ; @adjustParams
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
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
stur x0, [x29, #-16]
stur x1, [x29, #-24]
str x2, [sp, #32]
ldur x8, [x29, #-16]
str x8, [sp, #24]
ldur x0, [x29, #-16]
bl _pvalsToCParams
ldur x1, [x29, #-24]
ldr x2, [sp, #32]
bl _ZSTD_adjustCParams
bl _cParamsToPVals
str x0, [sp, #8]
ldr x8, [sp, #8]
stur x8, [x29, #-16]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x9, [x29, #-16]
adrp x8, _fadt_ind@GOTPAGE
ldr x8, [x8, _fadt_ind@GOTPAGEOFF]
ldr x10, [x8]
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB0_2
LBB0_2:
adrp x8, _strt_ind@GOTPAGE
ldr x8, [x8, _strt_ind@GOTPAGEOFF]
ldr x8, [x8]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #24]
ldr x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-16]
ldr x10, [sp, #16]
str w8, [x9, x10, lsl #2]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_3
LBB0_6:
ldur x8, [x29, #-16]
stur x8, [x29, #-8]
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _fadt_ind,8,3 ; @fadt_ind
.comm _strt_ind,8,3 ; @strt_ind
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.no_dead_strip _adjustParams
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function adjustParams
_adjustParams: ## @adjustParams
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq -16(%rbp), %rax
movq %rax, -40(%rbp)
movq -16(%rbp), %rdi
callq _pvalsToCParams
movl %eax, %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
callq _ZSTD_adjustCParams
movl %eax, %edi
callq _cParamsToPVals
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movq %rax, -16(%rbp)
cmpq $0, -32(%rbp)
jne LBB0_2
## %bb.1:
movq -16(%rbp), %rax
movq _fadt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movl $0, (%rax,%rcx,4)
LBB0_2:
movq _strt_ind@GOTPCREL(%rip), %rax
movq (%rax), %rax
addq $1, %rax
movq %rax, -48(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -48(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -40(%rbp), %rax
movq -48(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movq -48(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq -48(%rbp), %rax
addq $1, %rax
movq %rax, -48(%rbp)
jmp LBB0_3
LBB0_6:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _fadt_ind,8,3 ## @fadt_ind
.comm _strt_ind,8,3 ## @strt_ind
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.no_dead_strip _adjustParams
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_adjustParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function allBench
_allBench: ; @allBench
.cfi_startproc
; %bb.0:
sub sp, sp, #208
.cfi_def_cfa_offset 208
stp x29, x30, [sp, #192] ; 16-byte Folded Spill
add x29, sp, #192
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x8, x3
adrp x9, _WORSE_RESULT@GOTPAGE
ldr x9, [x9, _WORSE_RESULT@GOTPAGEOFF]
str x9, [sp, #24] ; 8-byte Folded Spill
stur x1, [x29, #-16]
stur x0, [x29, #-24]
stur w2, [x29, #-28]
sub x3, x29, #32
stur w8, [x29, #-32]
stur w4, [x29, #-36]
stur x5, [x29, #-48]
stur w6, [x29, #-52]
fmov d0, #3.00000000
stur d0, [x29, #-88]
str d0, [sp, #96]
ldur w1, [x29, #-28]
adrp x8, _BASE_CLEVEL@GOTPAGE
ldr x8, [x8, _BASE_CLEVEL@GOTPAGEOFF]
ldr w2, [x8]
adrp x8, _BMK_both@GOTPAGE
ldr x8, [x8, _BMK_both@GOTPAGEOFF]
ldr w4, [x8]
ldur x0, [x29, #-16]
mov w5, #2
bl _BMK_benchMemInvertible
str w0, [sp, #84]
ldr w0, [sp, #84]
bl _BMK_isSuccessful_benchOutcome
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DEBUGOUTPUT
adrp x8, _ERROR_RESULT@GOTPAGE
ldr x8, [x8, _ERROR_RESULT@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_21
LBB0_2:
ldr w0, [sp, #84]
bl _BMK_extract_benchResult
str x0, [sp, #64]
str x1, [sp, #72]
ldr q0, [sp, #64]
stur q0, [x29, #-80]
ldur x8, [x29, #-48]
ldur x2, [x29, #-16]
ldur w3, [x29, #-36]
ldr x0, [x8]
ldr x1, [x8, #8]
bl _resultScore
str d0, [sp, #88]
ldr d0, [sp, #88]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DEBUGOUTPUT
ldur x8, [x29, #-24]
ldur q0, [x29, #-80]
str q0, [x8]
ldur w8, [x29, #-52]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3:
ldur x8, [x29, #-80]
ldur x9, [x29, #-48]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4:
adrp x8, _g_optmode@GOTPAGE
ldr x8, [x8, _g_optmode@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_21
LBB0_6:
ldur w8, [x29, #-72]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldur d0, [x29, #-16]
scvtf d0, d0
adrp x8, _TIMELOOP_NANOSEC@GOTPAGE
ldr x8, [x8, _TIMELOOP_NANOSEC@GOTPAGEOFF]
ldr d1, [x8]
fmul d0, d0, d1
ldur s2, [x29, #-72]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fdiv d0, d0, d1
str d0, [sp, #56]
ldr d0, [sp, #56]
adrp x8, _g_clockGranularity@GOTPAGE
ldr x8, [x8, _g_clockGranularity@GOTPAGEOFF]
ldr w9, [x8]
mov w8, #2
mul w8, w8, w9
scvtf d1, w8
fadd d0, d0, d1
ldr d1, [sp, #56]
fdiv d0, d0, d1
stur d0, [x29, #-88]
b LBB0_8
LBB0_8:
ldur w8, [x29, #-68]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldur d0, [x29, #-16]
scvtf d0, d0
adrp x8, _TIMELOOP_NANOSEC@GOTPAGE
ldr x8, [x8, _TIMELOOP_NANOSEC@GOTPAGEOFF]
ldr d1, [x8]
fmul d0, d0, d1
ldur s2, [x29, #-68]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fdiv d0, d0, d1
str d0, [sp, #48]
ldr d0, [sp, #48]
adrp x8, _g_clockGranularity@GOTPAGE
ldr x8, [x8, _g_clockGranularity@GOTPAGEOFF]
ldr w9, [x8]
mov w8, #2
mul w8, w8, w9
scvtf d1, w8
fadd d0, d0, d1
ldr d1, [sp, #48]
fdiv d0, d0, d1
str d0, [sp, #96]
b LBB0_10
LBB0_10:
ldur q0, [x29, #-80]
str q0, [sp, #32]
ldr s1, [sp, #40]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
ldur d1, [x29, #-88]
fmul d0, d0, d1
adrp x8, _VARIANCE@GOTPAGE
ldr x8, [x8, _VARIANCE@GOTPAGEOFF]
ldr d1, [x8]
fmul d0, d0, d1
fcvtzu x9, d0
; kill: def $w9 killed $w9 killed $x9
str w9, [sp, #40]
ldr s1, [sp, #44]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
ldr d1, [sp, #96]
fmul d0, d0, d1
ldr d1, [x8]
fmul d0, d0, d1
fcvtzu x8, d0
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #44]
ldur w8, [x29, #-52]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldur w2, [x29, #-36]
ldr x0, [sp, #32]
ldr x1, [sp, #40]
bl _feasible
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_12
LBB0_12:
ldur w8, [x29, #-52]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_13
LBB0_13:
ldr d0, [sp, #88]
str d0, [sp, #16] ; 8-byte Folded Spill
ldur x2, [x29, #-16]
ldur w3, [x29, #-36]
ldr x0, [sp, #32]
ldr x1, [sp, #40]
bl _resultScore
fmov d1, d0
ldr d0, [sp, #16] ; 8-byte Folded Reload
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_21
LBB0_15:
ldur w8, [x29, #-52]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16:
ldur x2, [x29, #-16]
ldur w3, [x29, #-36]
ldur x0, [x29, #-80]
ldur x1, [x29, #-72]
bl _resultScore
str d0, [sp, #8] ; 8-byte Folded Spill
ldur x8, [x29, #-48]
ldur x2, [x29, #-16]
ldur w3, [x29, #-36]
ldr x0, [x8]
ldr x1, [x8, #8]
bl _resultScore
fmov d1, d0
ldr d0, [sp, #8] ; 8-byte Folded Reload
fcmp d0, d1
cset w8, gt
tbnz w8, #0, LBB0_19
b LBB0_17
LBB0_17:
ldur w8, [x29, #-52]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_20
b LBB0_18
LBB0_18:
ldur x8, [x29, #-48]
ldur w4, [x29, #-36]
ldur x5, [x29, #-16]
ldr x0, [x8]
ldr x1, [x8, #8]
ldur x2, [x29, #-80]
ldur x3, [x29, #-72]
bl _compareResultLT
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19:
adrp x8, _BETTER_RESULT@GOTPAGE
ldr x8, [x8, _BETTER_RESULT@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_21
LBB0_20:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_21
LBB0_21:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #192] ; 16-byte Folded Reload
add sp, sp, #208
ret
.cfi_endproc
; -- End function
.comm _BASE_CLEVEL,4,2 ; @BASE_CLEVEL
.comm _BMK_both,4,2 ; @BMK_both
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Benchmarking failed \n"
.comm _ERROR_RESULT,4,2 ; @ERROR_RESULT
l_.str.1: ; @.str.1
.asciz "WinnerScore: %f \n "
.comm _g_optmode,4,2 ; @g_optmode
.comm _WORSE_RESULT,4,2 ; @WORSE_RESULT
.comm _TIMELOOP_NANOSEC,8,3 ; @TIMELOOP_NANOSEC
.comm _g_clockGranularity,4,2 ; @g_clockGranularity
.comm _VARIANCE,8,3 ; @VARIANCE
.comm _BETTER_RESULT,4,2 ; @BETTER_RESULT
.no_dead_strip _allBench
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function allBench
LCPI0_0:
.quad 0x4008000000000000 ## double 3
LCPI0_1:
.quad 0x43e0000000000000 ## double 9.2233720368547758E+18
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_allBench: ## @allBench
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $160, %rsp
movl 16(%rbp), %eax
movq %rsi, -16(%rbp)
movq %rdi, -24(%rbp)
movl %edx, -28(%rbp)
movl %ecx, -32(%rbp)
movl %r8d, -36(%rbp)
movq %r9, -48(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -72(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -80(%rbp)
movl -28(%rbp), %esi
movq _BASE_CLEVEL@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq _BMK_both@GOTPCREL(%rip), %rax
movl (%rax), %r8d
movq -16(%rbp), %rdi
leaq -32(%rbp), %rcx
movl $2, %r9d
callq _BMK_benchMemInvertible
movl %eax, -92(%rbp)
movl -92(%rbp), %edi
callq _BMK_isSuccessful_benchOutcome
cmpl $0, %eax
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DEBUGOUTPUT
movq _ERROR_RESULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_21
LBB0_2:
movl -92(%rbp), %edi
callq _BMK_extract_benchResult
movq %rax, -112(%rbp)
movq %rdx, -104(%rbp)
movq -112(%rbp), %rax
movq %rax, -64(%rbp)
movq -104(%rbp), %rax
movq %rax, -56(%rbp)
movq -48(%rbp), %rax
movq -16(%rbp), %rdx
movl -36(%rbp), %ecx
movq (%rax), %rdi
movq 8(%rax), %rsi
callq _resultScore
movsd %xmm0, -88(%rbp)
movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.1(%rip), %rdi
movb $1, %al
callq _DEBUGOUTPUT
movq -24(%rbp), %rax
movq -64(%rbp), %rcx
movq %rcx, (%rax)
movq -56(%rbp), %rcx
movq %rcx, 8(%rax)
cmpl $0, 16(%rbp)
je LBB0_6
## %bb.3:
movq -64(%rbp), %rax
movq -48(%rbp), %rcx
cmpq (%rcx), %rax
jge LBB0_6
## %bb.4:
movq _g_optmode@GOTPCREL(%rip), %rax
cmpl $0, (%rax)
jne LBB0_6
## %bb.5:
movq _WORSE_RESULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_21
LBB0_6:
cmpl $0, -56(%rbp)
je LBB0_8
## %bb.7:
cvtsi2sdq -16(%rbp), %xmm0
movq _TIMELOOP_NANOSEC@GOTPCREL(%rip), %rax
mulsd (%rax), %xmm0
cvtsi2sdl -56(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -120(%rbp)
movsd -120(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq _g_clockGranularity@GOTPCREL(%rip), %rax
movl (%rax), %eax
shll $1, %eax
cvtsi2sd %eax, %xmm1
addsd %xmm1, %xmm0
divsd -120(%rbp), %xmm0
movsd %xmm0, -72(%rbp)
LBB0_8:
cmpl $0, -52(%rbp)
je LBB0_10
## %bb.9:
cvtsi2sdq -16(%rbp), %xmm0
movq _TIMELOOP_NANOSEC@GOTPCREL(%rip), %rax
mulsd (%rax), %xmm0
cvtsi2sdl -52(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -128(%rbp)
movsd -128(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq _g_clockGranularity@GOTPCREL(%rip), %rax
movl (%rax), %eax
shll $1, %eax
cvtsi2sd %eax, %xmm1
addsd %xmm1, %xmm0
divsd -128(%rbp), %xmm0
movsd %xmm0, -80(%rbp)
LBB0_10:
movups -64(%rbp), %xmm0
movaps %xmm0, -144(%rbp)
cvtsi2sdl -136(%rbp), %xmm0
movsd -72(%rbp), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
movq _VARIANCE@GOTPCREL(%rip), %rax
movsd (%rax), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rcx
movq %rcx, %rdx
sarq $63, %rdx
movl %edx, %esi
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rdx
## kill: def $edx killed $edx killed $rdx
andl %esi, %edx
## kill: def $ecx killed $ecx killed $rcx
orl %edx, %ecx
movl %ecx, -136(%rbp)
cvtsi2sdl -132(%rbp), %xmm0
movsd -80(%rbp), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
movsd (%rax), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
movaps %xmm0, %xmm2
cvttsd2si %xmm2, %rax
movq %rax, %rdx
sarq $63, %rdx
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -132(%rbp)
cmpl $0, 16(%rbp)
je LBB0_12
## %bb.11:
movl -36(%rbp), %edx
movq -144(%rbp), %rdi
movq -136(%rbp), %rsi
callq _feasible
cmpl $0, %eax
je LBB0_14
LBB0_12:
cmpl $0, 16(%rbp)
jne LBB0_15
## %bb.13:
movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -152(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdx
movl -36(%rbp), %ecx
movq -144(%rbp), %rdi
movq -136(%rbp), %rsi
callq _resultScore
movaps %xmm0, %xmm1
movsd -152(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB0_15
LBB0_14:
movq _WORSE_RESULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_21
LBB0_15:
cmpl $0, 16(%rbp)
jne LBB0_17
## %bb.16:
movq -16(%rbp), %rdx
movl -36(%rbp), %ecx
movq -64(%rbp), %rdi
movq -56(%rbp), %rsi
callq _resultScore
movsd %xmm0, -160(%rbp) ## 8-byte Spill
movq -48(%rbp), %rax
movq -16(%rbp), %rdx
movl -36(%rbp), %ecx
movq (%rax), %rdi
movq 8(%rax), %rsi
callq _resultScore
movaps %xmm0, %xmm1
movsd -160(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
ucomisd %xmm1, %xmm0
ja LBB0_19
LBB0_17:
cmpl $0, 16(%rbp)
je LBB0_20
## %bb.18:
movq -48(%rbp), %rax
movl -36(%rbp), %r8d
movq -16(%rbp), %r9
movq (%rax), %rdi
movq 8(%rax), %rsi
movq -64(%rbp), %rdx
movq -56(%rbp), %rcx
callq _compareResultLT
cmpq $0, %rax
je LBB0_20
LBB0_19:
movq _BETTER_RESULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_21
LBB0_20:
movq _WORSE_RESULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
LBB0_21:
movl -4(%rbp), %eax
addq $160, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _BASE_CLEVEL,4,2 ## @BASE_CLEVEL
.comm _BMK_both,4,2 ## @BMK_both
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Benchmarking failed \n"
.comm _ERROR_RESULT,4,2 ## @ERROR_RESULT
L_.str.1: ## @.str.1
.asciz "WinnerScore: %f \n "
.comm _g_optmode,4,2 ## @g_optmode
.comm _WORSE_RESULT,4,2 ## @WORSE_RESULT
.comm _TIMELOOP_NANOSEC,8,3 ## @TIMELOOP_NANOSEC
.comm _g_clockGranularity,4,2 ## @g_clockGranularity
.comm _VARIANCE,8,3 ## @VARIANCE
.comm _BETTER_RESULT,4,2 ## @BETTER_RESULT
.no_dead_strip _allBench
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_allBench.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function badusage
_badusage: ; @badusage
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldr x0, [sp, #8]
bl _usage
mov w0, #1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Wrong parameters\n"
.no_dead_strip _badusage
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function badusage
_badusage: ## @badusage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
leaq L_.str(%rip), %rdi
callq _DISPLAY
movq -8(%rbp), %rdi
callq _usage
movl $1, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Wrong parameters\n"
.no_dead_strip _badusage
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_badusage.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function benchFiles
_benchFiles: ; @benchFiles
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
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
stur x0, [x29, #-16]
stur w1, [x29, #-20]
str x2, [sp, #32]
str w3, [sp, #28]
str wzr, [sp, #16]
ldur x1, [x29, #-16]
ldur w2, [x29, #-20]
add x0, sp, #24
bl _createBuffers
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_11
LBB0_2:
ldr x1, [sp, #32]
add x0, sp, #20
bl _createContexts
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
ldr w0, [sp, #24]
bl _freeBuffers
mov w8, #2
stur w8, [x29, #-4]
b LBB0_11
LBB0_4:
mov x9, sp
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
ldur w8, [x29, #-20]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldur x8, [x29, #-16]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
b LBB0_7
LBB0_6:
ldur w9, [x29, #-20]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
b LBB0_7
LBB0_7:
adrp x8, _g_singleRun@GOTPAGE
ldr x8, [x8, _g_singleRun@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr w0, [sp, #24]
ldr w1, [sp, #20]
ldr w2, [sp, #28]
bl _benchOnce
str w0, [sp, #16]
b LBB0_10
LBB0_9:
ldr w0, [sp, #24]
ldr w1, [sp, #20]
bl _BMK_generate_cLevelTable
b LBB0_10
LBB0_10:
ldr w0, [sp, #24]
bl _freeBuffers
ldr w0, [sp, #20]
bl _freeContexts
ldr w8, [sp, #16]
stur w8, [x29, #-4]
b LBB0_11
LBB0_11:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "unable to load files\n"
l_.str.1: ; @.str.1
.asciz "unable to load dictionary\n"
l_.str.2: ; @.str.2
.asciz "\r%79s\r"
l_.str.3: ; @.str.3
.space 1
l_.str.4: ; @.str.4
.asciz "using %s : \n"
l_.str.5: ; @.str.5
.asciz "using %d Files : \n"
.comm _g_singleRun,8,3 ; @g_singleRun
.no_dead_strip _benchFiles
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function benchFiles
_benchFiles: ## @benchFiles
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movq %rdx, -32(%rbp)
movl %ecx, -36(%rbp)
movl $0, -48(%rbp)
movq -16(%rbp), %rsi
movl -20(%rbp), %edx
leaq -40(%rbp), %rdi
callq _createBuffers
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_11
LBB0_2:
movq -32(%rbp), %rsi
leaq -44(%rbp), %rdi
callq _createContexts
cmpq $0, %rax
je LBB0_4
## %bb.3:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
movl -40(%rbp), %edi
callq _freeBuffers
movl $2, -4(%rbp)
jmp LBB0_11
LBB0_4:
leaq L_.str.2(%rip), %rdi
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _DISPLAY
cmpl $1, -20(%rbp)
jne LBB0_6
## %bb.5:
movq -16(%rbp), %rax
movq (%rax), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
jmp LBB0_7
LBB0_6:
movl -20(%rbp), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_7:
movq _g_singleRun@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_9
## %bb.8:
movl -40(%rbp), %edi
movl -44(%rbp), %esi
movl -36(%rbp), %edx
callq _benchOnce
movl %eax, -48(%rbp)
jmp LBB0_10
LBB0_9:
movl -40(%rbp), %edi
movl -44(%rbp), %esi
callq _BMK_generate_cLevelTable
LBB0_10:
movl -40(%rbp), %edi
callq _freeBuffers
movl -44(%rbp), %edi
callq _freeContexts
movl -48(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_11:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "unable to load files\n"
L_.str.1: ## @.str.1
.asciz "unable to load dictionary\n"
L_.str.2: ## @.str.2
.asciz "\r%79s\r"
L_.str.3: ## @.str.3
.space 1
L_.str.4: ## @.str.4
.asciz "using %s : \n"
L_.str.5: ## @.str.5
.asciz "using %d Files : \n"
.comm _g_singleRun,8,3 ## @g_singleRun
.no_dead_strip _benchFiles
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_benchFiles.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function benchMemo
_benchMemo: ; @benchMemo
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
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
stur x1, [x29, #-12]
stur x0, [x29, #-24]
stur w2, [x29, #-28]
stur w3, [x29, #-32]
stur w4, [x29, #-36]
str x5, [sp, #32]
str x6, [sp, #24]
str w7, [sp, #20]
ldr x0, [sp, #24]
ldur w1, [x29, #-32]
bl _memoTableGet
adrp x8, _INFEASIBLE_THRESHOLD@GOTPAGE
ldr x8, [x8, _INFEASIBLE_THRESHOLD@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x0, x8
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur w0, [x29, #-32]
ldur w1, [x29, #-36]
ldur w2, [x29, #-8]
bl _redundantParams
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
adrp x8, _WORSE_RESULT@GOTPAGE
ldr x8, [x8, _WORSE_RESULT@GOTPAGEOFF]
ldr w8, [x8]
stur w8, [x29, #-4]
b LBB0_10
LBB0_3:
ldur x0, [x29, #-24]
ldur w2, [x29, #-28]
ldur w3, [x29, #-32]
ldur w4, [x29, #-36]
ldr x5, [sp, #32]
ldr w6, [sp, #20]
ldur x1, [x29, #-12]
bl _allBench
str w0, [sp, #16]
adrp x8, _DEBUG@GOTPAGE
ldr x8, [x8, _DEBUG@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4:
adrp x8, _benchMemo.bmcount@PAGE
ldr w8, [x8, _benchMemo.bmcount@PAGEOFF]
mov w10, #250
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x8, _benchMemo.bmcount@PAGE
str x8, [sp, #8] ; 8-byte Folded Spill
ldr w1, [x8, _benchMemo.bmcount@PAGEOFF]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr w8, [x9, _benchMemo.bmcount@PAGEOFF]
add w8, w8, #1
str w8, [x9, _benchMemo.bmcount@PAGEOFF]
b LBB0_6
LBB0_6:
adrp x8, _stdout@GOTPAGE
ldr x8, [x8, _stdout@GOTPAGEOFF]
ldr w0, [x8]
adrp x8, _CUSTOM_LEVEL@GOTPAGE
ldr x8, [x8, _CUSTOM_LEVEL@GOTPAGEOFF]
ldr w1, [x8]
ldur x8, [x29, #-24]
ldr w2, [x8]
ldur w3, [x29, #-32]
ldur w4, [x29, #-36]
ldur w5, [x29, #-12]
bl _BMK_printWinnerOpt
ldr w8, [sp, #16]
adrp x9, _BETTER_RESULT@GOTPAGE
ldr x9, [x9, _BETTER_RESULT@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr x0, [sp, #24]
ldur w1, [x29, #-32]
mov w2, #255
bl _memoTableSet
b LBB0_9
LBB0_9:
ldr w8, [sp, #16]
stur w8, [x29, #-4]
b LBB0_10
LBB0_10:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_benchMemo.bmcount,4,2 ; @benchMemo.bmcount
.comm _INFEASIBLE_THRESHOLD,8,3 ; @INFEASIBLE_THRESHOLD
.comm _WORSE_RESULT,4,2 ; @WORSE_RESULT
.comm _DEBUG,8,3 ; @DEBUG
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Count: %d\n"
.comm _stdout,4,2 ; @stdout
.comm _CUSTOM_LEVEL,4,2 ; @CUSTOM_LEVEL
.comm _BETTER_RESULT,4,2 ; @BETTER_RESULT
.no_dead_strip _benchMemo
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function benchMemo
_benchMemo: ## @benchMemo
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl 24(%rbp), %eax
movq 16(%rbp), %rax
movq %rsi, -16(%rbp)
movq %rdi, -24(%rbp)
movl %edx, -28(%rbp)
movl %ecx, -32(%rbp)
movl %r8d, -36(%rbp)
movq %r9, -48(%rbp)
movq 16(%rbp), %rdi
movl -32(%rbp), %esi
callq _memoTableGet
movq _INFEASIBLE_THRESHOLD@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jge LBB0_2
## %bb.1:
movl -32(%rbp), %edi
movl -36(%rbp), %esi
movl -12(%rbp), %edx
callq _redundantParams
cmpq $0, %rax
je LBB0_3
LBB0_2:
movq _WORSE_RESULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_10
LBB0_3:
movq -24(%rbp), %rdi
movl -28(%rbp), %edx
movl -32(%rbp), %ecx
movl -36(%rbp), %r8d
movq -48(%rbp), %r9
movl 24(%rbp), %eax
movq -16(%rbp), %rsi
movl %eax, (%rsp)
callq _allBench
movl %eax, -52(%rbp)
movq _DEBUG@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_6
## %bb.4:
movl _benchMemo.bmcount(%rip), %eax
movl $250, %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne LBB0_6
## %bb.5:
movl _benchMemo.bmcount(%rip), %esi
leaq L_.str(%rip), %rdi
callq _DISPLAY
movl _benchMemo.bmcount(%rip), %eax
addl $1, %eax
movl %eax, _benchMemo.bmcount(%rip)
LBB0_6:
movq _stdout@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _CUSTOM_LEVEL@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -24(%rbp), %rax
movl (%rax), %edx
movl -32(%rbp), %ecx
movl -36(%rbp), %r8d
movl -16(%rbp), %r9d
callq _BMK_printWinnerOpt
movl -52(%rbp), %eax
movq _BETTER_RESULT@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
je LBB0_8
## %bb.7:
cmpl $0, 24(%rbp)
je LBB0_9
LBB0_8:
movq 16(%rbp), %rdi
movl -32(%rbp), %esi
movl $255, %edx
callq _memoTableSet
LBB0_9:
movl -52(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_10:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_benchMemo.bmcount,4,2 ## @benchMemo.bmcount
.comm _INFEASIBLE_THRESHOLD,8,3 ## @INFEASIBLE_THRESHOLD
.comm _WORSE_RESULT,4,2 ## @WORSE_RESULT
.comm _DEBUG,8,3 ## @DEBUG
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Count: %d\n"
.comm _stdout,4,2 ## @stdout
.comm _CUSTOM_LEVEL,4,2 ## @CUSTOM_LEVEL
.comm _BETTER_RESULT,4,2 ## @BETTER_RESULT
.no_dead_strip _benchMemo
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_benchMemo.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function benchOnce
_benchOnce: ; @benchOnce
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _g_params@GOTPAGE
ldr x8, [x8, _g_params@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
stur x0, [x29, #-12]
mov x8, x1
str w8, [sp, #16]
str w2, [sp, #12]
ldr w0, [sp, #12]
ldur w1, [x29, #-8]
ldr w2, [sp, #16]
bl _ZSTD_getCParams
bl _cParamsToPVals
ldr x8, [sp] ; 8-byte Folded Reload
ldr w1, [x8]
bl _overwriteParams
ldur w1, [x29, #-8]
ldr w2, [sp, #16]
bl _adjustParams
ldr x8, [sp] ; 8-byte Folded Reload
str w0, [x8]
ldr w3, [x8]
ldur x1, [x29, #-12]
ldr w8, [sp, #16]
mov x2, x8
add x0, sp, #8
bl _BMK_benchParam
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w8, #1
stur w8, [x29, #-4]
b LBB0_3
LBB0_2:
ldr x8, [sp] ; 8-byte Folded Reload
adrp x9, _stdout@GOTPAGE
ldr x9, [x9, _stdout@GOTPAGEOFF]
ldr w0, [x9]
adrp x9, _CUSTOM_LEVEL@GOTPAGE
ldr x9, [x9, _CUSTOM_LEVEL@GOTPAGEOFF]
ldr w1, [x9]
ldr w2, [sp, #8]
ldr w3, [x8]
ldur w4, [x29, #-12]
bl _BMK_printWinner
stur wzr, [x29, #-4]
b LBB0_3
LBB0_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _g_params,4,2 ; @g_params
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error during benchmarking\n"
.comm _stdout,4,2 ; @stdout
.comm _CUSTOM_LEVEL,4,2 ; @CUSTOM_LEVEL
.no_dead_strip _benchOnce
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function benchOnce
_benchOnce: ## @benchOnce
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movl %esi, -24(%rbp)
movl %edx, -28(%rbp)
movl -28(%rbp), %edi
movl -12(%rbp), %esi
movl -24(%rbp), %edx
callq _ZSTD_getCParams
movl %eax, %edi
callq _cParamsToPVals
movl %eax, %edi
movq _g_params@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _overwriteParams
movl %eax, %edi
movl -12(%rbp), %esi
movl -24(%rbp), %edx
callq _adjustParams
movl %eax, %ecx
movq _g_params@GOTPCREL(%rip), %rax
movl %ecx, (%rax)
movq _g_params@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -16(%rbp), %rsi
movl -24(%rbp), %edx
leaq -32(%rbp), %rdi
callq _BMK_benchParam
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
callq _DISPLAY
movl $1, -4(%rbp)
jmp LBB0_3
LBB0_2:
movq _stdout@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _CUSTOM_LEVEL@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -32(%rbp), %edx
movq _g_params@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movl -16(%rbp), %r8d
callq _BMK_printWinner
movl $0, -4(%rbp)
LBB0_3:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_params,4,2 ## @g_params
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error during benchmarking\n"
.comm _stdout,4,2 ## @stdout
.comm _CUSTOM_LEVEL,4,2 ## @CUSTOM_LEVEL
.no_dead_strip _benchOnce
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_benchOnce.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function cParamUnsetMin
_cParamUnsetMin: ; @cParamUnsetMin
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #16]
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr x9, [sp, #8]
ldr x8, [x8, x9, lsl #3]
adrp x9, _PARAM_UNSET@GOTPAGE
ldr x9, [x9, _PARAM_UNSET@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _mintable@GOTPAGE
ldr x8, [x8, _mintable@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #8]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #16]
ldr x10, [sp, #8]
str x8, [x9, x10, lsl #3]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_6:
ldr x8, [sp, #16]
str x8, [sp, #24]
ldr x0, [sp, #24]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _PARAM_UNSET,8,3 ; @PARAM_UNSET
.comm _mintable,8,3 ; @mintable
.no_dead_strip _cParamUnsetMin
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function cParamUnsetMin
_cParamUnsetMin: ## @cParamUnsetMin
.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, -16(%rbp)
movq $0, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq _mintable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -16(%rbp), %rax
movq -24(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_6:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _PARAM_UNSET,8,3 ## @PARAM_UNSET
.comm _mintable,8,3 ## @mintable
.no_dead_strip _cParamUnsetMin
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_cParamUnsetMin.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function cParamsToPVals
_cParamsToPVals: ; @cParamsToPVals
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
ldr w8, [x0, #24]
ldr x9, [sp, #8]
adrp x10, _wlog_ind@GOTPAGE
ldr x10, [x10, _wlog_ind@GOTPAGEOFF]
ldr x10, [x10]
str w8, [x9, x10, lsl #2]
ldr w8, [x0, #20]
ldr x9, [sp, #8]
adrp x10, _clog_ind@GOTPAGE
ldr x10, [x10, _clog_ind@GOTPAGEOFF]
ldr x10, [x10]
str w8, [x9, x10, lsl #2]
ldr w8, [x0, #16]
ldr x9, [sp, #8]
adrp x10, _hlog_ind@GOTPAGE
ldr x10, [x10, _hlog_ind@GOTPAGEOFF]
ldr x10, [x10]
str w8, [x9, x10, lsl #2]
ldr w8, [x0, #12]
ldr x9, [sp, #8]
adrp x10, _slog_ind@GOTPAGE
ldr x10, [x10, _slog_ind@GOTPAGEOFF]
ldr x10, [x10]
str w8, [x9, x10, lsl #2]
ldr w8, [x0, #8]
ldr x9, [sp, #8]
adrp x10, _mml_ind@GOTPAGE
ldr x10, [x10, _mml_ind@GOTPAGEOFF]
ldr x10, [x10]
str w8, [x9, x10, lsl #2]
ldr w8, [x0, #4]
ldr x9, [sp, #8]
adrp x10, _tlen_ind@GOTPAGE
ldr x10, [x10, _tlen_ind@GOTPAGEOFF]
ldr x10, [x10]
str w8, [x9, x10, lsl #2]
ldr w9, [x0]
ldr x10, [sp, #8]
adrp x8, _strt_ind@GOTPAGE
ldr x8, [x8, _strt_ind@GOTPAGEOFF]
ldr x11, [x8]
str w9, [x10, x11, lsl #2]
ldr x8, [x8]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _mintable@GOTPAGE
ldr x8, [x8, _mintable@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #8]
ldr x10, [sp]
str w8, [x9, x10, lsl #2]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_4:
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _wlog_ind,8,3 ; @wlog_ind
.comm _clog_ind,8,3 ; @clog_ind
.comm _hlog_ind,8,3 ; @hlog_ind
.comm _slog_ind,8,3 ; @slog_ind
.comm _mml_ind,8,3 ; @mml_ind
.comm _tlen_ind,8,3 ; @tlen_ind
.comm _strt_ind,8,3 ; @strt_ind
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _mintable,8,3 ; @mintable
.no_dead_strip _cParamsToPVals
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function cParamsToPVals
_cParamsToPVals: ## @cParamsToPVals
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq 16(%rbp), %rax
movl 24(%rax), %esi
movq -8(%rbp), %rcx
movq _wlog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl %esi, (%rcx,%rdx,4)
movl 20(%rax), %esi
movq -8(%rbp), %rcx
movq _clog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl %esi, (%rcx,%rdx,4)
movl 16(%rax), %esi
movq -8(%rbp), %rcx
movq _hlog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl %esi, (%rcx,%rdx,4)
movl 12(%rax), %esi
movq -8(%rbp), %rcx
movq _slog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl %esi, (%rcx,%rdx,4)
movl 8(%rax), %esi
movq -8(%rbp), %rcx
movq _mml_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl %esi, (%rcx,%rdx,4)
movl 4(%rax), %esi
movq -8(%rbp), %rcx
movq _tlen_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl %esi, (%rcx,%rdx,4)
movl (%rax), %edx
movq -8(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movl %edx, (%rax,%rcx,4)
movq _strt_ind@GOTPCREL(%rip), %rax
movq (%rax), %rax
addq $1, %rax
movq %rax, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _mintable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -8(%rbp), %rax
movq -16(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_4:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _wlog_ind,8,3 ## @wlog_ind
.comm _clog_ind,8,3 ## @clog_ind
.comm _hlog_ind,8,3 ## @hlog_ind
.comm _slog_ind,8,3 ## @slog_ind
.comm _mml_ind,8,3 ## @mml_ind
.comm _tlen_ind,8,3 ## @tlen_ind
.comm _strt_ind,8,3 ## @strt_ind
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _mintable,8,3 ## @mintable
.no_dead_strip _cParamsToPVals
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_cParamsToPVals.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function compareResultLT
_compareResultLT: ; @compareResultLT
.cfi_startproc
; %bb.0:
sub sp, sp, #368
.cfi_def_cfa_offset 368
stp x28, x27, [sp, #336] ; 16-byte Folded Spill
stp x29, x30, [sp, #352] ; 16-byte Folded Spill
add x29, sp, #352
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
mov x8, x0
str x8, [sp, #48] ; 8-byte Folded Spill
str x1, [sp, #56] ; 8-byte Folded Spill
stur w2, [x29, #-24]
stur x3, [x29, #-32]
ldur w1, [x29, #-24]
ldr q0, [x8]
sub x0, x29, #64
stur q0, [x29, #-64]
ldr x8, [x8, #16]
stur x8, [x29, #-48]
bl _feasible
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_1
LBB0_1:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldur w1, [x29, #-24]
ldr q0, [x8]
sub x0, x29, #96
stur q0, [x29, #-96]
ldr x8, [x8, #16]
stur x8, [x29, #-80]
bl _feasible
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_2
LBB0_2:
adrp x8, _g_optmode@GOTPAGE
ldr x8, [x8, _g_optmode@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #48] ; 8-byte Folded Reload
adrp x9, _g_lvltarget@GOTPAGE
ldr x9, [x9, _g_lvltarget@GOTPAGEOFF]
str x9, [sp, #32] ; 8-byte Folded Spill
ldr w1, [x9]
ldr q0, [x8]
sub x0, x29, #128
stur q0, [x29, #-128]
ldr x8, [x8, #16]
stur x8, [x29, #-112]
bl _resultDistLvl
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #56] ; 8-byte Folded Reload
str x0, [sp, #40] ; 8-byte Folded Spill
ldr w1, [x9]
ldr q0, [x8]
sub x0, x29, #160
stur q0, [x29, #-160]
ldr x8, [x8, #16]
stur x8, [x29, #-144]
bl _resultDistLvl
mov x8, x0
ldr x0, [sp, #40] ; 8-byte Folded Reload
subs x8, x0, x8
cset w8, lt
and w8, w8, #0x1
stur w8, [x29, #-20]
b LBB0_17
LBB0_4:
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x8, [x8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, gt
mov w9, #1
str w9, [sp, #28] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_11
b LBB0_5
LBB0_5:
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x8, [x8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x8, [x8, #8]
ldr x9, [x9, #8]
subs x8, x8, x9
cset w8, gt
mov w9, #1
str w9, [sp, #28] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_11
b LBB0_7
LBB0_7:
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr x8, [x8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
mov w9, #0
str w9, [sp, #24] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_10
b LBB0_8
LBB0_8:
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x8, [x8, #8]
ldr x9, [x9, #8]
subs x8, x8, x9
cset w8, ne
mov w9, #0
str w9, [sp, #24] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x8, [x8, #16]
ldr x9, [x9, #16]
subs x8, x8, x9
cset w8, gt
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB0_10
LBB0_10:
ldr w8, [sp, #24] ; 4-byte Folded Reload
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB0_11
LBB0_11:
ldr w8, [sp, #28] ; 4-byte Folded Reload
and w8, w8, #0x1
stur w8, [x29, #-20]
b LBB0_17
LBB0_12:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldur w1, [x29, #-24]
ldr q0, [x8]
add x0, sp, #160
str q0, [sp, #160]
ldr x8, [x8, #16]
str x8, [sp, #176]
bl _feasible
subs x8, x0, #0
cset w8, ne
mov w9, #1
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_16
b LBB0_13
LBB0_13:
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldur w1, [x29, #-24]
ldr q0, [x8]
add x0, sp, #128
str q0, [sp, #128]
ldr x8, [x8, #16]
str x8, [sp, #144]
bl _feasible
subs x8, x0, #0
cset w8, ne
mov w9, #0
str w9, [sp, #16] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldur x1, [x29, #-32]
ldur w2, [x29, #-24]
ldr q0, [x8]
add x0, sp, #96
str q0, [sp, #96]
ldr x8, [x8, #16]
str x8, [sp, #112]
bl _resultScore
ldr x8, [sp, #56] ; 8-byte Folded Reload
str x0, [sp, #8] ; 8-byte Folded Spill
ldur x1, [x29, #-32]
ldur w2, [x29, #-24]
ldr q0, [x8]
add x0, sp, #64
str q0, [sp, #64]
ldr x8, [x8, #16]
str x8, [sp, #80]
bl _resultScore
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
subs x8, x0, x8
cset w8, lt
str w8, [sp, #16] ; 4-byte Folded Spill
b LBB0_15
LBB0_15:
ldr w8, [sp, #16] ; 4-byte Folded Reload
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_16
LBB0_16:
ldr w8, [sp, #20] ; 4-byte Folded Reload
and w8, w8, #0x1
stur w8, [x29, #-20]
b LBB0_17
LBB0_17:
ldur w0, [x29, #-20]
ldp x29, x30, [sp, #352] ; 16-byte Folded Reload
ldp x28, x27, [sp, #336] ; 16-byte Folded Reload
add sp, sp, #368
ret
.cfi_endproc
; -- End function
.comm _g_optmode,8,3 ; @g_optmode
.comm _g_lvltarget,4,2 ; @g_lvltarget
.no_dead_strip _compareResultLT
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function compareResultLT
_compareResultLT: ## @compareResultLT
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
leaq 40(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
leaq 16(%rbp), %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl -8(%rbp), %edi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _feasible
cmpq $0, %rax
je LBB0_12
## %bb.1:
movq -32(%rbp), %rax ## 8-byte Reload
movl -8(%rbp), %edi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _feasible
cmpq $0, %rax
je LBB0_12
## %bb.2:
movq _g_optmode@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
je LBB0_4
## %bb.3:
movq -24(%rbp), %rax ## 8-byte Reload
movq _g_lvltarget@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _resultDistLvl
movq %rax, %rcx
movq -32(%rbp), %rax ## 8-byte Reload
movq %rcx, -40(%rbp) ## 8-byte Spill
movq _g_lvltarget@GOTPCREL(%rip), %rcx
movl (%rcx), %edi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _resultDistLvl
movq %rax, %rcx
movq -40(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
setl %al
andb $1, %al
movzbl %al, %eax
movl %eax, -4(%rbp)
jmp LBB0_17
LBB0_4:
movq -32(%rbp), %rdx ## 8-byte Reload
movq -24(%rbp), %rax ## 8-byte Reload
movq (%rax), %rcx
movb $1, %al
cmpq (%rdx), %rcx
movb %al, -41(%rbp) ## 1-byte Spill
jg LBB0_11
## %bb.5:
movq -32(%rbp), %rcx ## 8-byte Reload
movq -24(%rbp), %rax ## 8-byte Reload
movq (%rax), %rax
cmpq (%rcx), %rax
jne LBB0_7
## %bb.6:
movq -24(%rbp), %rdx ## 8-byte Reload
movq -32(%rbp), %rax ## 8-byte Reload
movq 8(%rax), %rcx
movb $1, %al
cmpq 8(%rdx), %rcx
movb %al, -41(%rbp) ## 1-byte Spill
jg LBB0_11
LBB0_7:
movq -32(%rbp), %rdx ## 8-byte Reload
movq -24(%rbp), %rax ## 8-byte Reload
movq (%rax), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq (%rdx), %rcx
movb %al, -42(%rbp) ## 1-byte Spill
jne LBB0_10
## %bb.8:
movq -24(%rbp), %rdx ## 8-byte Reload
movq -32(%rbp), %rax ## 8-byte Reload
movq 8(%rax), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq 8(%rdx), %rcx
movb %al, -42(%rbp) ## 1-byte Spill
jne LBB0_10
## %bb.9:
movq -24(%rbp), %rcx ## 8-byte Reload
movq -32(%rbp), %rax ## 8-byte Reload
movq 16(%rax), %rax
cmpq 16(%rcx), %rax
setg %al
movb %al, -42(%rbp) ## 1-byte Spill
LBB0_10:
movb -42(%rbp), %al ## 1-byte Reload
movb %al, -41(%rbp) ## 1-byte Spill
LBB0_11:
movb -41(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -4(%rbp)
jmp LBB0_17
LBB0_12:
movq -32(%rbp), %rax ## 8-byte Reload
movl -8(%rbp), %edi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _feasible
movq %rax, %rcx
movb $1, %al
cmpq $0, %rcx
movb %al, -43(%rbp) ## 1-byte Spill
jne LBB0_16
## %bb.13:
movq -24(%rbp), %rax ## 8-byte Reload
movl -8(%rbp), %edi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _feasible
movq %rax, %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $0, %rcx
movb %al, -44(%rbp) ## 1-byte Spill
jne LBB0_15
## %bb.14:
movq -24(%rbp), %rax ## 8-byte Reload
movq -16(%rbp), %rdi
movl -8(%rbp), %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _resultScore
movq %rax, %rcx
movq -32(%rbp), %rax ## 8-byte Reload
movq %rcx, -56(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
movl -8(%rbp), %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 8(%rax), %rcx
movq %rcx, 8(%rsp)
movq 16(%rax), %rax
movq %rax, 16(%rsp)
callq _resultScore
movq %rax, %rcx
movq -56(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
setl %al
movb %al, -44(%rbp) ## 1-byte Spill
LBB0_15:
movb -44(%rbp), %al ## 1-byte Reload
movb %al, -43(%rbp) ## 1-byte Spill
LBB0_16:
movb -43(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -4(%rbp)
LBB0_17:
movl -4(%rbp), %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_optmode,8,3 ## @g_optmode
.comm _g_lvltarget,4,2 ## @g_lvltarget
.no_dead_strip _compareResultLT
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_compareResultLT.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function createMemoTableArray
_createMemoTableArray: ; @createMemoTableArray
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _ZSTD_STRATEGY_MAX@GOTPAGE
ldr x8, [x8, _ZSTD_STRATEGY_MAX@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x9, _strt_ind@GOTPAGE
ldr x9, [x9, _strt_ind@GOTPAGEOFF]
str x9, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
ldr x8, [x8]
add x1, x8, #1
mov w0, #32
bl _calloc
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x0, [sp, #48]
adrp x9, _ZSTD_STRATEGY_MIN@GOTPAGE
ldr x9, [x9, _ZSTD_STRATEGY_MIN@GOTPAGEOFF]
ldr w9, [x9]
str w9, [sp, #40]
ldr x8, [x8]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #36]
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_24
LBB0_2:
mov w8, #1
str w8, [sp, #44]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr w8, [sp, #44]
ldr x9, [x9]
; kill: def $w9 killed $w9 killed $x9
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #48]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #5
ldr w0, [x8, #24]
ldur x1, [x29, #-32]
ldur x2, [x29, #-24]
ldr w3, [sp, #44]
bl _sanitizeVarArray
ldr x8, [sp, #48]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #5
str w0, [x8, #20]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB0_3
LBB0_6:
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_7
LBB0_7:
mov w8, #1
str w8, [sp, #44]
b LBB0_8
LBB0_8: ; =>This Inner Loop Header: Depth=1
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr w8, [sp, #44]
ldr x9, [x9]
; kill: def $w9 killed $w9 killed $x9
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_8 Depth=1
adrp x8, _noMemo@GOTPAGE
ldr x8, [x8, _noMemo@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #48]
ldrsw x10, [sp, #44]
add x9, x9, x10, lsl #5
str w8, [x9, #16]
ldr x8, [sp, #48]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #5
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x9, [sp, #48]
ldrsw x8, [sp, #44]
lsl x10, x8, #5
mov x8, #0
str x8, [x9, x10]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_8 Depth=1
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB0_8
LBB0_11:
ldr x8, [sp, #48]
stur x8, [x29, #-8]
b LBB0_24
LBB0_12:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
adrp x9, _PARAM_UNSET@GOTPAGE
ldr x9, [x9, _PARAM_UNSET@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-16]
ldr x10, [x9]
ldr x8, [x8, x10, lsl #3]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #40]
ldur x8, [x29, #-16]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #36]
b LBB0_14
LBB0_14:
ldr w8, [sp, #40]
str w8, [sp, #44]
b LBB0_15
LBB0_15: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #44]
ldr w9, [sp, #36]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_23
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=1
ldr x8, [sp, #48]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #5
ldr w0, [x8, #24]
ldr x8, [sp, #48]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #5
ldr w1, [x8, #20]
bl _memoTableLen
str x0, [sp, #24]
adrp x8, _directMap@GOTPAGE
ldr x8, [x8, _directMap@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #48]
ldrsw x10, [sp, #44]
add x9, x9, x10, lsl #5
str w8, [x9, #16]
ldur x8, [x29, #-40]
adrp x9, _PARAM_UNSET@GOTPAGE
ldr x9, [x9, _PARAM_UNSET@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_15 Depth=1
ldr x8, [sp, #24]
ldur x10, [x29, #-40]
mov x9, #1
lsl x9, x9, x10
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_15 Depth=1
adrp x8, _xxhashMap@GOTPAGE
ldr x8, [x8, _xxhashMap@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #48]
ldrsw x10, [sp, #44]
add x9, x9, x10, lsl #5
str w8, [x9, #16]
ldur x9, [x29, #-40]
mov x8, #1
lsl x8, x8, x9
str x8, [sp, #24]
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_15 Depth=1
ldr x1, [sp, #24]
mov w0, #4
bl _calloc
ldr x8, [sp, #48]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #5
str x0, [x8, #8]
ldr x8, [sp, #24]
ldr x9, [sp, #48]
ldrsw x10, [sp, #44]
lsl x10, x10, #5
str x8, [x9, x10]
ldr x8, [sp, #48]
ldrsw x9, [sp, #44]
add x8, x8, x9, lsl #5
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20:
ldr x0, [sp, #48]
bl _freeMemoTableArray
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_24
LBB0_21: ; in Loop: Header=BB0_15 Depth=1
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_15 Depth=1
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB0_15
LBB0_23:
ldr x8, [sp, #48]
stur x8, [x29, #-8]
b LBB0_24
LBB0_24:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _ZSTD_STRATEGY_MAX,8,3 ; @ZSTD_STRATEGY_MAX
.comm _ZSTD_STRATEGY_MIN,4,2 ; @ZSTD_STRATEGY_MIN
.comm _noMemo,4,2 ; @noMemo
.comm _strt_ind,8,3 ; @strt_ind
.comm _PARAM_UNSET,8,3 ; @PARAM_UNSET
.comm _directMap,4,2 ; @directMap
.comm _xxhashMap,4,2 ; @xxhashMap
.no_dead_strip _createMemoTableArray
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function createMemoTableArray
_createMemoTableArray: ## @createMemoTableArray
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq _ZSTD_STRATEGY_MAX@GOTPCREL(%rip), %rax
movq (%rax), %rsi
addq $1, %rsi
movl $32, %edi
callq _calloc
movq %rax, -48(%rbp)
movq _ZSTD_STRATEGY_MIN@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -56(%rbp)
movq _ZSTD_STRATEGY_MAX@GOTPCREL(%rip), %rax
movq (%rax), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -60(%rbp)
cmpq $0, -48(%rbp)
jne LBB0_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB0_24
LBB0_2:
movl $1, -52(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movl -52(%rbp), %eax
movq _ZSTD_STRATEGY_MAX@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
## kill: def $ecx killed $ecx killed $rcx
cmpl %ecx, %eax
jg LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -48(%rbp), %rax
movslq -52(%rbp), %rcx
shlq $5, %rcx
addq %rcx, %rax
movl 24(%rax), %edi
movq -32(%rbp), %rsi
movq -24(%rbp), %rdx
movl -52(%rbp), %ecx
callq _sanitizeVarArray
movl %eax, %ecx
movq -48(%rbp), %rax
movslq -52(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movl %ecx, 20(%rax)
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_3
LBB0_6:
cmpq $0, -40(%rbp)
jne LBB0_12
## %bb.7:
movl $1, -52(%rbp)
LBB0_8: ## =>This Inner Loop Header: Depth=1
movl -52(%rbp), %eax
movq _ZSTD_STRATEGY_MAX@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
## kill: def $ecx killed $ecx killed $rcx
cmpl %ecx, %eax
jg LBB0_11
## %bb.9: ## in Loop: Header=BB0_8 Depth=1
movq _noMemo@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -48(%rbp), %rax
movslq -52(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movl %ecx, 16(%rax)
movq -48(%rbp), %rax
movslq -52(%rbp), %rcx
shlq $5, %rcx
addq %rcx, %rax
movq $0, 8(%rax)
movq -48(%rbp), %rax
movslq -52(%rbp), %rcx
shlq $5, %rcx
addq %rcx, %rax
movq $0, (%rax)
## %bb.10: ## in Loop: Header=BB0_8 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_8
LBB0_11:
movq -48(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_24
LBB0_12:
movq -16(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_14
## %bb.13:
movq -16(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -56(%rbp)
movq -16(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -60(%rbp)
LBB0_14:
movl -56(%rbp), %eax
movl %eax, -52(%rbp)
LBB0_15: ## =>This Inner Loop Header: Depth=1
movl -52(%rbp), %eax
cmpl -60(%rbp), %eax
jg LBB0_23
## %bb.16: ## in Loop: Header=BB0_15 Depth=1
movq -48(%rbp), %rax
movslq -52(%rbp), %rcx
shlq $5, %rcx
addq %rcx, %rax
movl 24(%rax), %edi
movq -48(%rbp), %rax
movslq -52(%rbp), %rcx
shlq $5, %rcx
addq %rcx, %rax
movl 20(%rax), %esi
callq _memoTableLen
movq %rax, -72(%rbp)
movq _directMap@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -48(%rbp), %rax
movslq -52(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movl %ecx, 16(%rax)
movq -40(%rbp), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_19
## %bb.17: ## in Loop: Header=BB0_15 Depth=1
movq -72(%rbp), %rax
movq -40(%rbp), %rcx
movl $1, %edx
## kill: def $cl killed $rcx
shlq %cl, %rdx
movq %rdx, %rcx
cmpq %rcx, %rax
jbe LBB0_19
## %bb.18: ## in Loop: Header=BB0_15 Depth=1
movq _xxhashMap@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -48(%rbp), %rax
movslq -52(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movl %ecx, 16(%rax)
movq -40(%rbp), %rcx
movl $1, %eax
## kill: def $cl killed $rcx
shlq %cl, %rax
movq %rax, -72(%rbp)
LBB0_19: ## in Loop: Header=BB0_15 Depth=1
movq -72(%rbp), %rsi
movl $4, %edi
callq _calloc
movq %rax, %rcx
movq -48(%rbp), %rax
movslq -52(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movq %rcx, 8(%rax)
movq -72(%rbp), %rcx
movq -48(%rbp), %rax
movslq -52(%rbp), %rdx
shlq $5, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -48(%rbp), %rax
movslq -52(%rbp), %rcx
shlq $5, %rcx
addq %rcx, %rax
cmpq $0, 8(%rax)
jne LBB0_21
## %bb.20:
movq -48(%rbp), %rdi
callq _freeMemoTableArray
movq $0, -8(%rbp)
jmp LBB0_24
LBB0_21: ## in Loop: Header=BB0_15 Depth=1
jmp LBB0_22
LBB0_22: ## in Loop: Header=BB0_15 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_15
LBB0_23:
movq -48(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_24:
movq -8(%rbp), %rax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_STRATEGY_MAX,8,3 ## @ZSTD_STRATEGY_MAX
.comm _ZSTD_STRATEGY_MIN,4,2 ## @ZSTD_STRATEGY_MIN
.comm _noMemo,4,2 ## @noMemo
.comm _strt_ind,8,3 ## @strt_ind
.comm _PARAM_UNSET,8,3 ## @PARAM_UNSET
.comm _directMap,4,2 ## @directMap
.comm _xxhashMap,4,2 ## @xxhashMap
.no_dead_strip _createMemoTableArray
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_createMemoTableArray.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function display_params_tested
_display_params_tested: ; @display_params_tested
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
mov w0, #3
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _DISPLAYLEVEL
str xzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldr x9, [sp, #16]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
mov w0, #3
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _DISPLAYLEVEL
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_4:
mov w0, #3
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _DISPLAYLEVEL
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\r testing :"
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
l_.str.1: ; @.str.1
.asciz "%3u,"
l_.str.2: ; @.str.2
.asciz "\b \r"
.no_dead_strip _display_params_tested
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function display_params_tested
_display_params_tested: ## @display_params_tested
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl $3, %edi
leaq L_.str(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
movq $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %edx
movl $3, %edi
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_4:
movl $3, %edi
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _DISPLAYLEVEL
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\r testing :"
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
L_.str.1: ## @.str.1
.asciz "%3u,"
L_.str.2: ## @.str.2
.asciz "\b \r"
.no_dead_strip _display_params_tested
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_display_params_tested.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function emptyParams
_emptyParams: ; @emptyParams
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str xzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _PARAM_UNSET@GOTPAGE
ldr x8, [x8, _PARAM_UNSET@GOTPAGEOFF]
ldr w8, [x8]
ldr x9, [sp, #8]
ldr x10, [sp]
str w8, [x9, x10, lsl #2]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_4:
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _PARAM_UNSET,4,2 ; @PARAM_UNSET
.no_dead_strip _emptyParams
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function emptyParams
_emptyParams: ## @emptyParams
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq _PARAM_UNSET@GOTPCREL(%rip), %rax
movl (%rax), %edx
movq -8(%rbp), %rax
movq -16(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_4:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _PARAM_UNSET,4,2 ## @PARAM_UNSET
.no_dead_strip _emptyParams
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_emptyParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function errorOut
_errorOut: ; @errorOut
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x1, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w0, #1
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%s \n"
.no_dead_strip _errorOut
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function errorOut
_errorOut: ## @errorOut
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rsi
leaq L_.str(%rip), %rdi
callq _DISPLAY
movl $1, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s \n"
.no_dead_strip _errorOut
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_errorOut.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function feasible
_feasible: ; @feasible
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #8] ; 8-byte Folded Spill
str x1, [sp, #16] ; 8-byte Folded Spill
ldr x8, [x0]
ldr x9, [x1]
subs x8, x8, x9
cset w8, lt
mov w9, #0
str w9, [sp, #28] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_1
LBB0_1:
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8, #8]
ldr x9, [x9, #8]
subs x8, x8, x9
cset w8, lt
mov w9, #0
str w9, [sp, #28] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2:
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8, #16]
ldr x9, [x9, #16]
subs x8, x8, x9
cset w8, gt
mov w9, #0
str w9, [sp, #28] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3:
adrp x8, _g_optmode@GOTPAGE
ldr x8, [x8, _g_optmode@GOTPAGEOFF]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
mov w9, #1
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8, #24]
adrp x9, _g_lvltarget@GOTPAGE
ldr x9, [x9, _g_lvltarget@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, le
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_5
LBB0_5:
ldr w8, [sp, #4] ; 4-byte Folded Reload
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB0_6
LBB0_6:
ldr w8, [sp, #28] ; 4-byte Folded Reload
and w0, w8, #0x1
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _g_optmode,4,2 ; @g_optmode
.comm _g_lvltarget,8,3 ; @g_lvltarget
.no_dead_strip _feasible
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function feasible
_feasible: ## @feasible
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq 48(%rbp), %rdx
movq %rdx, -24(%rbp) ## 8-byte Spill
leaq 16(%rbp), %rax
movq %rax, -16(%rbp) ## 8-byte Spill
movq (%rax), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq (%rdx), %rcx
movb %al, -1(%rbp) ## 1-byte Spill
jl LBB0_6
## %bb.1:
movq -24(%rbp), %rdx ## 8-byte Reload
movq -16(%rbp), %rax ## 8-byte Reload
movq 8(%rax), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq 8(%rdx), %rcx
movb %al, -1(%rbp) ## 1-byte Spill
jl LBB0_6
## %bb.2:
movq -24(%rbp), %rdx ## 8-byte Reload
movq -16(%rbp), %rax ## 8-byte Reload
movq 16(%rax), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq 16(%rdx), %rcx
movb %al, -1(%rbp) ## 1-byte Spill
jg LBB0_6
## %bb.3:
movb $1, %al
movq _g_optmode@GOTPCREL(%rip), %rcx
cmpl $0, (%rcx)
movb %al, -25(%rbp) ## 1-byte Spill
je LBB0_5
## %bb.4:
movq -16(%rbp), %rax ## 8-byte Reload
movq 24(%rax), %rax
movq _g_lvltarget@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
setle %al
movb %al, -25(%rbp) ## 1-byte Spill
LBB0_5:
movb -25(%rbp), %al ## 1-byte Reload
movb %al, -1(%rbp) ## 1-byte Spill
LBB0_6:
movb -1(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_optmode,4,2 ## @g_optmode
.comm _g_lvltarget,8,3 ## @g_lvltarget
.no_dead_strip _feasible
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_feasible.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function freeBuffers
_freeBuffers: ; @freeBuffers
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp]
str x1, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w0, [sp]
bl _free
b LBB0_2
LBB0_2:
ldr x0, [sp]
ldr x1, [sp, #8]
bl _freeNonSrcBuffers
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _freeBuffers
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function freeBuffers
_freeBuffers: ## @freeBuffers
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -16(%rbp)
movq %rsi, -8(%rbp)
cmpq $0, -8(%rbp)
je LBB0_2
## %bb.1:
movl -16(%rbp), %edi
callq _free
LBB0_2:
movl -16(%rbp), %edi
movq -8(%rbp), %rsi
callq _freeNonSrcBuffers
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _freeBuffers
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_freeBuffers.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function freeMemoTableArray
_freeMemoTableArray: ; @freeMemoTableArray
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
b LBB0_7
LBB0_2:
mov w8, #1
str w8, [sp, #4]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
adrp x9, _ZSTD_STRATEGY_MAX@GOTPAGE
ldr x9, [x9, _ZSTD_STRATEGY_MAX@GOTPAGEOFF]
ldr x9, [x9]
; kill: def $w9 killed $w9 killed $x9
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
ldr x0, [x8, x9, lsl #3]
bl _free
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_3
LBB0_6:
ldr x0, [sp, #8]
bl _free
b LBB0_7
LBB0_7:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _ZSTD_STRATEGY_MAX,8,3 ; @ZSTD_STRATEGY_MAX
.no_dead_strip _freeMemoTableArray
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function freeMemoTableArray
_freeMemoTableArray: ## @freeMemoTableArray
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
cmpq $0, -8(%rbp)
jne LBB0_2
## %bb.1:
jmp LBB0_7
LBB0_2:
movl $1, -12(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
movq _ZSTD_STRATEGY_MAX@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
## kill: def $ecx killed $ecx killed $rcx
cmpl %ecx, %eax
jg LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq _free
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_3
LBB0_6:
movq -8(%rbp), %rdi
callq _free
LBB0_7:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_STRATEGY_MAX,8,3 ## @ZSTD_STRATEGY_MAX
.no_dead_strip _freeMemoTableArray
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_freeMemoTableArray.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function freeContexts
_freeContexts: ; @freeContexts
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str x0, [sp, #24]
str x1, [sp, #32]
ldr x8, [sp, #24]
str x8, [sp, #8]
ldr w8, [sp, #32]
str w8, [sp, #16]
ldr w0, [sp, #16]
bl _free
ldr w0, [sp, #12]
bl _ZSTD_freeCCtx
ldr w0, [sp, #8]
bl _ZSTD_freeDCtx
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl ___stack_chk_fail
LBB0_2:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _freeContexts
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function freeContexts
_freeContexts: ## @freeContexts
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -32(%rbp)
movl %esi, -24(%rbp)
movq -32(%rbp), %rax
movq %rax, -16(%rbp)
movl -24(%rbp), %eax
movl %eax, -8(%rbp)
movl -8(%rbp), %edi
callq _free
movl -12(%rbp), %edi
callq _ZSTD_freeCCtx
movl -16(%rbp), %edi
callq _ZSTD_freeDCtx
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _freeContexts
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_freeContexts.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function init_clockGranularity
_init_clockGranularity: ; @init_clockGranularity
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
adrp x8, _g_clockGranularity@GOTPAGE
ldr x8, [x8, _g_clockGranularity@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
bl _UTIL_getTime
stur w0, [x29, #-4]
stur xzr, [x29, #-16]
str xzr, [sp, #24]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
stur x8, [x29, #-16]
ldur w0, [x29, #-4]
bl _UTIL_clockSpanNano
str x0, [sp, #24]
ldur x8, [x29, #-16]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp] ; 8-byte Folded Reload
ldr x9, [sp, #24]
ldur x10, [x29, #-16]
subs x9, x9, x10
str x9, [sp, #8]
ldr x8, [x8]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #8]
str x8, [x9]
str wzr, [sp, #20]
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
subs w8, w8, #10
cset w8, lt
tbnz w8, #0, LBB0_1
b LBB0_8
LBB0_8:
ldr x8, [sp] ; 8-byte Folded Reload
ldr x1, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DEBUGOUTPUT
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_clockGranularity,8,3 ; @g_clockGranularity
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Granularity: %llu\n"
.no_dead_strip _init_clockGranularity
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function init_clockGranularity
_init_clockGranularity: ## @init_clockGranularity
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movb $0, %al
callq _UTIL_getTime
movl %eax, -4(%rbp)
movq $0, -16(%rbp)
movq $0, -24(%rbp)
movl $0, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq %rax, -16(%rbp)
movl -4(%rbp), %edi
callq _UTIL_clockSpanNano
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
cmpq -24(%rbp), %rax
jge LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
subq -16(%rbp), %rax
movq %rax, -40(%rbp)
movq _g_clockGranularity@GOTPCREL(%rip), %rax
movq (%rax), %rax
cmpq -40(%rbp), %rax
jle LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rcx
movq _g_clockGranularity@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movl $0, -28(%rbp)
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_6
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
cmpl $10, -28(%rbp)
jl LBB0_1
## %bb.8:
movq _g_clockGranularity@GOTPCREL(%rip), %rax
movq (%rax), %rsi
leaq L_.str(%rip), %rdi
callq _DEBUGOUTPUT
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_clockGranularity,8,3 ## @g_clockGranularity
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Granularity: %llu\n"
.no_dead_strip _init_clockGranularity
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_init_clockGranularity.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function insertWinner
_insertWinner: ; @insertWinner
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _g_winners@GOTPAGE
ldr x8, [x8, _g_winners@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
mov x9, x0
stur w9, [x29, #-8]
stur w1, [x29, #-12]
ldur w9, [x29, #-8]
stur w9, [x29, #-16]
ldr x8, [x8]
stur x8, [x29, #-24]
ldur w0, [x29, #-16]
ldur w1, [x29, #-12]
bl _feasible
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_28
LBB0_2:
ldr x8, [sp, #24] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3:
mov w0, #16
bl _malloc
stur x0, [x29, #-32]
ldur x8, [x29, #-32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_28
LBB0_5:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur x8, [x29, #-32]
; kill: def $x10 killed $xzr
str xzr, [x8]
ldur x10, [x29, #-32]
ldur w8, [x29, #-8]
str w8, [x10, #8]
ldur x8, [x29, #-32]
str x8, [x9]
stur wzr, [x29, #-4]
b LBB0_28
LBB0_6:
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_17
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldur x8, [x29, #-24]
ldr w0, [x8, #8]
ldur w1, [x29, #-16]
bl _speedSizeCompare
subs w8, w0, #128
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
subs x8, x8, #3
cset w8, hi
tbnz w8, #0, LBB0_16
; %bb.9: ; in Loop: Header=BB0_7 Depth=1
ldr x11, [sp, #16] ; 8-byte Folded Reload
adrp x10, lJTI0_1@PAGE
add x10, x10, lJTI0_1@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_10:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_28
LBB0_11: ; in Loop: Header=BB0_7 Depth=1
ldur x9, [x29, #-24]
ldur x8, [x29, #-24]
ldr x8, [x8]
ldr w8, [x8, #8]
str w8, [x9, #8]
ldur x8, [x29, #-24]
ldr x8, [x8]
stur x8, [x29, #-40]
ldur x8, [x29, #-24]
ldr x8, [x8]
ldr x8, [x8]
ldur x9, [x29, #-24]
str x8, [x9]
ldur x0, [x29, #-40]
bl _free
b LBB0_16
LBB0_12: ; in Loop: Header=BB0_7 Depth=1
ldur x8, [x29, #-24]
ldr x8, [x8]
stur x8, [x29, #-24]
b LBB0_16
LBB0_13:
mov w0, #16
bl _malloc
str x0, [sp, #48]
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_28
LBB0_15:
ldr x9, [sp, #48]
ldur x8, [x29, #-24]
ldr w8, [x8, #8]
str w8, [x9, #8]
ldur x9, [x29, #-24]
ldur w8, [x29, #-8]
str w8, [x9, #8]
ldur x8, [x29, #-24]
ldr x8, [x8]
ldr x9, [sp, #48]
str x8, [x9]
ldr x8, [sp, #48]
ldur x9, [x29, #-24]
str x8, [x9]
stur wzr, [x29, #-4]
b LBB0_28
LBB0_16: ; in Loop: Header=BB0_7 Depth=1
b LBB0_7
LBB0_17:
ldur x8, [x29, #-24]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
and w0, w8, #0x1
bl _assert
ldur x8, [x29, #-24]
ldr w0, [x8, #8]
ldur w1, [x29, #-16]
bl _speedSizeCompare
subs w8, w0, #128
; kill: def $x8 killed $w8
str x8, [sp, #8] ; 8-byte Folded Spill
subs x8, x8, #3
cset w8, hi
tbnz w8, #0, LBB0_27
; %bb.18:
ldr x11, [sp, #8] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp1:
adr x8, Ltmp1
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_19:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_28
LBB0_20:
ldur x9, [x29, #-24]
ldur w8, [x29, #-8]
str w8, [x9, #8]
stur wzr, [x29, #-4]
b LBB0_28
LBB0_21:
mov w0, #16
bl _malloc
str x0, [sp, #40]
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_23
b LBB0_22
LBB0_22:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_28
LBB0_23:
ldr x9, [sp, #40]
ldur w8, [x29, #-8]
str w8, [x9, #8]
ldr x8, [sp, #40]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x8, [sp, #40]
ldur x9, [x29, #-24]
str x8, [x9]
stur wzr, [x29, #-4]
b LBB0_28
LBB0_24:
mov w0, #16
bl _malloc
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_28
LBB0_26:
ldr x9, [sp, #32]
ldur x8, [x29, #-24]
ldr w8, [x8, #8]
str w8, [x9, #8]
ldur x9, [x29, #-24]
ldur w8, [x29, #-8]
str w8, [x9, #8]
ldur x8, [x29, #-24]
ldr x8, [x8]
ldr x9, [sp, #32]
str x8, [x9]
ldr x8, [sp, #32]
ldur x9, [x29, #-24]
str x8, [x9]
stur wzr, [x29, #-4]
b LBB0_28
LBB0_27:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_28
LBB0_28:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_19-Ltmp1
.long LBB0_24-Ltmp1
.long LBB0_21-Ltmp1
.long LBB0_20-Ltmp1
.p2align 2
lJTI0_1:
.long LBB0_10-Ltmp0
.long LBB0_13-Ltmp0
.long LBB0_12-Ltmp0
.long LBB0_11-Ltmp0
; -- End function
.comm _g_winners,8,3 ; @g_winners
.no_dead_strip _insertWinner
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function insertWinner
_insertWinner: ## @insertWinner
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movl %edi, -8(%rbp)
movl %esi, -12(%rbp)
movl -8(%rbp), %eax
movl %eax, -16(%rbp)
movq _g_winners@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
movl -16(%rbp), %edi
movl -12(%rbp), %esi
callq _feasible
cmpl $0, %eax
jne LBB0_2
## %bb.1:
movl $1, -4(%rbp)
jmp LBB0_26
LBB0_2:
movq _g_winners@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jne LBB0_6
## %bb.3:
movl $16, %edi
callq _malloc
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB0_5
## %bb.4:
movl $1, -4(%rbp)
jmp LBB0_26
LBB0_5:
movq -32(%rbp), %rax
movq $0, (%rax)
movq -32(%rbp), %rax
movl -8(%rbp), %ecx
movl %ecx, 8(%rax)
movq -32(%rbp), %rcx
movq _g_winners@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movl $0, -4(%rbp)
jmp LBB0_26
LBB0_6:
jmp LBB0_7
LBB0_7: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
cmpq $0, (%rax)
je LBB0_16
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movq -24(%rbp), %rax
movl 8(%rax), %edi
movl -16(%rbp), %esi
callq _speedSizeCompare
addl $-128, %eax
movl %eax, %ecx
movq %rcx, -72(%rbp) ## 8-byte Spill
subl $3, %eax
ja LBB0_15
## %bb.28: ## in Loop: Header=BB0_7 Depth=1
movq -72(%rbp), %rax ## 8-byte Reload
leaq LJTI0_1(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_9:
movl $1, -4(%rbp)
jmp LBB0_26
LBB0_10: ## in Loop: Header=BB0_7 Depth=1
movq -24(%rbp), %rax
movq -24(%rbp), %rcx
movq (%rcx), %rcx
movl 8(%rcx), %ecx
movl %ecx, 8(%rax)
movq -24(%rbp), %rax
movq (%rax), %rax
movq %rax, -40(%rbp)
movq -24(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movq -40(%rbp), %rdi
callq _free
jmp LBB0_15
LBB0_11: ## in Loop: Header=BB0_7 Depth=1
movq -24(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
jmp LBB0_15
LBB0_12:
movl $16, %edi
callq _malloc
movq %rax, -48(%rbp)
cmpq $0, -48(%rbp)
jne LBB0_14
## %bb.13:
movl $1, -4(%rbp)
jmp LBB0_26
LBB0_14:
movq -48(%rbp), %rax
movq -24(%rbp), %rcx
movl 8(%rcx), %ecx
movl %ecx, 8(%rax)
movq -24(%rbp), %rax
movl -8(%rbp), %ecx
movl %ecx, 8(%rax)
movq -24(%rbp), %rax
movq (%rax), %rcx
movq -48(%rbp), %rax
movq %rcx, (%rax)
movq -48(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movl $0, -4(%rbp)
jmp LBB0_26
LBB0_15: ## in Loop: Header=BB0_7 Depth=1
jmp LBB0_7
LBB0_16:
movq -24(%rbp), %rax
movq (%rax), %rax
testq %rax, %rax
sete %al
movzbl %al, %edi
callq _assert
movq -24(%rbp), %rax
movl 8(%rax), %edi
movl -16(%rbp), %esi
callq _speedSizeCompare
addl $-128, %eax
movl %eax, %ecx
movq %rcx, -80(%rbp) ## 8-byte Spill
subl $3, %eax
ja LBB0_25
## %bb.27:
movq -80(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_17:
movl $1, -4(%rbp)
jmp LBB0_26
LBB0_18:
movq -24(%rbp), %rax
movl -8(%rbp), %ecx
movl %ecx, 8(%rax)
movl $0, -4(%rbp)
jmp LBB0_26
LBB0_19:
movl $16, %edi
callq _malloc
movq %rax, -56(%rbp)
cmpq $0, -56(%rbp)
jne LBB0_21
## %bb.20:
movl $1, -4(%rbp)
jmp LBB0_26
LBB0_21:
movq -56(%rbp), %rax
movl -8(%rbp), %ecx
movl %ecx, 8(%rax)
movq -56(%rbp), %rax
movq $0, (%rax)
movq -56(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movl $0, -4(%rbp)
jmp LBB0_26
LBB0_22:
movl $16, %edi
callq _malloc
movq %rax, -64(%rbp)
cmpq $0, -64(%rbp)
jne LBB0_24
## %bb.23:
movl $1, -4(%rbp)
jmp LBB0_26
LBB0_24:
movq -64(%rbp), %rax
movq -24(%rbp), %rcx
movl 8(%rcx), %ecx
movl %ecx, 8(%rax)
movq -24(%rbp), %rax
movl -8(%rbp), %ecx
movl %ecx, 8(%rax)
movq -24(%rbp), %rax
movq (%rax), %rcx
movq -64(%rbp), %rax
movq %rcx, (%rax)
movq -64(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, (%rax)
movl $0, -4(%rbp)
jmp LBB0_26
LBB0_25:
movl $1, -4(%rbp)
LBB0_26:
movl -4(%rbp), %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
.long L0_0_set_17
.long L0_0_set_22
.long L0_0_set_19
.long L0_0_set_18
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
LJTI0_1:
.long L0_1_set_9
.long L0_1_set_12
.long L0_1_set_11
.long L0_1_set_10
.end_data_region
## -- End function
.comm _g_winners,8,3 ## @g_winners
.no_dead_strip _insertWinner
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_insertWinner.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function initWinnerInfo
_initWinnerInfo: ; @initWinnerInfo
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov x9, x8
str w0, [sp, #12]
str wzr, [x9, #8]
str wzr, [x9, #12]
mov x8, #-1
str x8, [x9, #16]
str x8, [x9, #24]
ldr w8, [sp, #12]
str w8, [x9]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.no_dead_strip _initWinnerInfo
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function initWinnerInfo
_initWinnerInfo: ## @initWinnerInfo
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, %rax
movl %esi, -4(%rbp)
movl $0, 8(%rdi)
movl $0, 12(%rdi)
movq $-1, 16(%rdi)
movq $-1, 24(%rdi)
movl -4(%rbp), %ecx
movl %ecx, (%rdi)
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _initWinnerInfo
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_initWinnerInfo.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function invRangeMap
_invRangeMap: ; @invRangeMap
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur x0, [x29, #-16]
str x1, [sp, #24]
adrp x8, _mintable@GOTPAGE
ldr x8, [x8, _mintable@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x0, [x8, x9, lsl #3]
ldr x1, [sp, #24]
bl _MAX
adrp x8, _maxtable@GOTPAGE
ldr x8, [x8, _maxtable@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr w1, [x8, x9, lsl #2]
bl _MIN
str x0, [sp, #24]
ldur x8, [x29, #-16]
subs x8, x8, #128
str x8, [sp] ; 8-byte Folded Spill
subs x8, x8, #8
cset w8, hi
tbnz w8, #0, LBB0_14
; %bb.1:
ldr x11, [sp] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_2:
ldr x8, [sp, #24]
adrp x9, _mintable@GOTPAGE
ldr x9, [x9, _mintable@GOTPAGEOFF]
ldr x9, [x9]
ldur x10, [x29, #-16]
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-4]
b LBB0_16
LBB0_3:
str wzr, [sp, #20]
adrp x8, _TLEN_RANGE@GOTPAGE
ldr x8, [x8, _TLEN_RANGE@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #16]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #20]
ldr w9, [sp, #16]
add w8, w8, w9
mov w9, #2
sdiv w8, w8, w9
str w8, [sp, #12]
adrp x8, _tlen_table@GOTPAGE
ldr x8, [x8, _tlen_table@GOTPAGEOFF]
ldr x8, [x8]
ldrsw x9, [sp, #12]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
adrp x8, _tlen_table@GOTPAGE
ldr x8, [x8, _tlen_table@GOTPAGEOFF]
ldr x8, [x8]
ldrsw x9, [sp, #12]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
ldr w8, [sp, #12]
stur w8, [x29, #-4]
b LBB0_16
LBB0_9: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #12]
str w8, [sp, #16]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_4 Depth=1
b LBB0_4
LBB0_11:
ldr w8, [sp, #20]
stur w8, [x29, #-4]
b LBB0_16
LBB0_12:
ldr x8, [sp, #24]
; kill: def $w8 killed $w8 killed $x8
add w8, w8, #1
stur w8, [x29, #-4]
b LBB0_16
LBB0_13:
b LBB0_14
LBB0_14:
b LBB0_15
LBB0_15:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w0, #0
bl _assert
mov w8, #-2
stur w8, [x29, #-4]
b LBB0_16
LBB0_16:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_2-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_12-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_13-Ltmp0
; -- End function
.comm _mintable,8,3 ; @mintable
.comm _maxtable,8,3 ; @maxtable
.comm _TLEN_RANGE,4,2 ; @TLEN_RANGE
.comm _tlen_table,8,3 ; @tlen_table
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error, not a valid param\n "
.no_dead_strip _invRangeMap
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function invRangeMap
_invRangeMap: ## @invRangeMap
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq _mintable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -24(%rbp), %rsi
callq _MAX
movl %eax, %edi
movq _maxtable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq _MIN
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
addq $-128, %rax
movq %rax, -48(%rbp) ## 8-byte Spill
subq $8, %rax
ja LBB0_13
## %bb.16:
movq -48(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
movq -24(%rbp), %rax
movq _mintable@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq -16(%rbp), %rdx
subq (%rcx,%rdx,8), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -4(%rbp)
jmp LBB0_15
LBB0_2:
movl $0, -28(%rbp)
movq _TLEN_RANGE@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -32(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -32(%rbp), %eax
jge LBB0_10
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl -28(%rbp), %eax
addl -32(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, -36(%rbp)
movq _tlen_table@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -36(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpq -24(%rbp), %rax
jge LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
movq _tlen_table@GOTPCREL(%rip), %rax
movq (%rax), %rax
movslq -36(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpq -24(%rbp), %rax
jne LBB0_8
## %bb.7:
movl -36(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_15
LBB0_8: ## in Loop: Header=BB0_3 Depth=1
movl -36(%rbp), %eax
movl %eax, -32(%rbp)
## %bb.9: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_3
LBB0_10:
movl -28(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_15
LBB0_11:
movq -24(%rbp), %rax
## kill: def $eax killed $eax killed $rax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB0_15
LBB0_12:
jmp LBB0_13
LBB0_13:
jmp LBB0_14
LBB0_14:
leaq L_.str(%rip), %rdi
callq _DISPLAY
xorl %edi, %edi
callq _assert
movl $-2, -4(%rbp)
LBB0_15:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
.long L0_0_set_1
.long L0_0_set_2
.long L0_0_set_1
.long L0_0_set_1
.long L0_0_set_1
.long L0_0_set_1
.long L0_0_set_11
.long L0_0_set_1
.long L0_0_set_12
.end_data_region
## -- End function
.comm _mintable,8,3 ## @mintable
.comm _maxtable,8,3 ## @maxtable
.comm _TLEN_RANGE,4,2 ## @TLEN_RANGE
.comm _tlen_table,8,3 ## @tlen_table
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error, not a valid param\n "
.no_dead_strip _invRangeMap
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_invRangeMap.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_defaultCompress
_local_defaultCompress: ; @local_defaultCompress
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
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
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
str x3, [sp, #32]
str x4, [sp, #24]
ldr x8, [sp, #24]
str x8, [sp, #16]
ldr x8, [sp, #32]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
bl _ZSTD_compressBound
ldr x8, [sp, #8] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, eq
and w0, w8, #0x1
bl _assert
ldr x0, [sp, #16]
ldur x1, [x29, #-24]
ldr x2, [sp, #32]
ldur x3, [x29, #-8]
ldur x4, [x29, #-16]
bl _ZSTD_compress2
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.no_dead_strip _local_defaultCompress
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_defaultCompress
_local_defaultCompress: ## @local_defaultCompress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq -40(%rbp), %rax
movq %rax, -48(%rbp)
movq -32(%rbp), %rax
movq %rax, -56(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
callq _ZSTD_compressBound
movq %rax, %rcx
movq -56(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
sete %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -48(%rbp), %rdi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -8(%rbp), %rcx
movq -16(%rbp), %r8
callq _ZSTD_compress2
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _local_defaultCompress
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_local_defaultCompress.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_defaultDecompress
_local_defaultDecompress: ; @local_defaultDecompress
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
stur x4, [x29, #-48]
mov x8, #1
str x8, [sp, #56]
ldur x8, [x29, #-48]
str x8, [sp, #48]
ldur x8, [x29, #-16]
str x8, [sp, #40]
ldur x8, [x29, #-24]
str x8, [sp, #24]
str xzr, [sp, #32]
ldur x8, [x29, #-32]
str x8, [sp, #16]
ldur x8, [x29, #-40]
str x8, [sp]
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #56]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x9, [sp]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, _ZSTD_error_dstSize_tooSmall@GOTPAGE
ldr x8, [x8, _ZSTD_error_dstSize_tooSmall@GOTPAGEOFF]
ldr w9, [x8]
mov w8, #0
subs w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
stur x8, [x29, #-8]
b LBB0_8
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #48]
mov x1, sp
add x2, sp, #24
bl _ZSTD_decompressStream
str x0, [sp, #56]
ldr x0, [sp, #56]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #56]
stur x8, [x29, #-8]
b LBB0_8
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_7:
ldr x8, [sp, #8]
stur x8, [x29, #-8]
b LBB0_8
LBB0_8:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.comm _ZSTD_error_dstSize_tooSmall,4,2 ; @ZSTD_error_dstSize_tooSmall
.no_dead_strip _local_defaultDecompress
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_defaultDecompress
_local_defaultDecompress: ## @local_defaultDecompress
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $112, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq %r8, -48(%rbp)
movq $1, -56(%rbp)
movq -48(%rbp), %rax
movq %rax, -64(%rbp)
movq -16(%rbp), %rax
movq %rax, -72(%rbp)
movq -24(%rbp), %rax
movq %rax, -88(%rbp)
movq $0, -80(%rbp)
movq -32(%rbp), %rax
movq %rax, -96(%rbp)
movq -40(%rbp), %rax
movq %rax, -112(%rbp)
movq $0, -104(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -56(%rbp)
je LBB0_7
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -104(%rbp), %rax
cmpq -112(%rbp), %rax
jne LBB0_4
## %bb.3:
xorl %eax, %eax
movq _ZSTD_error_dstSize_tooSmall@GOTPCREL(%rip), %rcx
subl (%rcx), %eax
cltq
movq %rax, -8(%rbp)
jmp LBB0_8
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -64(%rbp), %rdi
leaq -112(%rbp), %rsi
leaq -88(%rbp), %rdx
callq _ZSTD_decompressStream
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_6
## %bb.5:
movq -56(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_8
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_7:
movq -104(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_8:
movq -8(%rbp), %rax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_error_dstSize_tooSmall,4,2 ## @ZSTD_error_dstSize_tooSmall
.no_dead_strip _local_defaultDecompress
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_local_defaultDecompress.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_initDCtx
_local_initDCtx: ; @local_initDCtx
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
str x8, [sp]
ldr x8, [sp]
ldr w0, [x8, #8]
adrp x8, _ZSTD_reset_session_and_parameters@GOTPAGE
ldr x8, [x8, _ZSTD_reset_session_and_parameters@GOTPAGEOFF]
ldr w1, [x8]
bl _ZSTD_DCtx_reset
ldr x8, [sp]
ldr w0, [x8, #8]
ldr x8, [sp]
ldr w1, [x8, #4]
ldr x8, [sp]
ldr w2, [x8]
bl _ZSTD_DCtx_loadDictionary
mov x0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _ZSTD_reset_session_and_parameters,4,2 ; @ZSTD_reset_session_and_parameters
.no_dead_strip _local_initDCtx
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_initDCtx
_local_initDCtx: ## @local_initDCtx
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl 8(%rax), %edi
movq _ZSTD_reset_session_and_parameters@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _ZSTD_DCtx_reset
movq -16(%rbp), %rax
movl 8(%rax), %edi
movq -16(%rbp), %rax
movl 4(%rax), %esi
movq -16(%rbp), %rax
movl (%rax), %edx
callq _ZSTD_DCtx_loadDictionary
xorl %eax, %eax
## kill: def $rax killed $eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_reset_session_and_parameters,4,2 ## @ZSTD_reset_session_and_parameters
.no_dead_strip _local_initDCtx
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_local_initDCtx.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function local_initCCtx
_local_initCCtx: ; @local_initCCtx
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
ldur x8, [x29, #-8]
str x8, [sp, #16]
ldr x8, [sp, #16]
ldr w0, [x8, #16]
adrp x8, _ZSTD_reset_session_and_parameters@GOTPAGE
ldr x8, [x8, _ZSTD_reset_session_and_parameters@GOTPAGEOFF]
ldr w1, [x8]
bl _ZSTD_CCtx_reset
ldr x8, [sp, #16]
ldr w0, [x8, #16]
adrp x8, _ZSTD_c_compressionLevel@GOTPAGE
ldr x8, [x8, _ZSTD_c_compressionLevel@GOTPAGEOFF]
ldr w1, [x8]
ldr x8, [sp, #16]
ldr x2, [x8]
bl _ZSTD_CCtx_setParameter
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8, #24]
ldr x8, [x8]
ldr x9, [sp, #8]
ldr x8, [x8, x9, lsl #3]
adrp x9, _PARAM_UNSET@GOTPAGE
ldr x9, [x9, _PARAM_UNSET@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr w0, [x8, #16]
adrp x8, _cctxSetParamTable@GOTPAGE
ldr x8, [x8, _cctxSetParamTable@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #8]
ldr w1, [x8, x9, lsl #2]
ldr x8, [sp, #16]
ldr x8, [x8, #24]
ldr x8, [x8]
ldr x9, [sp, #8]
ldr x2, [x8, x9, lsl #3]
bl _ZSTD_CCtx_setParameter
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_6:
ldr x8, [sp, #16]
ldr w0, [x8, #16]
ldr x8, [sp, #16]
ldr w1, [x8, #12]
ldr x8, [sp, #16]
ldr w2, [x8, #8]
bl _ZSTD_CCtx_loadDictionary
mov x0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _ZSTD_reset_session_and_parameters,4,2 ; @ZSTD_reset_session_and_parameters
.comm _ZSTD_c_compressionLevel,4,2 ; @ZSTD_c_compressionLevel
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _PARAM_UNSET,8,3 ; @PARAM_UNSET
.comm _cctxSetParamTable,8,3 ; @cctxSetParamTable
.no_dead_strip _local_initCCtx
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function local_initCCtx
_local_initCCtx: ## @local_initCCtx
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movl 16(%rax), %edi
movq _ZSTD_reset_session_and_parameters@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _ZSTD_CCtx_reset
movq -16(%rbp), %rax
movl 16(%rax), %edi
movq _ZSTD_c_compressionLevel@GOTPCREL(%rip), %rax
movl (%rax), %esi
movq -16(%rbp), %rax
movq (%rax), %rdx
callq _ZSTD_CCtx_setParameter
movq $0, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movl 16(%rax), %edi
movq _cctxSetParamTable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movl (%rax,%rcx,4), %esi
movq -16(%rbp), %rax
movq 24(%rax), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
callq _ZSTD_CCtx_setParameter
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_6:
movq -16(%rbp), %rax
movl 16(%rax), %edi
movq -16(%rbp), %rax
movl 12(%rax), %esi
movq -16(%rbp), %rax
movl 8(%rax), %edx
callq _ZSTD_CCtx_loadDictionary
xorl %eax, %eax
## kill: def $rax killed $eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_reset_session_and_parameters,4,2 ## @ZSTD_reset_session_and_parameters
.comm _ZSTD_c_compressionLevel,4,2 ## @ZSTD_c_compressionLevel
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _PARAM_UNSET,8,3 ## @PARAM_UNSET
.comm _cctxSetParamTable,8,3 ## @cctxSetParamTable
.no_dead_strip _local_initCCtx
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_local_initCCtx.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function longCommandWArg
_longCommandWArg: ; @longCommandWArg
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
str x1, [sp, #16]
ldr x0, [sp, #16]
bl _strlen
str x0, [sp, #8]
ldur x8, [x29, #-8]
ldr x0, [x8]
ldr x1, [sp, #16]
ldr x2, [sp, #8]
bl _strncmp
subs w8, w0, #0
cset w8, eq
and w8, w8, #0x1
str w8, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x10, [sp, #8]
ldur x9, [x29, #-8]
ldr x8, [x9]
add x8, x8, x10
str x8, [x9]
b LBB0_2
LBB0_2:
ldr w0, [sp, #4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _longCommandWArg
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function longCommandWArg
_longCommandWArg: ## @longCommandWArg
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rdi
callq _strlen
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
callq _strncmp
cmpl $0, %eax
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
movl %eax, -28(%rbp)
cmpl $0, -28(%rbp)
je LBB0_2
## %bb.1:
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
LBB0_2:
movl -28(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _longCommandWArg
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_longCommandWArg.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function memoTableGet
_memoTableGet: ; @memoTableGet
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x1, [x29, #-16]
stur x0, [x29, #-24]
ldur x8, [x29, #-24]
ldur x9, [x29, #-16]
adrp x10, _strt_ind@GOTPAGE
ldr x10, [x10, _strt_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr x9, [x9, x10, lsl #3]
add x8, x8, x9, lsl #5
ldr q0, [x8]
str q0, [sp, #32]
ldr q0, [x8, #16]
str q0, [sp, #48]
ldr w8, [sp, #32]
str w8, [sp, #28] ; 4-byte Folded Spill
subs w8, w8, #128
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldr w8, [sp, #28] ; 4-byte Folded Reload
subs w8, w8, #129
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2:
ldr w8, [sp, #28] ; 4-byte Folded Reload
subs w8, w8, #130
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3:
ldr x8, [sp, #40]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr w1, [sp, #56]
ldr w2, [sp, #52]
sub x0, x29, #16
bl _memoTableIndDirect
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x8, [x8, x0, lsl #3]
stur x8, [x29, #-8]
b LBB0_7
LBB0_4:
ldr x8, [sp, #40]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x8, _NUM_PARAMS@GOTPAGE
ldr x8, [x8, _NUM_PARAMS@GOTPAGEOFF]
ldrsw x9, [x8]
mov x8, #4
mul x8, x8, x9
mov x1, x8
sub x0, x29, #16
mov w2, #0
bl _XXH64
ldr x8, [sp, #8] ; 8-byte Folded Reload
asr w9, w0, #3
ldr w11, [sp, #48]
sdiv w10, w9, w11
mul w10, w10, w11
subs w9, w9, w10
ldr x8, [x8, w9, sxtw #3]
stur x8, [x29, #-8]
b LBB0_7
LBB0_5:
stur xzr, [x29, #-8]
b LBB0_7
LBB0_6:
stur xzr, [x29, #-8]
b LBB0_7
LBB0_7:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _strt_ind,8,3 ; @strt_ind
.comm _NUM_PARAMS,4,2 ; @NUM_PARAMS
.no_dead_strip _memoTableGet
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function memoTableGet
_memoTableGet: ## @memoTableGet
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movq %rsi, -16(%rbp)
movq %rdi, -24(%rbp)
movq -24(%rbp), %rax
movq -16(%rbp), %rcx
movq _strt_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movq (%rcx,%rdx,8), %rcx
shlq $5, %rcx
movups (%rax,%rcx), %xmm0
movups 16(%rax,%rcx), %xmm1
movaps %xmm1, -48(%rbp)
movaps %xmm0, -64(%rbp)
movl -64(%rbp), %eax
movl %eax, -68(%rbp) ## 4-byte Spill
subl $128, %eax
je LBB0_2
jmp LBB0_6
LBB0_6:
movl -68(%rbp), %eax ## 4-byte Reload
subl $129, %eax
je LBB0_3
jmp LBB0_7
LBB0_7:
movl -68(%rbp), %eax ## 4-byte Reload
subl $130, %eax
jne LBB0_4
jmp LBB0_1
LBB0_1:
movq -56(%rbp), %rax
movq %rax, -80(%rbp) ## 8-byte Spill
movl -40(%rbp), %esi
movl -44(%rbp), %edx
leaq -16(%rbp), %rdi
callq _memoTableIndDirect
movq %rax, %rcx
movq -80(%rbp), %rax ## 8-byte Reload
movq (%rax,%rcx,8), %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_2:
movq -56(%rbp), %rax
movq %rax, -88(%rbp) ## 8-byte Spill
leaq -16(%rbp), %rdi
movq _NUM_PARAMS@GOTPCREL(%rip), %rax
movslq (%rax), %rax
shlq $2, %rax
movl %eax, %esi
xorl %edx, %edx
callq _XXH64
sarl $3, %eax
cltd
idivl -48(%rbp)
movq -88(%rbp), %rax ## 8-byte Reload
movslq %edx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -8(%rbp)
jmp LBB0_5
LBB0_3:
movq $0, -8(%rbp)
jmp LBB0_5
LBB0_4:
movq $0, -8(%rbp)
LBB0_5:
movq -8(%rbp), %rax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _strt_ind,8,3 ## @strt_ind
.comm _NUM_PARAMS,4,2 ## @NUM_PARAMS
.no_dead_strip _memoTableGet
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_memoTableGet.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function memoTableIndDirect
_memoTableIndDirect: ; @memoTableIndDirect
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str wzr, [sp, #12]
str xzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldr x9, [sp, #16]
ldr x8, [x8, x9, lsl #3]
str x8, [sp]
ldr x8, [sp]
adrp x9, _strt_ind@GOTPAGE
ldr x9, [x9, _strt_ind@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _rangetable@GOTPAGE
ldr x8, [x8, _rangetable@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp]
ldr w9, [x8, x9, lsl #2]
ldr w8, [sp, #12]
mul w8, w8, w9
str w8, [sp, #12]
ldr x0, [sp]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [sp]
ldr w1, [x8, x9, lsl #2]
bl _invRangeMap
mov x9, x0
ldr w8, [sp, #12]
add w8, w8, w9
str w8, [sp, #12]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_6:
ldr w0, [sp, #12]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _strt_ind,8,3 ; @strt_ind
.comm _rangetable,8,3 ; @rangetable
.no_dead_strip _memoTableIndDirect
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function memoTableIndDirect
_memoTableIndDirect: ## @memoTableIndDirect
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movl $0, -36(%rbp)
movq $0, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpq -24(%rbp), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -48(%rbp)
movq -48(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq _rangetable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -48(%rbp), %rcx
movl (%rax,%rcx,4), %eax
imull -36(%rbp), %eax
movl %eax, -36(%rbp)
movq -48(%rbp), %rdi
movq -8(%rbp), %rax
movq (%rax), %rax
movq -48(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq _invRangeMap
## kill: def $eax killed $eax killed $rax
addl -36(%rbp), %eax
movl %eax, -36(%rbp)
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_1
LBB0_6:
movl -36(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _strt_ind,8,3 ## @strt_ind
.comm _rangetable,8,3 ## @rangetable
.no_dead_strip _memoTableIndDirect
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_memoTableIndDirect.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function memoTableLen
_memoTableLen: ; @memoTableLen
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
mov x8, #1
str x8, [sp, #8]
str xzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
ldr x9, [sp]
ldr x8, [x8, x9, lsl #3]
adrp x9, _strt_ind@GOTPAGE
ldr x9, [x9, _strt_ind@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
adrp x8, _rangetable@GOTPAGE
ldr x8, [x8, _rangetable@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #24]
ldr x10, [sp]
ldr x9, [x9, x10, lsl #3]
ldr x9, [x8, x9, lsl #3]
ldr x8, [sp, #8]
mul x8, x8, x9
str x8, [sp, #8]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_6:
ldr x0, [sp, #8]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _strt_ind,8,3 ; @strt_ind
.comm _rangetable,8,3 ; @rangetable
.no_dead_strip _memoTableLen
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function memoTableLen
_memoTableLen: ## @memoTableLen
.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, -8(%rbp)
movq %rsi, -16(%rbp)
movq $1, -24(%rbp)
movq $0, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpq -16(%rbp), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq _rangetable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
movq -32(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movq (%rax,%rcx,8), %rax
imulq -24(%rbp), %rax
movq %rax, -24(%rbp)
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_1
LBB0_6:
movq -24(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _strt_ind,8,3 ## @strt_ind
.comm _rangetable,8,3 ## @rangetable
.no_dead_strip _memoTableLen
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_memoTableLen.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function memoTableSet
_memoTableSet: ; @memoTableSet
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
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
stur x1, [x29, #-8]
stur x0, [x29, #-16]
stur w2, [x29, #-20]
ldur x8, [x29, #-16]
ldur x9, [x29, #-8]
adrp x10, _strt_ind@GOTPAGE
ldr x10, [x10, _strt_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr x9, [x9, x10, lsl #3]
mov x10, #24
mul x9, x9, x10
add x8, x8, x9
ldr q0, [x8]
str q0, [sp, #32]
ldr x8, [x8, #16]
str x8, [sp, #48]
ldr w8, [sp, #32]
str w8, [sp, #28] ; 4-byte Folded Spill
subs w8, w8, #128
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldr w8, [sp, #28] ; 4-byte Folded Reload
subs w8, w8, #129
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2:
ldr w8, [sp, #28] ; 4-byte Folded Reload
subs w8, w8, #130
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3:
ldur w8, [x29, #-20]
str w8, [sp, #24] ; 4-byte Folded Spill
ldr x8, [sp, #40]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr w1, [sp, #52]
ldr w2, [sp, #48]
sub x0, x29, #8
bl _memoTableIndDirect
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldr w8, [sp, #24] ; 4-byte Folded Reload
str w8, [x9, x0, lsl #2]
b LBB0_6
LBB0_4:
ldur w8, [x29, #-20]
str w8, [sp, #12] ; 4-byte Folded Spill
ldr x8, [sp, #40]
str x8, [sp] ; 8-byte Folded Spill
adrp x8, _NUM_PARAMS@GOTPAGE
ldr x8, [x8, _NUM_PARAMS@GOTPAGEOFF]
ldrsw x9, [x8]
mov x8, #4
mul x8, x8, x9
mov x1, x8
sub x0, x29, #8
mov w2, #0
bl _XXH64
ldr x9, [sp] ; 8-byte Folded Reload
ldr w8, [sp, #12] ; 4-byte Folded Reload
asr w10, w0, #3
ldr w12, [sp, #36]
sdiv w11, w10, w12
mul w11, w11, w12
subs w10, w10, w11
str w8, [x9, w10, sxtw #2]
b LBB0_6
LBB0_5:
b LBB0_6
LBB0_6:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _strt_ind,8,3 ; @strt_ind
.comm _NUM_PARAMS,4,2 ; @NUM_PARAMS
.no_dead_strip _memoTableSet
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function memoTableSet
_memoTableSet: ## @memoTableSet
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rsi, -8(%rbp)
movq %rdi, -16(%rbp)
movl %edx, -20(%rbp)
movq -16(%rbp), %rax
movq -8(%rbp), %rcx
movq _strt_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movq (%rcx,%rdx,8), %rcx
leaq (%rcx,%rcx,2), %rcx
movq 16(%rax,%rcx,8), %rdx
movq %rdx, -32(%rbp)
movups (%rax,%rcx,8), %xmm0
movaps %xmm0, -48(%rbp)
movl -48(%rbp), %eax
movl %eax, -52(%rbp) ## 4-byte Spill
subl $128, %eax
je LBB0_2
jmp LBB0_5
LBB0_5:
movl -52(%rbp), %eax ## 4-byte Reload
subl $129, %eax
je LBB0_3
jmp LBB0_6
LBB0_6:
movl -52(%rbp), %eax ## 4-byte Reload
subl $130, %eax
jne LBB0_4
jmp LBB0_1
LBB0_1:
movl -20(%rbp), %eax
movl %eax, -68(%rbp) ## 4-byte Spill
movq -40(%rbp), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
movl -28(%rbp), %esi
movl -32(%rbp), %edx
leaq -8(%rbp), %rdi
callq _memoTableIndDirect
movl -68(%rbp), %edx ## 4-byte Reload
movq %rax, %rcx
movq -64(%rbp), %rax ## 8-byte Reload
movl %edx, (%rax,%rcx,4)
jmp LBB0_4
LBB0_2:
movl -20(%rbp), %eax
movl %eax, -72(%rbp) ## 4-byte Spill
movq -40(%rbp), %rax
movq %rax, -80(%rbp) ## 8-byte Spill
leaq -8(%rbp), %rdi
movq _NUM_PARAMS@GOTPCREL(%rip), %rax
movslq (%rax), %rax
shlq $2, %rax
movl %eax, %esi
xorl %edx, %edx
callq _XXH64
sarl $3, %eax
cltd
idivl -44(%rbp)
movq -80(%rbp), %rax ## 8-byte Reload
movl %edx, %ecx
movl -72(%rbp), %edx ## 4-byte Reload
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
jmp LBB0_4
LBB0_3:
jmp LBB0_4
LBB0_4:
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _strt_ind,8,3 ## @strt_ind
.comm _NUM_PARAMS,4,2 ## @NUM_PARAMS
.no_dead_strip _memoTableSet
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_memoTableSet.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function nextStrategy
_nextStrategy: ; @nextStrategy
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #24]
str w1, [sp, #20]
ldr w8, [sp, #20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_1
LBB0_1:
ldr w9, [sp, #20]
mov w8, #2
mul w8, w8, w9
ldr w9, [sp, #24]
subs w8, w8, w9
subs w8, w8, #1
str w8, [sp, #16]
ldr w8, [sp, #16]
subs w8, w8, #1
cset w8, ge
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2:
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #16]
ldr w8, [sp, #16]
adrp x9, _ZSTD_STRATEGY_MAX@GOTPAGE
ldr x9, [x9, _ZSTD_STRATEGY_MAX@GOTPAGEOFF]
ldr x9, [x9]
; kill: def $w9 killed $w9 killed $x9
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
str wzr, [sp, #28]
b LBB0_11
LBB0_4:
ldr w8, [sp, #16]
str w8, [sp, #28]
b LBB0_11
LBB0_5:
ldr w8, [sp, #16]
str w8, [sp, #28]
b LBB0_11
LBB0_6:
ldr w9, [sp, #20]
mov w8, #2
mul w8, w8, w9
ldr w9, [sp, #24]
subs w8, w8, w9
str w8, [sp, #12]
ldr w8, [sp, #12]
adrp x9, _ZSTD_STRATEGY_MAX@GOTPAGE
ldr x9, [x9, _ZSTD_STRATEGY_MAX@GOTPAGEOFF]
ldr x9, [x9]
; kill: def $w9 killed $w9 killed $x9
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_10
b LBB0_7
LBB0_7:
ldr w8, [sp, #24]
subs w8, w8, #1
str w8, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #1
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
str wzr, [sp, #28]
b LBB0_11
LBB0_9:
ldr w8, [sp, #12]
str w8, [sp, #28]
b LBB0_11
LBB0_10:
ldr w8, [sp, #12]
str w8, [sp, #28]
b LBB0_11
LBB0_11:
ldr w0, [sp, #28]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _ZSTD_STRATEGY_MAX,8,3 ; @ZSTD_STRATEGY_MAX
.no_dead_strip _nextStrategy
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function nextStrategy
_nextStrategy: ## @nextStrategy
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -8(%rbp)
movl %esi, -12(%rbp)
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jg LBB0_6
## %bb.1:
movl -12(%rbp), %eax
shll $1, %eax
subl -8(%rbp), %eax
subl $1, %eax
movl %eax, -16(%rbp)
cmpl $1, -16(%rbp)
jge LBB0_5
## %bb.2:
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
movl -16(%rbp), %eax
movq _ZSTD_STRATEGY_MAX@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
## kill: def $ecx killed $ecx killed $rcx
cmpl %ecx, %eax
jle LBB0_4
## %bb.3:
movl $0, -4(%rbp)
jmp LBB0_11
LBB0_4:
movl -16(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_11
LBB0_5:
movl -16(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_11
LBB0_6:
movl -12(%rbp), %eax
shll $1, %eax
subl -8(%rbp), %eax
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
movq _ZSTD_STRATEGY_MAX@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
## kill: def $ecx killed $ecx killed $rcx
cmpl %ecx, %eax
jle LBB0_10
## %bb.7:
movl -8(%rbp), %eax
subl $1, %eax
movl %eax, -20(%rbp)
cmpl $1, -20(%rbp)
jge LBB0_9
## %bb.8:
movl $0, -4(%rbp)
jmp LBB0_11
LBB0_9:
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_11
LBB0_10:
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_11:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _ZSTD_STRATEGY_MAX,8,3 ## @ZSTD_STRATEGY_MAX
.no_dead_strip _nextStrategy
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_nextStrategy.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function optimizeFixedStrategy
_optimizeFixedStrategy: ; @optimizeFixedStrategy
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x3, [x29, #-24]
stur w1, [x29, #-28]
stur w2, [x29, #-32]
stur w4, [x29, #-36]
str x5, [sp, #48]
str w6, [sp, #44]
str wzr, [sp, #40]
bl _emptyParams
bl _initWinnerInfo
str x0, [sp, #16]
ldr x8, [sp, #16]
stur x8, [x29, #-8]
ldur w8, [x29, #-36]
ldur x9, [x29, #-24]
adrp x10, _strt_ind@GOTPAGE
ldr x10, [x10, _strt_ind@GOTPAGEOFF]
ldr x10, [x10]
str w8, [x9, x10, lsl #2]
ldur x0, [x29, #-24]
bl _cParamUnsetMin
str x0, [sp, #8]
ldr x8, [sp, #8]
stur x8, [x29, #-24]
ldur x8, [x29, #-24]
str x8, [sp, #32]
str wzr, [sp, #40]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #40]
ldr w9, [sp, #44]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DEBUGOUTPUT
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x1, [sp, #48]
ldur w2, [x29, #-36]
add x0, sp, #32
bl _randomConstrainedParams
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldur w1, [x29, #-32]
ldur w2, [x29, #-12]
ldr x0, [sp, #32]
bl _redundantParams
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur w0, [x29, #-32]
ldr x1, [sp, #48]
ldur w3, [x29, #-28]
ldur x2, [x29, #-16]
ldr x4, [sp, #32]
bl _climbOnce
str x0, [sp]
ldr x8, [sp]
str x8, [sp, #24]
ldur w0, [x29, #-4]
ldr w1, [sp, #28]
ldur w2, [x29, #-32]
ldur w3, [x29, #-16]
bl _compareResultLT
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
stur x8, [x29, #-8]
adrp x8, _stdout@GOTPAGE
ldr x8, [x8, _stdout@GOTPAGEOFF]
ldr w0, [x8]
adrp x8, _CUSTOM_LEVEL@GOTPAGE
ldr x8, [x8, _CUSTOM_LEVEL@GOTPAGEOFF]
ldr w1, [x8]
ldur w2, [x29, #-4]
ldur w3, [x29, #-8]
ldur w4, [x29, #-32]
ldur w5, [x29, #-16]
bl _BMK_printWinnerOpt
str wzr, [sp, #40]
b LBB0_8
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
bl _CHECKTIME
ldr w8, [sp, #40]
add w8, w8, #1
str w8, [sp, #40]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #40]
add w8, w8, #1
str w8, [sp, #40]
b LBB0_1
LBB0_9:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _strt_ind,8,3 ; @strt_ind
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Restart\n"
.comm _stdout,4,2 ; @stdout
.comm _CUSTOM_LEVEL,4,2 ; @CUSTOM_LEVEL
.no_dead_strip _optimizeFixedStrategy
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function optimizeFixedStrategy
_optimizeFixedStrategy: ## @optimizeFixedStrategy
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movl 16(%rbp), %eax
movq %rdi, -16(%rbp)
movq %rcx, -24(%rbp)
movl %esi, -28(%rbp)
movl %edx, -32(%rbp)
movl %r8d, -36(%rbp)
movq %r9, -48(%rbp)
movl $0, -52(%rbp)
movb $0, %al
callq _emptyParams
movl %eax, %edi
callq _initWinnerInfo
movq %rax, -80(%rbp)
movq -80(%rbp), %rax
movq %rax, -8(%rbp)
movl -36(%rbp), %edx
movq -24(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movl %edx, (%rax,%rcx,4)
movq -24(%rbp), %rdi
callq _cParamUnsetMin
movq %rax, -88(%rbp)
movq -88(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movq %rax, -64(%rbp)
movl $0, -52(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movl -52(%rbp), %eax
cmpl 16(%rbp), %eax
jge LBB0_9
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str(%rip), %rdi
callq _DEBUGOUTPUT
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -48(%rbp), %rsi
movl -36(%rbp), %edx
leaq -64(%rbp), %rdi
callq _randomConstrainedParams
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movl -32(%rbp), %esi
movl -12(%rbp), %edx
movq -64(%rbp), %rdi
callq _redundantParams
cmpq $0, %rax
jne LBB0_3
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movl -32(%rbp), %edi
movq -48(%rbp), %rsi
movl -28(%rbp), %ecx
movq -16(%rbp), %rdx
movq -64(%rbp), %r8
callq _climbOnce
movq %rax, -96(%rbp)
movq -96(%rbp), %rax
movq %rax, -72(%rbp)
movl -4(%rbp), %edi
movl -68(%rbp), %esi
movl -32(%rbp), %edx
movl -16(%rbp), %ecx
callq _compareResultLT
cmpq $0, %rax
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
movq -72(%rbp), %rax
movq %rax, -8(%rbp)
movq _stdout@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq _CUSTOM_LEVEL@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -4(%rbp), %edx
movl -8(%rbp), %ecx
movl -32(%rbp), %r8d
movl -16(%rbp), %r9d
callq _BMK_printWinnerOpt
movl $0, -52(%rbp)
jmp LBB0_8
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
callq _CHECKTIME
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_1
LBB0_9:
movq -8(%rbp), %rax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _strt_ind,8,3 ## @strt_ind
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Restart\n"
.comm _stdout,4,2 ## @stdout
.comm _CUSTOM_LEVEL,4,2 ## @CUSTOM_LEVEL
.no_dead_strip _optimizeFixedStrategy
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_optimizeFixedStrategy.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function optimizerAdjustInput
_optimizerAdjustInput: ; @optimizerAdjustInput
.cfi_startproc
; %bb.0:
sub sp, sp, #128
.cfi_def_cfa_offset 128
stp x29, x30, [sp, #112] ; 16-byte Folded Spill
add x29, sp, #112
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _wlog_ind@GOTPAGE
ldr x8, [x8, _wlog_ind@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x8, _PARAM_UNSET@GOTPAGE
ldr x8, [x8, _PARAM_UNSET@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
adrp x8, _clog_ind@GOTPAGE
ldr x8, [x8, _clog_ind@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x8, _hlog_ind@GOTPAGE
ldr x8, [x8, _hlog_ind@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
adrp x8, _slog_ind@GOTPAGE
ldr x8, [x8, _slog_ind@GOTPAGEOFF]
str x8, [sp, #48] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur xzr, [x29, #-24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-24]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldur x10, [x29, #-24]
ldr x8, [x8, x10, lsl #3]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr x0, [x8, x9, lsl #3]
adrp x8, _mintable@GOTPAGE
ldr x8, [x8, _mintable@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr x1, [x8, x9, lsl #3]
bl _MAX
adrp x8, _maxtable@GOTPAGE
ldr x8, [x8, _maxtable@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr w1, [x8, x9, lsl #2]
bl _MIN
stur x0, [x29, #-32]
ldur x8, [x29, #-32]
ldur x9, [x29, #-8]
ldr x9, [x9]
ldur x10, [x29, #-24]
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
ldur x9, [x29, #-8]
ldr x9, [x9]
ldur x10, [x29, #-24]
str x8, [x9, x10, lsl #3]
adrp x8, _g_paramNames@GOTPAGE
ldr x8, [x8, _g_paramNames@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-24]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
mov w3, #0
bl _displayParamVal
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-24]
add x8, x8, #1
stur x8, [x29, #-24]
b LBB0_1
LBB0_8:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x10, [x10]
ldr x8, [x8, x10, lsl #3]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_9
LBB0_9:
ldur x8, [x29, #-16]
subs x8, x8, #1
cset w8, ls
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldur x8, [x29, #-16]
subs x0, x8, #1
bl _ZSTD_highbit32
add w8, w0, #1
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_12
LBB0_11:
mov w8, #1
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_12
LBB0_12:
ldr w9, [sp, #12] ; 4-byte Folded Reload
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
stur x8, [x29, #-40]
ldur x8, [x29, #-16]
mov x9, #2147483648
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_17
b LBB0_13
LBB0_13:
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-40]
add x8, x8, #1
ldur x9, [x29, #-8]
ldr x9, [x9]
ldr x10, [x10]
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_17
b LBB0_14
LBB0_14:
ldr x9, [sp, #16] ; 8-byte Folded Reload
adrp x8, _mintable@GOTPAGE
ldr x8, [x8, _mintable@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [x9]
ldr x0, [x8, x9, lsl #3]
ldur x1, [x29, #-40]
bl _MAX
ldr x10, [sp, #16] ; 8-byte Folded Reload
stur x0, [x29, #-48]
ldur x8, [x29, #-48]
ldur x9, [x29, #-8]
ldr x9, [x9]
ldr x10, [x10]
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-48]
ldur x10, [x29, #-8]
ldr x10, [x10]
ldr x11, [x9]
str x8, [x10, x11, lsl #3]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
b LBB0_16
LBB0_16:
b LBB0_17
LBB0_17:
b LBB0_18
LBB0_18:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x10, [x10]
ldr x8, [x8, x10, lsl #3]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_27
b LBB0_19
LBB0_19:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #32] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x10, [x10]
ldr x8, [x8, x10, lsl #3]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_27
b LBB0_20
LBB0_20:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
adrp x10, _strt_ind@GOTPAGE
ldr x10, [x10, _strt_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr x8, [x8, x10, lsl #3]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21:
ldur x8, [x29, #-8]
ldr x8, [x8]
adrp x9, _strt_ind@GOTPAGE
ldr x9, [x9, _strt_ind@GOTPAGEOFF]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
adrp x9, _ZSTD_btlazy2@GOTPAGE
ldr x9, [x9, _ZSTD_btlazy2@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, lt
tbnz w8, #0, LBB0_23
b LBB0_22
LBB0_22:
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
add x8, x8, #1
str x8, [sp, #56]
b LBB0_24
LBB0_23:
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #56]
b LBB0_24
LBB0_24:
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #56]
subs x8, x8, x9
cset w8, le
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25:
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #56]
ldur x10, [x29, #-8]
ldr x10, [x10]
ldr x11, [x9]
str x8, [x10, x11, lsl #3]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
b LBB0_26
LBB0_26:
b LBB0_27
LBB0_27:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x10, [x10]
ldr x8, [x8, x10, lsl #3]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_32
b LBB0_28
LBB0_28:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #40] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x10, [x10]
ldr x8, [x8, x10, lsl #3]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_32
b LBB0_29
LBB0_29:
ldr x10, [sp, #40] ; 8-byte Folded Reload
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
add x8, x8, #1
ldur x9, [x29, #-8]
ldr x9, [x9]
ldr x10, [x10]
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_31
b LBB0_30
LBB0_30:
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x10, [x10]
ldr x8, [x8, x10, lsl #3]
add x8, x8, #1
ldur x10, [x29, #-8]
ldr x10, [x10]
ldr x11, [x9]
str x8, [x10, x11, lsl #3]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
b LBB0_31
LBB0_31:
b LBB0_32
LBB0_32:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #48] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x10, [x10]
ldr x8, [x8, x10, lsl #3]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_37
b LBB0_33
LBB0_33:
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #32] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x10, [x10]
ldr x8, [x8, x10, lsl #3]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_37
b LBB0_34
LBB0_34:
ldr x10, [sp, #32] ; 8-byte Folded Reload
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
ldur x9, [x29, #-8]
ldr x9, [x9]
ldr x10, [x10]
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
cset w8, le
tbnz w8, #0, LBB0_36
b LBB0_35
LBB0_35:
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x11, [sp, #32] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x10, [x9]
ldr x8, [x8, x10, lsl #3]
ldur x10, [x29, #-8]
ldr x10, [x10]
ldr x11, [x11]
str x8, [x10, x11, lsl #3]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
b LBB0_36
LBB0_36:
b LBB0_37
LBB0_37:
ldp x29, x30, [sp, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _PARAM_UNSET,8,3 ; @PARAM_UNSET
.comm _mintable,8,3 ; @mintable
.comm _maxtable,8,3 ; @maxtable
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Warning: parameter %s not in valid range, adjusting to "
.comm _g_paramNames,8,3 ; @g_paramNames
.comm _stderr,4,2 ; @stderr
l_.str.1: ; @.str.1
.asciz "\n"
.comm _wlog_ind,8,3 ; @wlog_ind
l_.str.2: ; @.str.2
.asciz "Warning: windowLog larger than src/block size, adjusted to %u\n"
.comm _clog_ind,8,3 ; @clog_ind
.comm _strt_ind,8,3 ; @strt_ind
.comm _ZSTD_btlazy2,8,3 ; @ZSTD_btlazy2
l_.str.3: ; @.str.3
.asciz "Warning: chainlog too much larger than windowLog size, adjusted to %u\n"
.comm _hlog_ind,8,3 ; @hlog_ind
l_.str.4: ; @.str.4
.asciz "Warning: hashlog too much larger than windowLog size, adjusted to %u\n"
.comm _slog_ind,8,3 ; @slog_ind
l_.str.5: ; @.str.5
.asciz "Warning: searchLog larger than chainLog, adjusted to %u\n"
.no_dead_strip _optimizerAdjustInput
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function optimizerAdjustInput
_optimizerAdjustInput: ## @optimizerAdjustInput
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq $0, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_6
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq _mintable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq _MAX
movq %rax, %rdi
movq _maxtable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq _MIN
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movq -8(%rbp), %rcx
movq (%rcx), %rcx
movq -24(%rbp), %rdx
cmpq (%rcx,%rdx,8), %rax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdx
movq -8(%rbp), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq _g_paramNames@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -24(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
xorl %ecx, %ecx
callq _displayParamVal
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_6
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_8:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_18
## %bb.9:
cmpq $1, -16(%rbp)
jbe LBB0_11
## %bb.10:
movq -16(%rbp), %rdi
subq $1, %rdi
callq _ZSTD_highbit32
addl $1, %eax
movl %eax, -60(%rbp) ## 4-byte Spill
jmp LBB0_12
LBB0_11:
movl $1, %eax
movl %eax, -60(%rbp) ## 4-byte Spill
jmp LBB0_12
LBB0_12:
movl -60(%rbp), %eax ## 4-byte Reload
cltq
movq %rax, -40(%rbp)
movl $2147483648, %eax ## imm = 0x80000000
cmpq %rax, -16(%rbp)
jae LBB0_17
## %bb.13:
movq -40(%rbp), %rax
addq $1, %rax
movq -8(%rbp), %rcx
movq (%rcx), %rcx
movq _wlog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
cmpq (%rcx,%rdx,8), %rax
jge LBB0_17
## %bb.14:
movq _mintable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
movq -40(%rbp), %rsi
callq _MAX
movq %rax, -48(%rbp)
movq -48(%rbp), %rax
movq -8(%rbp), %rcx
movq (%rcx), %rcx
movq _wlog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
cmpq (%rcx,%rdx,8), %rax
je LBB0_16
## %bb.15:
movq -48(%rbp), %rdx
movq -8(%rbp), %rax
movq (%rax), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq -8(%rbp), %rax
movq (%rax), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_16:
jmp LBB0_17
LBB0_17:
jmp LBB0_18
LBB0_18:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_27
## %bb.19:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _clog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_27
## %bb.20:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_22
## %bb.21:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _ZSTD_btlazy2@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jl LBB0_23
LBB0_22:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
addq $1, %rax
movq %rax, -56(%rbp)
jmp LBB0_24
LBB0_23:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -56(%rbp)
LBB0_24:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _clog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpq -56(%rbp), %rax
jle LBB0_26
## %bb.25:
movq -56(%rbp), %rdx
movq -8(%rbp), %rax
movq (%rax), %rax
movq _clog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq -8(%rbp), %rax
movq (%rax), %rax
movq _clog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_26:
jmp LBB0_27
LBB0_27:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_32
## %bb.28:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _hlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_32
## %bb.29:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
addq $1, %rax
movq -8(%rbp), %rcx
movq (%rcx), %rcx
movq _hlog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
cmpq (%rcx,%rdx,8), %rax
jge LBB0_31
## %bb.30:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rdx
addq $1, %rdx
movq -8(%rbp), %rax
movq (%rax), %rax
movq _hlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq -8(%rbp), %rax
movq (%rax), %rax
movq _hlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_31:
jmp LBB0_32
LBB0_32:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _slog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_37
## %bb.33:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _clog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_37
## %bb.34:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _slog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq -8(%rbp), %rcx
movq (%rcx), %rcx
movq _clog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
cmpq (%rcx,%rdx,8), %rax
jle LBB0_36
## %bb.35:
movq -8(%rbp), %rax
movq (%rax), %rax
movq _slog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rdx
movq -8(%rbp), %rax
movq (%rax), %rax
movq _clog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq -8(%rbp), %rax
movq (%rax), %rax
movq _slog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
LBB0_36:
jmp LBB0_37
LBB0_37:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _PARAM_UNSET,8,3 ## @PARAM_UNSET
.comm _mintable,8,3 ## @mintable
.comm _maxtable,8,3 ## @maxtable
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Warning: parameter %s not in valid range, adjusting to "
.comm _g_paramNames,8,3 ## @g_paramNames
.comm _stderr,4,2 ## @stderr
L_.str.1: ## @.str.1
.asciz "\n"
.comm _wlog_ind,8,3 ## @wlog_ind
L_.str.2: ## @.str.2
.asciz "Warning: windowLog larger than src/block size, adjusted to %u\n"
.comm _clog_ind,8,3 ## @clog_ind
.comm _strt_ind,8,3 ## @strt_ind
.comm _ZSTD_btlazy2,8,3 ## @ZSTD_btlazy2
L_.str.3: ## @.str.3
.asciz "Warning: chainlog too much larger than windowLog size, adjusted to %u\n"
.comm _hlog_ind,8,3 ## @hlog_ind
L_.str.4: ## @.str.4
.asciz "Warning: hashlog too much larger than windowLog size, adjusted to %u\n"
.comm _slog_ind,8,3 ## @slog_ind
L_.str.5: ## @.str.5
.asciz "Warning: searchLog larger than chainLog, adjusted to %u\n"
.no_dead_strip _optimizerAdjustInput
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_optimizerAdjustInput.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function overwriteParams
_overwriteParams: ; @overwriteParams
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #16]
str x1, [sp, #8]
str xzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x9, [sp]
ldr x8, [x8, x9, lsl #3]
adrp x9, _PARAM_UNSET@GOTPAGE
ldr x9, [x9, _PARAM_UNSET@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x9, [sp]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #16]
ldr x10, [sp]
str x8, [x9, x10, lsl #3]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_6:
ldr x8, [sp, #16]
str x8, [sp, #24]
ldr x0, [sp, #24]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _PARAM_UNSET,8,3 ; @PARAM_UNSET
.no_dead_strip _overwriteParams
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function overwriteParams
_overwriteParams: ## @overwriteParams
.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, -16(%rbp)
movq %rsi, -24(%rbp)
movq $0, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -16(%rbp), %rax
movq -32(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_1
LBB0_6:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _PARAM_UNSET,8,3 ## @PARAM_UNSET
.no_dead_strip _overwriteParams
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_overwriteParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function paramValid
_paramValid: ; @paramValid
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
str xzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x9, [sp]
ldr w0, [x8, x9, lsl #2]
adrp x8, _mintable@GOTPAGE
ldr x8, [x8, _mintable@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp]
ldr w1, [x8, x9, lsl #2]
adrp x8, _maxtable@GOTPAGE
ldr x8, [x8, _maxtable@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp]
ldr w2, [x8, x9, lsl #2]
bl _BOUNDCHECK
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_4:
mov w0, #1
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _mintable,8,3 ; @mintable
.comm _maxtable,8,3 ; @maxtable
.no_dead_strip _paramValid
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function paramValid
_paramValid: ## @paramValid
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq -16(%rbp), %rcx
movl (%rax,%rcx,4), %edi
movq _mintable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movl (%rax,%rcx,4), %esi
movq _maxtable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movl (%rax,%rcx,4), %edx
callq _BOUNDCHECK
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_4:
movl $1, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _mintable,8,3 ## @mintable
.comm _maxtable,8,3 ## @maxtable
.no_dead_strip _paramValid
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_paramValid.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function parse_params
_parse_params: ; @parse_params
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur wzr, [x29, #-20]
ldur x8, [x29, #-8]
ldr x8, [x8]
str x8, [sp, #16]
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_9
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
adrp x8, _g_shortParamNames@GOTPAGE
ldr x8, [x8, _g_shortParamNames@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #8]
ldr w1, [x8, x9, lsl #2]
bl _longCommandWArg
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-8]
adrp x8, _g_paramNames@GOTPAGE
ldr x8, [x8, _g_paramNames@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #8]
ldr w1, [x8, x9, lsl #2]
bl _longCommandWArg
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #61
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldur x9, [x29, #-8]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
ldur x0, [x29, #-8]
bl _readU32FromChar
ldur x8, [x29, #-16]
ldr x8, [x8]
ldr x9, [sp, #8]
str w0, [x8, x9, lsl #2]
mov w8, #1
stur w8, [x29, #-20]
b LBB0_9
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
str x8, [x9]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_9:
ldur w0, [x29, #-20]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _g_shortParamNames,8,3 ; @g_shortParamNames
.comm _g_paramNames,8,3 ; @g_paramNames
.no_dead_strip _parse_params
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function parse_params
_parse_params: ## @parse_params
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -20(%rbp)
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_9
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
movq _g_shortParamNames@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -40(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq _longCommandWArg
cmpq $0, %rax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rdi
movq _g_paramNames@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -40(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq _longCommandWArg
cmpq $0, %rax
je LBB0_7
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $61, %eax
jne LBB0_6
## %bb.5:
movq -8(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
movq -8(%rbp), %rdi
callq _readU32FromChar
movl %eax, %edx
movq -16(%rbp), %rax
movq (%rax), %rax
movq -40(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl $1, -20(%rbp)
jmp LBB0_9
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_9:
movl -20(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _g_shortParamNames,8,3 ## @g_shortParamNames
.comm _g_paramNames,8,3 ## @g_paramNames
.no_dead_strip _parse_params
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_parse_params.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function paramVaryOnce
_paramVaryOnce: ; @paramVaryOnce
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str x2, [sp, #8]
ldur x8, [x29, #-8]
str x8, [sp] ; 8-byte Folded Spill
ldur x0, [x29, #-8]
ldr x8, [sp, #8]
ldr x8, [x8]
ldur x9, [x29, #-8]
ldr w1, [x8, x9, lsl #2]
bl _invRangeMap
mov x8, x0
ldr x0, [sp] ; 8-byte Folded Reload
ldursw x9, [x29, #-12]
add x1, x8, x9
bl _rangeMap
ldr x8, [sp, #8]
ldr x8, [x8]
ldur x9, [x29, #-8]
str w0, [x8, x9, lsl #2]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _paramVaryOnce
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function paramVaryOnce
_paramVaryOnce: ## @paramVaryOnce
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq -8(%rbp), %rdi
movq -24(%rbp), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq _invRangeMap
movq -32(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
movslq -12(%rbp), %rax
addq %rax, %rsi
callq _rangeMap
movl %eax, %edx
movq -24(%rbp), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _paramVaryOnce
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_paramVaryOnce.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function playAround
_playAround: ; @playAround
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
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
adrp x8, _g_rand@GOTPAGE
ldr x8, [x8, _g_rand@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
mov x8, x3
stur w8, [x29, #-4]
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur w2, [x29, #-28]
stur w4, [x29, #-32]
stur wzr, [x29, #-36]
bl _UTIL_getTime
str w0, [sp, #40]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_5 Depth 2
; Child Loop BB0_6 Depth 3
ldr w0, [sp, #40]
bl _UTIL_clockSpanMicro
adrp x8, _g_maxVariationTime@GOTPAGE
ldr x8, [x8, _g_maxVariationTime@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x0, x8
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-36]
add w9, w8, #1
stur w9, [x29, #-36]
adrp x9, _g_maxNbVariations@GOTPAGE
ldr x9, [x9, _g_maxNbVariations@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
b LBB0_16
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; Parent Loop BB0_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_6 Depth 3
str wzr, [sp, #36]
b LBB0_6
LBB0_6: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_5 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #36]
subs w8, w8, #4
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=3
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _FUZ_rand
mov x8, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x9, _strt_ind@GOTPAGE
ldr x9, [x9, _strt_ind@GOTPAGEOFF]
ldr w9, [x9]
add w10, w9, #1
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #12] ; 4-byte Folded Spill
bl _FUZ_rand
mov x8, x0
ldr w0, [sp, #12] ; 4-byte Folded Reload
and w8, w8, #0x1
lsl w8, w8, #1
subs w1, w8, #1
sub x2, x29, #28
bl _paramVaryOnce
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_6 Depth=3
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_6
LBB0_9: ; in Loop: Header=BB0_5 Depth=2
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_5 Depth=2
ldur w0, [x29, #-28]
bl _paramValid
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _FUZ_rand
str w0, [sp, #8] ; 4-byte Folded Spill
ldur w0, [x29, #-28]
bl _NB_TESTS_PLAYED
mov x8, x0
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldr w9, [x8]
mov w8, #1
lsl w8, w8, w9
subs w8, w8, #1
ands w8, w0, w8
cset w8, eq
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
ldur w0, [x29, #-28]
bl _NB_TESTS_PLAYED
str x0, [sp, #24]
ldr x9, [sp, #24]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
ldur x0, [x29, #-24]
ldur w1, [x29, #-28]
ldur w3, [x29, #-32]
ldur w8, [x29, #-4]
mov x2, x8
bl _BMK_seed
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_15: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldur x1, [x29, #-24]
ldur w2, [x29, #-4]
bl _BMK_saveAndPrint_cLevelTable
ldur x0, [x29, #-16]
ldur x1, [x29, #-24]
ldur w2, [x29, #-28]
ldur w4, [x29, #-32]
ldur w8, [x29, #-4]
mov x3, x8
bl _playAround
b LBB0_1
LBB0_16:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _g_maxVariationTime,8,3 ; @g_maxVariationTime
.comm _g_maxNbVariations,4,2 ; @g_maxNbVariations
.comm _g_rand,4,2 ; @g_rand
.comm _strt_ind,4,2 ; @strt_ind
.no_dead_strip _playAround
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function playAround
_playAround: ## @playAround
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl %ecx, -8(%rbp)
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movl %edx, -28(%rbp)
movl %r8d, -32(%rbp)
movl $0, -36(%rbp)
movb $0, %al
callq _UTIL_getTime
movl %eax, -40(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_5 Depth 2
## Child Loop BB0_6 Depth 3
movl -40(%rbp), %edi
callq _UTIL_clockSpanMicro
movq _g_maxVariationTime@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jge LBB0_16
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -36(%rbp), %eax
movl %eax, %ecx
addl $1, %ecx
movl %ecx, -36(%rbp)
movq _g_maxNbVariations@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jle LBB0_4
## %bb.3:
jmp LBB0_16
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_6 Depth 3
movl $0, -44(%rbp)
LBB0_6: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_5 Depth=2
## => This Inner Loop Header: Depth=3
cmpl $4, -44(%rbp)
jge LBB0_9
## %bb.7: ## in Loop: Header=BB0_6 Depth=3
movq _g_rand@GOTPCREL(%rip), %rdi
callq _FUZ_rand
movq _strt_ind@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
addl $1, %ecx
cltd
idivl %ecx
movl %edx, -60(%rbp) ## 4-byte Spill
movq _g_rand@GOTPCREL(%rip), %rdi
callq _FUZ_rand
movl -60(%rbp), %edi ## 4-byte Reload
movl %eax, %esi
andl $1, %esi
shll $1, %esi
subl $1, %esi
leaq -28(%rbp), %rdx
callq _paramVaryOnce
## %bb.8: ## in Loop: Header=BB0_6 Depth=3
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB0_6
LBB0_9: ## in Loop: Header=BB0_5 Depth=2
jmp LBB0_10
LBB0_10: ## in Loop: Header=BB0_5 Depth=2
movl -28(%rbp), %edi
callq _paramValid
cmpl $0, %eax
setne %al
xorb $-1, %al
testb $1, %al
jne LBB0_5
## %bb.11: ## in Loop: Header=BB0_1 Depth=1
movq _g_rand@GOTPCREL(%rip), %rdi
callq _FUZ_rand
movl %eax, -64(%rbp) ## 4-byte Spill
movl -28(%rbp), %edi
callq _NB_TESTS_PLAYED
movq %rax, %rcx
movl -64(%rbp), %eax ## 4-byte Reload
movl (%rcx), %ecx
movl $1, %edx
## kill: def $cl killed $ecx
shll %cl, %edx
movl %edx, %ecx
subl $1, %ecx
andl %ecx, %eax
cmpl $0, %eax
je LBB0_13
## %bb.12: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %edi
callq _NB_TESTS_PLAYED
movq %rax, -56(%rbp)
movq -56(%rbp), %rax
movl (%rax), %ecx
addl $1, %ecx
movl %ecx, (%rax)
movq -24(%rbp), %rdi
movl -28(%rbp), %esi
movl -32(%rbp), %ecx
movl -8(%rbp), %edx
callq _BMK_seed
cmpl $0, %eax
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_15: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movl -8(%rbp), %edx
callq _BMK_saveAndPrint_cLevelTable
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movl -28(%rbp), %edx
movl -32(%rbp), %r8d
movl -8(%rbp), %ecx
callq _playAround
jmp LBB0_1
LBB0_16:
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_maxVariationTime,8,3 ## @g_maxVariationTime
.comm _g_maxNbVariations,4,2 ## @g_maxNbVariations
.comm _g_rand,4,2 ## @g_rand
.comm _strt_ind,4,2 ## @strt_ind
.no_dead_strip _playAround
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_playAround.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function pvalsToCParams
_pvalsToCParams: ; @pvalsToCParams
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x8, [sp] ; 8-byte Folded Spill
mov x8, x0
ldr x0, [sp] ; 8-byte Folded Reload
str x8, [sp, #8]
mov w1, #0
mov w2, #28
bl _memset
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #8]
adrp x10, _wlog_ind@GOTPAGE
ldr x10, [x10, _wlog_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr w8, [x8, x10, lsl #2]
str w8, [x9, #24]
ldr x8, [sp, #8]
adrp x10, _clog_ind@GOTPAGE
ldr x10, [x10, _clog_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr w8, [x8, x10, lsl #2]
str w8, [x9, #20]
ldr x8, [sp, #8]
adrp x10, _hlog_ind@GOTPAGE
ldr x10, [x10, _hlog_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr w8, [x8, x10, lsl #2]
str w8, [x9, #16]
ldr x8, [sp, #8]
adrp x10, _slog_ind@GOTPAGE
ldr x10, [x10, _slog_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr w8, [x8, x10, lsl #2]
str w8, [x9, #12]
ldr x8, [sp, #8]
adrp x10, _mml_ind@GOTPAGE
ldr x10, [x10, _mml_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr w8, [x8, x10, lsl #2]
str w8, [x9, #8]
ldr x8, [sp, #8]
adrp x10, _tlen_ind@GOTPAGE
ldr x10, [x10, _tlen_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr w8, [x8, x10, lsl #2]
str w8, [x9, #4]
ldr x8, [sp, #8]
adrp x10, _strt_ind@GOTPAGE
ldr x10, [x10, _strt_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr w8, [x8, x10, lsl #2]
str w8, [x9]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _wlog_ind,8,3 ; @wlog_ind
.comm _clog_ind,8,3 ; @clog_ind
.comm _hlog_ind,8,3 ; @hlog_ind
.comm _slog_ind,8,3 ; @slog_ind
.comm _mml_ind,8,3 ; @mml_ind
.comm _tlen_ind,8,3 ; @tlen_ind
.comm _strt_ind,8,3 ; @strt_ind
.no_dead_strip _pvalsToCParams
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function pvalsToCParams
_pvalsToCParams: ## @pvalsToCParams
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -24(%rbp) ## 8-byte Spill
movq %rdi, %rax
movq %rax, -16(%rbp) ## 8-byte Spill
movq %rsi, -8(%rbp)
xorl %esi, %esi
movl $28, %edx
callq _memset
movq -24(%rbp), %rdi ## 8-byte Reload
## kill: def $ecx killed $eax
movq -16(%rbp), %rax ## 8-byte Reload
movq -8(%rbp), %rcx
movq _wlog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, 24(%rdi)
movq -8(%rbp), %rcx
movq _clog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, 20(%rdi)
movq -8(%rbp), %rcx
movq _hlog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, 16(%rdi)
movq -8(%rbp), %rcx
movq _slog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, 12(%rdi)
movq -8(%rbp), %rcx
movq _mml_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, 8(%rdi)
movq -8(%rbp), %rcx
movq _tlen_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, 4(%rdi)
movq -8(%rbp), %rcx
movq _strt_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, (%rdi)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _wlog_ind,8,3 ## @wlog_ind
.comm _clog_ind,8,3 ## @clog_ind
.comm _hlog_ind,8,3 ## @hlog_ind
.comm _slog_ind,8,3 ## @slog_ind
.comm _mml_ind,8,3 ## @mml_ind
.comm _tlen_ind,8,3 ## @tlen_ind
.comm _strt_ind,8,3 ## @strt_ind
.no_dead_strip _pvalsToCParams
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_pvalsToCParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function randomConstrainedParams
_randomConstrainedParams: ; @randomConstrainedParams
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
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
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
ldur x8, [x29, #-16]
ldur x9, [x29, #-24]
ldr q0, [x8, x9, lsl #4]
str q0, [sp, #32]
ldur x8, [x29, #-24]
ldur x9, [x29, #-8]
ldr x9, [x9]
adrp x10, _strt_ind@GOTPAGE
ldr x10, [x10, _strt_ind@GOTPAGEOFF]
ldr x10, [x10]
str x8, [x9, x10, lsl #3]
stur xzr, [x29, #-32]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldur x8, [x29, #-32]
ldr x9, [sp, #32]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_12
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #28]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #28]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #40]
ldrsw x9, [sp, #28]
ldr x8, [x8, x9, lsl #3]
str x8, [sp, #16]
ldr x8, [sp, #16]
adrp x9, _strt_ind@GOTPAGE
ldr x9, [x9, _strt_ind@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
b LBB0_7
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #16]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x0, _g_rand@GOTPAGE
ldr x0, [x0, _g_rand@GOTPAGEOFF]
bl _FUZ_rand
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
adrp x9, _rangetable@GOTPAGE
ldr x9, [x9, _rangetable@GOTPAGEOFF]
ldr x9, [x9]
ldr x10, [sp, #16]
ldr w10, [x9, x10, lsl #2]
sdiv w9, w8, w10
mul w9, w9, w10
subs w1, w8, w9
bl _rangeMap
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [sp, #16]
str x0, [x8, x9, lsl #3]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_3
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldur x0, [x29, #-16]
ldur x8, [x29, #-8]
ldr x1, [x8]
bl _memoTableGet
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
b LBB0_12
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
add x8, x8, #1
stur x8, [x29, #-32]
b LBB0_1
LBB0_12:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.comm _strt_ind,8,3 ; @strt_ind
.comm _NUM_PARAMS,4,2 ; @NUM_PARAMS
.comm _g_rand,4,2 ; @g_rand
.comm _rangetable,8,3 ; @rangetable
.no_dead_strip _randomConstrainedParams
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function randomConstrainedParams
_randomConstrainedParams: ## @randomConstrainedParams
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -16(%rbp), %rax
movq -24(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -48(%rbp)
movq 8(%rax), %rax
movq %rax, -40(%rbp)
movq -24(%rbp), %rdx
movq -8(%rbp), %rax
movq (%rax), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq $0, -32(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
movq -32(%rbp), %rax
cmpq -48(%rbp), %rax
jae LBB0_12
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -52(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -52(%rbp), %eax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpl (%rcx), %eax
jge LBB0_8
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movq -40(%rbp), %rax
movslq -52(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -64(%rbp)
movq -64(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_7
LBB0_6: ## in Loop: Header=BB0_3 Depth=2
movq -64(%rbp), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movq _g_rand@GOTPCREL(%rip), %rdi
callq _FUZ_rand
movq -72(%rbp), %rdi ## 8-byte Reload
movq _rangetable@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq -64(%rbp), %rsi
cltd
idivl (%rcx,%rsi,4)
movl %edx, %esi
callq _rangeMap
movq %rax, %rdx
movq -8(%rbp), %rax
movq (%rax), %rax
movq -64(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
LBB0_7: ## in Loop: Header=BB0_3 Depth=2
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_3
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rdi
movq -8(%rbp), %rax
movq (%rax), %rsi
callq _memoTableGet
cmpl $0, %eax
jne LBB0_10
## %bb.9:
jmp LBB0_12
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_1
LBB0_12:
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _strt_ind,8,3 ## @strt_ind
.comm _NUM_PARAMS,4,2 ## @NUM_PARAMS
.comm _g_rand,4,2 ## @g_rand
.comm _rangetable,8,3 ## @rangetable
.no_dead_strip _randomConstrainedParams
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_randomConstrainedParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function randomParams
_randomParams: ; @randomParams
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str xzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
str x8, [sp, #8] ; 8-byte Folded Spill
adrp x0, _g_rand@GOTPAGE
ldr x0, [x0, _g_rand@GOTPAGEOFF]
bl _FUZ_rand
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
adrp x9, _rangetable@GOTPAGE
ldr x9, [x9, _rangetable@GOTPAGEOFF]
ldr x9, [x9]
ldr x10, [sp, #16]
ldr w10, [x9, x10, lsl #2]
sdiv w9, w8, w10
mul w9, w9, w10
subs w1, w8, w9
bl _rangeMap
ldur x8, [x29, #-8]
ldr x9, [sp, #16]
str w0, [x8, x9, lsl #2]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_4:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _g_rand,4,2 ; @g_rand
.comm _rangetable,8,3 ; @rangetable
.no_dead_strip _randomParams
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function randomParams
_randomParams: ## @randomParams
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movq _g_rand@GOTPCREL(%rip), %rdi
callq _FUZ_rand
movq -24(%rbp), %rdi ## 8-byte Reload
movq _rangetable@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq -16(%rbp), %rsi
cltd
idivl (%rcx,%rsi,4)
movl %edx, %esi
callq _rangeMap
movl %eax, %edx
movq -8(%rbp), %rax
movq -16(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_4:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _g_rand,4,2 ## @g_rand
.comm _rangetable,8,3 ## @rangetable
.no_dead_strip _randomParams
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_randomParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function rangeMap
_rangeMap: ; @rangeMap
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur x0, [x29, #-16]
stur w1, [x29, #-20]
ldur w0, [x29, #-20]
adrp x8, _rangetable@GOTPAGE
ldr x8, [x8, _rangetable@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x8, [x8, x9, lsl #3]
; kill: def $w8 killed $w8 killed $x8
subs w1, w8, #1
bl _MIN
mov w1, #0
bl _MAX
; implicit-def: $x8
mov x8, x0
sxtw x8, w8
str x8, [sp, #16]
ldur x8, [x29, #-16]
subs x8, x8, #128
str x8, [sp, #8] ; 8-byte Folded Spill
subs x8, x8, #8
cset w8, hi
tbnz w8, #0, LBB0_6
; %bb.1:
ldr x11, [sp, #8] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_2:
adrp x8, _mintable@GOTPAGE
ldr x8, [x8, _mintable@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-16]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #16]
add x8, x8, x9
stur x8, [x29, #-8]
b LBB0_8
LBB0_3:
adrp x8, _tlen_table@GOTPAGE
ldr x8, [x8, _tlen_table@GOTPAGEOFF]
ldr x8, [x8]
ldr x9, [sp, #16]
ldr x8, [x8, x9, lsl #3]
stur x8, [x29, #-8]
b LBB0_8
LBB0_4:
ldr x8, [sp, #16]
subs x8, x8, #1
stur x8, [x29, #-8]
b LBB0_8
LBB0_5:
b LBB0_6
LBB0_6:
b LBB0_7
LBB0_7:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
mov w0, #0
bl _assert
mov x8, #-1
stur x8, [x29, #-8]
b LBB0_8
LBB0_8:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_2-Ltmp0
.long LBB0_3-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_2-Ltmp0
.long LBB0_5-Ltmp0
; -- End function
.comm _rangetable,8,3 ; @rangetable
.comm _mintable,8,3 ; @mintable
.comm _tlen_table,8,3 ; @tlen_table
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error, not a valid param\n "
.no_dead_strip _rangeMap
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function rangeMap
_rangeMap: ## @rangeMap
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl -20(%rbp), %edi
movq _rangetable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movl (%rax,%rcx,8), %esi
decl %esi
callq _MIN
movl %eax, %edi
xorl %esi, %esi
callq _MAX
cltq
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
addq $-128, %rax
movq %rax, -40(%rbp) ## 8-byte Spill
subq $8, %rax
ja LBB0_5
## %bb.8:
movq -40(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_1:
movq _mintable@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addq -32(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_2:
movq _tlen_table@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_3:
movq -32(%rbp), %rax
subq $1, %rax
movq %rax, -8(%rbp)
jmp LBB0_7
LBB0_4:
jmp LBB0_5
LBB0_5:
jmp LBB0_6
LBB0_6:
leaq L_.str(%rip), %rdi
callq _DISPLAY
xorl %edi, %edi
callq _assert
movq $-1, -8(%rbp)
LBB0_7:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_2, LBB0_2-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_1
.long L0_0_set_2
.long L0_0_set_1
.long L0_0_set_1
.long L0_0_set_1
.long L0_0_set_1
.long L0_0_set_3
.long L0_0_set_1
.long L0_0_set_4
.end_data_region
## -- End function
.comm _rangetable,8,3 ## @rangetable
.comm _mintable,8,3 ## @mintable
.comm _tlen_table,8,3 ## @tlen_table
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error, not a valid param\n "
.no_dead_strip _rangeMap
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_rangeMap.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function readDoubleFromChar
_readDoubleFromChar: ; @readDoubleFromChar
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
movi d0, #0000000000000000
str d0, [sp, #24]
fmov d0, #10.00000000
str d0, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr d0, [sp, #24]
fmov d1, #10.00000000
fmul d0, d0, d1
str d0, [sp, #24]
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #48
scvtf d1, w8
ldr d0, [sp, #24]
fadd d0, d0, d1
str d0, [sp, #24]
ldr x9, [sp, #32]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_1
LBB0_5:
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #46
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr d0, [sp, #24]
str d0, [sp, #40]
b LBB0_13
LBB0_7:
ldr x9, [sp, #32]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_8
LBB0_8: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_8 Depth=1
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_8 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_8 Depth=1
ldr x8, [sp, #32]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #48
scvtf d0, w8
ldr d1, [sp, #16]
fdiv d1, d0, d1
ldr d0, [sp, #24]
fadd d0, d0, d1
str d0, [sp, #24]
ldr d0, [sp, #16]
fmov d1, #10.00000000
fmul d0, d0, d1
str d0, [sp, #16]
ldr x9, [sp, #32]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_8
LBB0_12:
ldr d0, [sp, #24]
str d0, [sp, #40]
b LBB0_13
LBB0_13:
ldr d0, [sp, #40]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _readDoubleFromChar
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function readDoubleFromChar
LCPI0_0:
.quad 0x4024000000000000 ## double 10
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_readDoubleFromChar: ## @readDoubleFromChar
.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, -16(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -24(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -33(%rbp) ## 1-byte Spill
jl LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -33(%rbp) ## 1-byte Spill
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movb -33(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_4
jmp LBB0_5
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -24(%rbp), %xmm0
movsd %xmm0, -24(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
subl $48, %eax
cvtsi2sd %eax, %xmm0
addsd -24(%rbp), %xmm0
movsd %xmm0, -24(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
jmp LBB0_1
LBB0_5:
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $46, %eax
je LBB0_7
## %bb.6:
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -8(%rbp)
jmp LBB0_13
LBB0_7:
movq -16(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_8: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -34(%rbp) ## 1-byte Spill
jl LBB0_10
## %bb.9: ## in Loop: Header=BB0_8 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -34(%rbp) ## 1-byte Spill
LBB0_10: ## in Loop: Header=BB0_8 Depth=1
movb -34(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_11
jmp LBB0_12
LBB0_11: ## in Loop: Header=BB0_8 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
subl $48, %eax
cvtsi2sd %eax, %xmm0
divsd -32(%rbp), %xmm0
addsd -24(%rbp), %xmm0
movsd %xmm0, -24(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -32(%rbp), %xmm0
movsd %xmm0, -32(%rbp)
movq -16(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
jmp LBB0_8
LBB0_12:
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -8(%rbp)
LBB0_13:
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _readDoubleFromChar
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_readDoubleFromChar.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function readU32FromChar
_readU32FromChar: ; @readU32FromChar
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str x0, [sp, #24]
adrp x9, l___const.readU32FromChar.errorMsg@PAGE
add x9, x9, l___const.readU32FromChar.errorMsg@PAGEOFF
ldr q0, [x9]
add x8, sp, #32
str q0, [sp, #32]
ldur q0, [x9, #15]
stur q0, [x8, #15]
mov w8, #1
str w8, [sp, #20]
str wzr, [sp, #16]
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #-1
str w8, [sp, #20]
ldr x9, [sp, #24]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_2
LBB0_2:
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, lt
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #57
cset w8, le
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbz w8, #0, LBB0_9
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
mov w9, #39320
movk w9, #6553, lsl #16
str w9, [sp, #12]
ldr w8, [sp, #16]
subs w8, w8, w9
cset w8, ls
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
add x0, sp, #32
bl _errorOut
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #16]
mov w9, #10
mul w8, w8, w9
str w8, [sp, #16]
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, ge
and w0, w8, #0x1
bl _assert
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w9, w8, #48
ldr w8, [sp, #16]
add w8, w8, w9
str w8, [sp, #16]
ldr x9, [sp, #24]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_3
LBB0_9:
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #75
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_11
LBB0_11:
mov w8, #4194303
str w8, [sp, #8]
ldr w8, [sp, #16]
subs w8, w8, #1024, lsl #12 ; =4194304
cset w8, lo
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
add x0, sp, #32
bl _errorOut
b LBB0_13
LBB0_13:
ldr w8, [sp, #16]
lsl w8, w8, #10
str w8, [sp, #16]
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #77
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_14
LBB0_14:
ldr w8, [sp, #16]
subs w8, w8, #1024, lsl #12 ; =4194304
cset w8, lo
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
add x0, sp, #32
bl _errorOut
b LBB0_16
LBB0_16:
ldr w8, [sp, #16]
lsl w8, w8, #10
str w8, [sp, #16]
b LBB0_17
LBB0_17:
ldr x9, [sp, #24]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #105
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
ldr x9, [sp, #24]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_19
LBB0_19:
ldr x8, [sp, #24]
ldr x8, [x8]
ldrsb w8, [x8]
subs w8, w8, #66
cset w8, ne
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20:
ldr x9, [sp, #24]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
b LBB0_21
LBB0_21:
b LBB0_22
LBB0_22:
ldr w8, [sp, #16]
ldr w9, [sp, #20]
mul w8, w8, w9
str w8, [sp] ; 4-byte Folded Spill
ldur x9, [x29, #-8]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23:
bl ___stack_chk_fail
LBB0_24:
ldr w0, [sp] ; 4-byte Folded Reload
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l___const.readU32FromChar.errorMsg: ; @__const.readU32FromChar.errorMsg
.asciz "error: numeric value too large"
.no_dead_strip _readU32FromChar
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function readU32FromChar
_readU32FromChar: ## @readU32FromChar
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -56(%rbp)
movq L___const.readU32FromChar.errorMsg(%rip), %rax
movq %rax, -48(%rbp)
movq L___const.readU32FromChar.errorMsg+8(%rip), %rax
movq %rax, -40(%rbp)
movq L___const.readU32FromChar.errorMsg+16(%rip), %rax
movq %rax, -32(%rbp)
movl L___const.readU32FromChar.errorMsg+24(%rip), %eax
movl %eax, -24(%rbp)
movw L___const.readU32FromChar.errorMsg+28(%rip), %ax
movw %ax, -20(%rbp)
movb L___const.readU32FromChar.errorMsg+30(%rip), %al
movb %al, -18(%rbp)
movl $1, -60(%rbp)
movl $0, -64(%rbp)
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB0_2
## %bb.1:
movl $-1, -60(%rbp)
movq -56(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $48, %ecx
movb %al, -73(%rbp) ## 1-byte Spill
jl LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $57, %eax
setle %al
movb %al, -73(%rbp) ## 1-byte Spill
LBB0_5: ## in Loop: Header=BB0_3 Depth=1
movb -73(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB0_6
jmp LBB0_9
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
movl $429496728, -68(%rbp) ## imm = 0x19999998
cmpl $429496728, -64(%rbp) ## imm = 0x19999998
jbe LBB0_8
## %bb.7: ## in Loop: Header=BB0_3 Depth=1
leaq -48(%rbp), %rdi
callq _errorOut
LBB0_8: ## in Loop: Header=BB0_3 Depth=1
imull $10, -64(%rbp), %eax
movl %eax, -64(%rbp)
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $48, %eax
setge %al
andb $1, %al
movzbl %al, %edi
callq _assert
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
subl $48, %eax
addl -64(%rbp), %eax
movl %eax, -64(%rbp)
movq -56(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
jmp LBB0_3
LBB0_9:
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $75, %eax
je LBB0_11
## %bb.10:
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_22
LBB0_11:
movl $4194303, -72(%rbp) ## imm = 0x3FFFFF
cmpl $4194303, -64(%rbp) ## imm = 0x3FFFFF
jbe LBB0_13
## %bb.12:
leaq -48(%rbp), %rdi
callq _errorOut
LBB0_13:
movl -64(%rbp), %eax
shll $10, %eax
movl %eax, -64(%rbp)
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $77, %eax
jne LBB0_17
## %bb.14:
cmpl $4194303, -64(%rbp) ## imm = 0x3FFFFF
jbe LBB0_16
## %bb.15:
leaq -48(%rbp), %rdi
callq _errorOut
LBB0_16:
movl -64(%rbp), %eax
shll $10, %eax
movl %eax, -64(%rbp)
LBB0_17:
movq -56(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $105, %eax
jne LBB0_19
## %bb.18:
movq -56(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_19:
movq -56(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $66, %eax
jne LBB0_21
## %bb.20:
movq -56(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
LBB0_21:
jmp LBB0_22
LBB0_22:
movl -64(%rbp), %eax
imull -60(%rbp), %eax
movl %eax, -80(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_24
## %bb.23:
movl -80(%rbp), %eax ## 4-byte Reload
addq $80, %rsp
popq %rbp
retq
LBB0_24:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
.p2align 4 ## @__const.readU32FromChar.errorMsg
L___const.readU32FromChar.errorMsg:
.asciz "error: numeric value too large"
.no_dead_strip _readU32FromChar
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_readU32FromChar.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function redundantParams
_redundantParams: ; @redundantParams
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
adrp x8, _wlog_ind@GOTPAGE
ldr x8, [x8, _wlog_ind@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
ldur x0, [x29, #-8]
bl _pvalsToCParams
bl _ZSTD_estimateCStreamSize_usingCParams
ldur x8, [x29, #-16]
subs x8, x0, x8
cset w8, hi
mov w9, #1
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_1
LBB0_1:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x9, [x9]
ldr w8, [x8, x9, lsl #2]
subs w9, w8, #1
mov x8, #1
; kill: def $x9 killed $w9
lsl x8, x8, x9
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x10, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
ldr x9, [x10]
ldr w8, [x8, x9, lsl #2]
adrp x9, _mintable@GOTPAGE
ldr x9, [x9, _mintable@GOTPAGEOFF]
ldr x9, [x9]
ldr x10, [x10]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ne
mov w9, #1
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_3
LBB0_3:
ldr x10, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
adrp x9, _clog_ind@GOTPAGE
ldr x9, [x9, _clog_ind@GOTPAGEOFF]
ldr x9, [x9]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-8]
ldr x10, [x10]
ldr w9, [x9, x10, lsl #2]
ldur x10, [x29, #-8]
adrp x11, _strt_ind@GOTPAGE
ldr x11, [x11, _strt_ind@GOTPAGEOFF]
ldr x11, [x11]
ldr w10, [x10, x11, lsl #2]
adrp x11, _ZSTD_btlazy2@GOTPAGE
ldr x11, [x11, _ZSTD_btlazy2@GOTPAGEOFF]
ldr w11, [x11]
subs w10, w10, w11
cset w10, gt
and w10, w10, #0x1
add w9, w9, w10
subs w8, w8, w9
cset w8, gt
mov w9, #1
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4:
ldur x8, [x29, #-8]
adrp x9, _slog_ind@GOTPAGE
ldr x9, [x9, _slog_ind@GOTPAGEOFF]
ldr x9, [x9]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-8]
adrp x10, _clog_ind@GOTPAGE
ldr x10, [x10, _clog_ind@GOTPAGEOFF]
ldr x10, [x10]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, gt
mov w9, #1
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x10, [sp, #8] ; 8-byte Folded Reload
ldur x8, [x29, #-8]
adrp x9, _hlog_ind@GOTPAGE
ldr x9, [x9, _hlog_ind@GOTPAGEOFF]
ldr x9, [x9]
ldr w8, [x8, x9, lsl #2]
ldur x9, [x29, #-8]
ldr x10, [x10]
ldr w9, [x9, x10, lsl #2]
add w9, w9, #1
subs w8, w8, w9
cset w8, gt
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB0_6
LBB0_6:
ldr w8, [sp, #20] ; 4-byte Folded Reload
and w0, w8, #0x1
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _wlog_ind,8,3 ; @wlog_ind
.comm _mintable,8,3 ; @mintable
.comm _clog_ind,8,3 ; @clog_ind
.comm _strt_ind,8,3 ; @strt_ind
.comm _ZSTD_btlazy2,4,2 ; @ZSTD_btlazy2
.comm _slog_ind,8,3 ; @slog_ind
.comm _hlog_ind,8,3 ; @hlog_ind
.no_dead_strip _redundantParams
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function redundantParams
_redundantParams: ## @redundantParams
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rdi
callq _pvalsToCParams
movl %eax, %edi
callq _ZSTD_estimateCStreamSize_usingCParams
movq %rax, %rcx
movb $1, %al
cmpq -16(%rbp), %rcx
movb %al, -25(%rbp) ## 1-byte Spill
ja LBB0_6
## %bb.1:
movq -8(%rbp), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movl (%rax,%rcx,4), %eax
subl $1, %eax
movl %eax, %eax
movl %eax, %ecx
movl $1, %eax
## kill: def $cl killed $rcx
shlq %cl, %rax
cmpq -24(%rbp), %rax
jb LBB0_3
## %bb.2:
movq -8(%rbp), %rax
movq _wlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movl (%rax,%rcx,4), %ecx
movq _mintable@GOTPCREL(%rip), %rax
movq (%rax), %rdx
movq _wlog_ind@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movb $1, %al
cmpl (%rdx,%rsi,4), %ecx
movb %al, -25(%rbp) ## 1-byte Spill
jne LBB0_6
LBB0_3:
movq -8(%rbp), %rax
movq _clog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movl (%rax,%rcx,4), %ecx
movq -8(%rbp), %rax
movq _wlog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl (%rax,%rdx,4), %edx
movq -8(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rsi
movq (%rsi), %rsi
movl (%rax,%rsi,4), %eax
movq _ZSTD_btlazy2@GOTPCREL(%rip), %rsi
cmpl (%rsi), %eax
setg %al
andb $1, %al
movzbl %al, %eax
addl %eax, %edx
movb $1, %al
cmpl %edx, %ecx
movb %al, -25(%rbp) ## 1-byte Spill
jg LBB0_6
## %bb.4:
movq -8(%rbp), %rax
movq _slog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movl (%rax,%rcx,4), %ecx
movq -8(%rbp), %rdx
movq _clog_ind@GOTPCREL(%rip), %rax
movq (%rax), %rsi
movb $1, %al
cmpl (%rdx,%rsi,4), %ecx
movb %al, -25(%rbp) ## 1-byte Spill
jg LBB0_6
## %bb.5:
movq -8(%rbp), %rax
movq _hlog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movl (%rax,%rcx,4), %eax
movq -8(%rbp), %rcx
movq _wlog_ind@GOTPCREL(%rip), %rdx
movq (%rdx), %rdx
movl (%rcx,%rdx,4), %ecx
addl $1, %ecx
cmpl %ecx, %eax
setg %al
movb %al, -25(%rbp) ## 1-byte Spill
LBB0_6:
movb -25(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _wlog_ind,8,3 ## @wlog_ind
.comm _mintable,8,3 ## @mintable
.comm _clog_ind,8,3 ## @clog_ind
.comm _strt_ind,8,3 ## @strt_ind
.comm _ZSTD_btlazy2,4,2 ## @ZSTD_btlazy2
.comm _slog_ind,8,3 ## @slog_ind
.comm _hlog_ind,8,3 ## @hlog_ind
.no_dead_strip _redundantParams
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_redundantParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function relaxTarget
_relaxTarget: ; @relaxTarget
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp]
str x1, [sp, #8]
mov x8, #-1
str x8, [sp, #8]
ldr w8, [sp]
adrp x10, _g_strictness@GOTPAGE
ldr x10, [x10, _g_strictness@GOTPAGEOFF]
ldr w9, [x10]
mul w8, w8, w9
mov w9, #100
sdiv w8, w8, w9
str w8, [sp]
ldr w8, [sp, #4]
ldr w10, [x10]
mul w8, w8, w10
sdiv w8, w8, w9
str w8, [sp, #4]
ldr q0, [sp]
str q0, [sp, #16]
ldr x0, [sp, #16]
ldr x1, [sp, #24]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _g_strictness,4,2 ; @g_strictness
.no_dead_strip _relaxTarget
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function relaxTarget
_relaxTarget: ## @relaxTarget
.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, -32(%rbp)
movq %rsi, -24(%rbp)
movq $-1, -24(%rbp)
movl -32(%rbp), %eax
movq _g_strictness@GOTPCREL(%rip), %rcx
movl (%rcx), %edx
imull %edx, %eax
cltq
imulq $1374389535, %rax, %rax ## imm = 0x51EB851F
movq %rax, %rdx
shrq $63, %rdx
## kill: def $edx killed $edx killed $rdx
sarq $37, %rax
## kill: def $eax killed $eax killed $rax
addl %edx, %eax
movl %eax, -32(%rbp)
movl -28(%rbp), %eax
movl (%rcx), %ecx
imull %ecx, %eax
cltq
imulq $1374389535, %rax, %rax ## imm = 0x51EB851F
movq %rax, %rcx
shrq $63, %rcx
## kill: def $ecx killed $ecx killed $rcx
sarq $37, %rax
## kill: def $eax killed $eax killed $rax
addl %ecx, %eax
movl %eax, -28(%rbp)
movups -32(%rbp), %xmm0
movaps %xmm0, -16(%rbp)
movq -16(%rbp), %rax
movq -8(%rbp), %rdx
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_strictness,4,2 ## @g_strictness
.no_dead_strip _relaxTarget
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_relaxTarget.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function resultDistLvl
_resultDistLvl: ; @resultDistLvl
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, #40]
str x1, [sp, #48]
str x2, [sp, #24]
str x3, [sp, #32]
ldr w8, [sp, #40]
ldr w9, [sp, #24]
sdiv w8, w8, w9
subs w8, w8, #1
scvtf d0, w8
str d0, [sp, #16]
ldr d0, [sp, #32]
ldr d1, [sp, #48]
fdiv d0, d0, d1
fmov d1, #1.00000000
fsub d0, d0, d1
str d0, [sp, #8]
ldr d0, [sp, #8]
fcmp d0, #0.0
cset w8, mi
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr d0, [sp, #16]
fcmp d0, #0.0
cset w8, pl
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
movi d0, #0000000000000000
str d0, [sp, #56]
b LBB0_4
LBB0_3:
ldr d0, [sp, #8]
adrp x8, _g_ratioMultiplier@GOTPAGE
ldr x8, [x8, _g_ratioMultiplier@GOTPAGEOFF]
ldr d1, [x8]
ldr d2, [sp, #16]
fmadd d0, d0, d1, d2
str d0, [sp, #56]
b LBB0_4
LBB0_4:
ldr d0, [sp, #56]
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _g_ratioMultiplier,8,3 ; @g_ratioMultiplier
.no_dead_strip _resultDistLvl
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function resultDistLvl
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_resultDistLvl: ## @resultDistLvl
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -24(%rbp)
movsd %xmm0, -16(%rbp)
movl %esi, -40(%rbp)
movsd %xmm1, -32(%rbp)
movl -24(%rbp), %eax
cltd
idivl -40(%rbp)
subl $1, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -48(%rbp)
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
divsd -16(%rbp), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
subsd %xmm1, %xmm0
movsd %xmm0, -56(%rbp)
xorps %xmm0, %xmm0
ucomisd -56(%rbp), %xmm0
ja LBB0_2
## %bb.1:
xorps %xmm0, %xmm0
ucomisd -48(%rbp), %xmm0
jbe LBB0_3
LBB0_2:
xorps %xmm0, %xmm0
movsd %xmm0, -8(%rbp)
jmp LBB0_4
LBB0_3:
movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq _g_ratioMultiplier@GOTPCREL(%rip), %rax
movsd (%rax), %xmm2 ## xmm2 = mem[0],zero
movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -8(%rbp)
LBB0_4:
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _g_ratioMultiplier,8,3 ## @g_ratioMultiplier
.no_dead_strip _resultDistLvl
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_resultDistLvl.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function resultScore
lCPI0_0:
.quad 0x3fb999999999999a ; double 0.10000000000000001
.section __TEXT,__text,regular,pure_instructions
.p2align 2
_resultScore: ; @resultScore
.cfi_startproc
; %bb.0:
sub sp, sp, #192
.cfi_def_cfa_offset 192
stp x29, x30, [sp, #176] ; 16-byte Folded Spill
add x29, sp, #176
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x1, [sp, #64] ; 8-byte Folded Spill
stur d0, [x29, #-32]
stur d1, [x29, #-24]
stur d2, [x29, #-16]
stur d3, [x29, #-8]
stur x0, [x29, #-40]
movi d0, #0000000000000000
stur d0, [x29, #-48]
stur d0, [x29, #-56]
stur d0, [x29, #-72]
fmov d0, #1.00000000
stur d0, [x29, #-80]
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
str d0, [sp, #88]
fmov d0, #0.50000000
str d0, [sp, #80]
ldr x8, [x1, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldur d0, [x29, #-32]
ldr d1, [x8, #16]
scvtf d1, d1
fdiv d0, d0, d1
stur d0, [x29, #-48]
b LBB0_2
LBB0_2:
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldur d0, [x29, #-24]
ldr d1, [x8, #8]
scvtf d1, d1
fdiv d0, d0, d1
stur d0, [x29, #-56]
b LBB0_4
LBB0_4:
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr x8, [x8]
adds x8, x8, #1
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #64] ; 8-byte Folded Reload
ldr d0, [x8]
scvtf d0, d0
ldur d1, [x29, #-16]
fdiv d0, d0, d1
stur d0, [x29, #-72]
b LBB0_6
LBB0_6:
ldur d0, [x29, #-40]
ucvtf d0, d0
ldur d1, [x29, #-8]
fdiv d0, d0, d1
stur d0, [x29, #-64]
ldur d0, [x29, #-48]
mov w0, #1
str w0, [sp, #12] ; 4-byte Folded Spill
bl _MIN
ldr w0, [sp, #12] ; 4-byte Folded Reload
str d0, [sp, #16] ; 8-byte Folded Spill
ldur d0, [x29, #-56]
bl _MIN
ldr w0, [sp, #12] ; 4-byte Folded Reload
fmov d1, d0
ldr d0, [sp, #16] ; 8-byte Folded Reload
fadd d0, d0, d1
str d0, [sp, #24] ; 8-byte Folded Spill
ldur d0, [x29, #-72]
bl _MIN
fmov d1, d0
ldr d0, [sp, #24] ; 8-byte Folded Reload
fadd d0, d0, d1
ldur d1, [x29, #-64]
fmov d2, #0.50000000
fmul d2, d1, d2
fmov d1, #1.00000000
fmadd d0, d0, d1, d2
str d0, [sp, #48] ; 8-byte Folded Spill
ldur d0, [x29, #-48]
bl _log
mov x1, x0
mov w0, #0
str w0, [sp, #44] ; 4-byte Folded Spill
bl _MAX
str d0, [sp, #32] ; 8-byte Folded Spill
ldur d0, [x29, #-56]
bl _log
mov x1, x0
ldr w0, [sp, #44] ; 4-byte Folded Reload
bl _MAX
fmov d1, d0
ldr d0, [sp, #32] ; 8-byte Folded Reload
fadd d0, d0, d1
str d0, [sp, #56] ; 8-byte Folded Spill
ldur d0, [x29, #-72]
bl _log
mov x1, x0
ldr w0, [sp, #44] ; 4-byte Folded Reload
bl _MAX
ldr d2, [sp, #48] ; 8-byte Folded Reload
fmov d1, d0
ldr d0, [sp, #56] ; 8-byte Folded Reload
fadd d0, d0, d1
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmadd d0, d0, d1, d2
str d0, [sp, #72]
ldr d0, [sp, #72]
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
; -- End function
.no_dead_strip _resultScore
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function resultScore
LCPI0_0:
.quad 0x3fe0000000000000 ## double 0.5
LCPI0_1:
.quad 0x3fb999999999999a ## double 0.10000000000000001
LCPI0_2:
.quad 0x3ff0000000000000 ## double 1
.section __TEXT,__literal16,16byte_literals
.p2align 4
LCPI0_3:
.long 1127219200 ## 0x43300000
.long 1160773632 ## 0x45300000
.long 0 ## 0x0
.long 0 ## 0x0
LCPI0_4:
.quad 0x4330000000000000 ## double 4503599627370496
.quad 0x4530000000000000 ## double 1.9342813113834067E+25
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_resultScore: ## @resultScore
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
leaq 48(%rbp), %rax
movq %rax, -88(%rbp) ## 8-byte Spill
leaq 16(%rbp), %rcx
movq %rcx, -80(%rbp) ## 8-byte Spill
movq %rdi, -8(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -16(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -24(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -40(%rbp)
movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -48(%rbp)
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -56(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -64(%rbp)
cmpq $0, 16(%rax)
je LBB0_2
## %bb.1:
movq -88(%rbp), %rax ## 8-byte Reload
movq -80(%rbp), %rcx ## 8-byte Reload
movsd (%rcx), %xmm0 ## xmm0 = mem[0],zero
cvtsi2sdq 16(%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -16(%rbp)
LBB0_2:
movq -88(%rbp), %rax ## 8-byte Reload
cmpq $0, 8(%rax)
je LBB0_4
## %bb.3:
movq -88(%rbp), %rax ## 8-byte Reload
movq -80(%rbp), %rcx ## 8-byte Reload
movsd 8(%rcx), %xmm0 ## xmm0 = mem[0],zero
cvtsi2sdq 8(%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -24(%rbp)
LBB0_4:
movq -88(%rbp), %rax ## 8-byte Reload
cmpq $-1, (%rax)
je LBB0_6
## %bb.5:
movq -80(%rbp), %rax ## 8-byte Reload
movq -88(%rbp), %rcx ## 8-byte Reload
cvtsi2sdq (%rcx), %xmm0
divsd 16(%rax), %xmm0
movsd %xmm0, -40(%rbp)
LBB0_6:
movq -80(%rbp), %rax ## 8-byte Reload
movaps LCPI0_3(%rip), %xmm1 ## xmm1 = [1127219200,1160773632,0,0]
movq -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
punpckldq %xmm1, %xmm0 ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd LCPI0_4(%rip), %xmm1 ## xmm1 = [4.503599627370496E+15,1.9342813113834067E+25]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 ## xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
divsd 24(%rax), %xmm0
movsd %xmm0, -32(%rbp)
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movl $1, %edi
callq _MIN
movsd %xmm0, -128(%rbp) ## 8-byte Spill
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movl $1, %edi
callq _MIN
movaps %xmm0, %xmm1
movsd -128(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
addsd %xmm1, %xmm0
movsd %xmm0, -120(%rbp) ## 8-byte Spill
movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero
movl $1, %edi
callq _MIN
movaps %xmm0, %xmm1
movsd -120(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
addsd %xmm1, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd -32(%rbp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, -104(%rbp) ## 8-byte Spill
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
callq _log
movl %eax, %esi
xorl %edi, %edi
callq _MAX
movsd %xmm0, -112(%rbp) ## 8-byte Spill
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
callq _log
movl %eax, %esi
xorl %edi, %edi
callq _MAX
movaps %xmm0, %xmm1
movsd -112(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
addsd %xmm1, %xmm0
movsd %xmm0, -96(%rbp) ## 8-byte Spill
movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero
callq _log
movl %eax, %esi
xorl %edi, %edi
callq _MAX
movsd -104(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movaps %xmm0, %xmm2
movsd -96(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
addsd %xmm2, %xmm0
movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -72(%rbp)
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
addq $128, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _resultScore
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_resultScore.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function speedSizeCompare
_speedSizeCompare: ; @speedSizeCompare
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #24]
str x1, [sp, #32]
str x2, [sp, #8]
str x3, [sp, #16]
ldr x8, [sp, #24]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldr x8, [sp, #32]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, lt
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
adrp x8, _BETTER_RESULT@GOTPAGE
ldr x8, [x8, _BETTER_RESULT@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #44]
b LBB0_7
LBB0_3:
adrp x8, _SPEED_RESULT@GOTPAGE
ldr x8, [x8, _SPEED_RESULT@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #44]
b LBB0_7
LBB0_4:
ldr x8, [sp, #32]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, gt
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
adrp x8, _WORSE_RESULT@GOTPAGE
ldr x8, [x8, _WORSE_RESULT@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #44]
b LBB0_7
LBB0_6:
adrp x8, _SIZE_RESULT@GOTPAGE
ldr x8, [x8, _SIZE_RESULT@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #44]
b LBB0_7
LBB0_7:
ldr w0, [sp, #44]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _BETTER_RESULT,4,2 ; @BETTER_RESULT
.comm _SPEED_RESULT,4,2 ; @SPEED_RESULT
.comm _WORSE_RESULT,4,2 ; @WORSE_RESULT
.comm _SIZE_RESULT,4,2 ; @SIZE_RESULT
.no_dead_strip _speedSizeCompare
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function speedSizeCompare
_speedSizeCompare: ## @speedSizeCompare
.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, -24(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -40(%rbp)
movq %rcx, -32(%rbp)
movq -24(%rbp), %rax
cmpq -40(%rbp), %rax
jge LBB0_4
## %bb.1:
movq -16(%rbp), %rax
cmpq -32(%rbp), %rax
jl LBB0_3
## %bb.2:
movq _BETTER_RESULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_7
LBB0_3:
movq _SPEED_RESULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_7
LBB0_4:
movq -16(%rbp), %rax
cmpq -32(%rbp), %rax
jg LBB0_6
## %bb.5:
movq _WORSE_RESULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
jmp LBB0_7
LBB0_6:
movq _SIZE_RESULT@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -4(%rbp)
LBB0_7:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _BETTER_RESULT,4,2 ## @BETTER_RESULT
.comm _SPEED_RESULT,4,2 ## @SPEED_RESULT
.comm _WORSE_RESULT,4,2 ## @WORSE_RESULT
.comm _SIZE_RESULT,4,2 ## @SIZE_RESULT
.no_dead_strip _speedSizeCompare
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_speedSizeCompare.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function sanitizeParams
_sanitizeParams: ; @sanitizeParams
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
adrp x9, _strt_ind@GOTPAGE
ldr x9, [x9, _strt_ind@GOTPAGEOFF]
str x9, [sp, #8] ; 8-byte Folded Spill
str x0, [sp, #16]
ldr x8, [sp, #16]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
adrp x9, _ZSTD_fast@GOTPAGE
ldr x9, [x9, _ZSTD_fast@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x9, [sp, #16]
adrp x8, _clog_ind@GOTPAGE
ldr x8, [x8, _clog_ind@GOTPAGEOFF]
ldr x10, [x8]
mov x8, #0
str x8, [x9, x10, lsl #3]
ldr x9, [sp, #16]
adrp x10, _slog_ind@GOTPAGE
ldr x10, [x10, _slog_ind@GOTPAGEOFF]
ldr x10, [x10]
str x8, [x9, x10, lsl #3]
b LBB0_2
LBB0_2:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #16]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
adrp x9, _ZSTD_dfast@GOTPAGE
ldr x9, [x9, _ZSTD_dfast@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x9, [sp, #16]
adrp x8, _slog_ind@GOTPAGE
ldr x8, [x8, _slog_ind@GOTPAGEOFF]
ldr x10, [x8]
mov x8, #0
str x8, [x9, x10, lsl #3]
b LBB0_4
LBB0_4:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #16]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
adrp x9, _ZSTD_btopt@GOTPAGE
ldr x9, [x9, _ZSTD_btopt@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5:
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #16]
ldr x9, [x9]
ldr x8, [x8, x9, lsl #3]
adrp x9, _ZSTD_fast@GOTPAGE
ldr x9, [x9, _ZSTD_fast@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x9, [sp, #16]
adrp x8, _tlen_ind@GOTPAGE
ldr x8, [x8, _tlen_ind@GOTPAGEOFF]
ldr x10, [x8]
mov x8, #0
str x8, [x9, x10, lsl #3]
b LBB0_7
LBB0_7:
ldr x8, [sp, #16]
str x8, [sp, #24]
ldr x0, [sp, #24]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.comm _strt_ind,8,3 ; @strt_ind
.comm _ZSTD_fast,8,3 ; @ZSTD_fast
.comm _clog_ind,8,3 ; @clog_ind
.comm _slog_ind,8,3 ; @slog_ind
.comm _ZSTD_dfast,8,3 ; @ZSTD_dfast
.comm _ZSTD_btopt,8,3 ; @ZSTD_btopt
.comm _tlen_ind,8,3 ; @tlen_ind
.no_dead_strip _sanitizeParams
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function sanitizeParams
_sanitizeParams: ## @sanitizeParams
.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, -16(%rbp)
movq -16(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _ZSTD_fast@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_2
## %bb.1:
movq -16(%rbp), %rax
movq _clog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq $0, (%rax,%rcx,8)
movq -16(%rbp), %rax
movq _slog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq $0, (%rax,%rcx,8)
LBB0_2:
movq -16(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _ZSTD_dfast@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.3:
movq -16(%rbp), %rax
movq _slog_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq $0, (%rax,%rcx,8)
LBB0_4:
movq -16(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _ZSTD_btopt@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jge LBB0_7
## %bb.5:
movq -16(%rbp), %rax
movq _strt_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq _ZSTD_fast@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_7
## %bb.6:
movq -16(%rbp), %rax
movq _tlen_ind@GOTPCREL(%rip), %rcx
movq (%rcx), %rcx
movq $0, (%rax,%rcx,8)
LBB0_7:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _strt_ind,8,3 ## @strt_ind
.comm _ZSTD_fast,8,3 ## @ZSTD_fast
.comm _clog_ind,8,3 ## @clog_ind
.comm _slog_ind,8,3 ## @slog_ind
.comm _ZSTD_dfast,8,3 ## @ZSTD_dfast
.comm _ZSTD_btopt,8,3 ## @ZSTD_btopt
.comm _tlen_ind,8,3 ## @tlen_ind
.no_dead_strip _sanitizeParams
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_sanitizeParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function sanitizeVarArray
_sanitizeVarArray: ; @sanitizeVarArray
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
adrp x8, _ZSTD_fast@GOTPAGE
ldr x8, [x8, _ZSTD_fast@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
str x0, [sp, #56]
str x1, [sp, #48]
str x2, [sp, #40]
str x3, [sp, #32]
str xzr, [sp, #16]
str xzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldr x9, [sp, #48]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_14
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40]
ldr x9, [sp, #24]
ldr x8, [x8, x9, lsl #3]
adrp x9, _clog_ind@GOTPAGE
ldr x9, [x9, _clog_ind@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #32]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40]
ldr x9, [sp, #24]
ldr x8, [x8, x9, lsl #3]
adrp x9, _slog_ind@GOTPAGE
ldr x9, [x9, _slog_ind@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #32]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40]
ldr x9, [sp, #24]
ldr x8, [x8, x9, lsl #3]
adrp x9, _slog_ind@GOTPAGE
ldr x9, [x9, _slog_ind@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
adrp x9, _ZSTD_dfast@GOTPAGE
ldr x9, [x9, _ZSTD_dfast@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40]
ldr x9, [sp, #24]
ldr x8, [x8, x9, lsl #3]
adrp x9, _tlen_ind@GOTPAGE
ldr x9, [x9, _tlen_ind@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #32]
adrp x9, _ZSTD_btopt@GOTPAGE
ldr x9, [x9, _ZSTD_btopt@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldr x9, [sp, #8] ; 8-byte Folded Reload
ldr x8, [sp, #32]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40]
ldr x9, [sp, #24]
ldr x8, [x8, x9, lsl #3]
ldr x9, [sp, #56]
ldr x10, [sp, #16]
str x8, [x9, x10, lsl #3]
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_1
LBB0_14:
ldr x0, [sp, #16]
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _clog_ind,8,3 ; @clog_ind
.comm _ZSTD_fast,8,3 ; @ZSTD_fast
.comm _slog_ind,8,3 ; @slog_ind
.comm _ZSTD_dfast,8,3 ; @ZSTD_dfast
.comm _tlen_ind,8,3 ; @tlen_ind
.comm _ZSTD_btopt,8,3 ; @ZSTD_btopt
.no_dead_strip _sanitizeVarArray
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function sanitizeVarArray
_sanitizeVarArray: ## @sanitizeVarArray
.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, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq $0, -48(%rbp)
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -40(%rbp), %rax
cmpq -16(%rbp), %rax
jae LBB0_14
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _clog_ind@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq _ZSTD_fast@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_12
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _slog_ind@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq _ZSTD_fast@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_12
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _slog_ind@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq _ZSTD_dfast@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
je LBB0_12
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _tlen_ind@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_11
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq _ZSTD_btopt@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jge LBB0_11
## %bb.10: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq _ZSTD_fast@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_12
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
movq -40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -8(%rbp), %rax
movq -48(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -48(%rbp), %rax
addq $1, %rax
movq %rax, -48(%rbp)
LBB0_12: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_13
LBB0_13: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_14:
movq -48(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _clog_ind,8,3 ## @clog_ind
.comm _ZSTD_fast,8,3 ## @ZSTD_fast
.comm _slog_ind,8,3 ## @slog_ind
.comm _ZSTD_dfast,8,3 ## @ZSTD_dfast
.comm _tlen_ind,8,3 ## @tlen_ind
.comm _ZSTD_btopt,8,3 ## @ZSTD_btopt
.no_dead_strip _sanitizeVarArray
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_sanitizeVarArray.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function usage
_usage: ; @usage
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Usage :\n"
l_.str.1: ; @.str.1
.asciz " %s [arg] file\n"
l_.str.2: ; @.str.2
.asciz "Arguments :\n"
l_.str.3: ; @.str.3
.asciz " file : path to the file used as reference (if none, generates a compressible sample)\n"
l_.str.4: ; @.str.4
.asciz " -H/-h : Help (this text + advanced options)\n"
.no_dead_strip _usage
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function usage
_usage: ## @usage
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq -8(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage :\n"
L_.str.1: ## @.str.1
.asciz " %s [arg] file\n"
L_.str.2: ## @.str.2
.asciz "Arguments :\n"
L_.str.3: ## @.str.3
.asciz " file : path to the file used as reference (if none, generates a compressible sample)\n"
L_.str.4: ## @.str.4
.asciz " -H/-h : Help (this text + advanced options)\n"
.no_dead_strip _usage
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_usage.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function usage_advanced
lCPI0_0:
.quad 0x40ac200000000000 ; double 3600
.section __TEXT,__text,regular,pure_instructions
.p2align 2
_usage_advanced: ; @usage_advanced
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _DISPLAY
adrp x8, _COMPRESSIBILITY_DEFAULT@GOTPAGE
ldr x8, [x8, _COMPRESSIBILITY_DEFAULT@GOTPAGEOFF]
ldr w8, [x8]
mov w9, #100
mul w10, w8, w9
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _DISPLAY
adrp x8, _g_timeLimit_s@GOTPAGE
ldr x8, [x8, _g_timeLimit_s@GOTPAGEOFF]
ldr x9, [x8]
ldr d0, [x8]
scvtf d0, d0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
mov x8, sp
str x9, [x8]
str d0, [x8, #8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _DISPLAY
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _DISPLAY
mov w0, #0
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\nAdvanced options :\n"
l_.str.1: ; @.str.1
.asciz " -T# : set level 1 speed objective \n"
l_.str.2: ; @.str.2
.asciz " -B# : cut input into blocks of size # (default : single block) \n"
l_.str.3: ; @.str.3
.asciz " --optimize= : same as -O with more verbose syntax (see README.md)\n"
l_.str.4: ; @.str.4
.asciz " -S : Single run \n"
l_.str.5: ; @.str.5
.asciz " --zstd : Single run, parameter selection same as zstdcli \n"
l_.str.6: ; @.str.6
.asciz " -P# : generated sample compressibility (default : %.1f%%) \n"
.comm _COMPRESSIBILITY_DEFAULT,4,2 ; @COMPRESSIBILITY_DEFAULT
l_.str.7: ; @.str.7
.asciz " -t# : Caps runtime of operation in seconds (default : %u seconds (%.1f hours)) \n"
.comm _g_timeLimit_s,8,3 ; @g_timeLimit_s
l_.str.8: ; @.str.8
.asciz " -v : Prints Benchmarking output\n"
l_.str.9: ; @.str.9
.asciz " -D : Next argument dictionary file\n"
l_.str.10: ; @.str.10
.asciz " -s : Seperate Files\n"
.no_dead_strip _usage_advanced
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function usage_advanced
LCPI0_0:
.quad 0x40ac200000000000 ## double 3600
.section __TEXT,__text,regular,pure_instructions
.p2align 4, 0x90
_usage_advanced: ## @usage_advanced
.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
movb $0, %al
callq _DISPLAY
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _COMPRESSIBILITY_DEFAULT@GOTPCREL(%rip), %rax
imull $100, (%rax), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _DISPLAY
movq _g_timeLimit_s@GOTPCREL(%rip), %rax
movq (%rax), %rax
movl %eax, %esi
movq _g_timeLimit_s@GOTPCREL(%rip), %rax
cvtsi2sdq (%rax), %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
leaq L_.str.7(%rip), %rdi
movb $1, %al
callq _DISPLAY
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _DISPLAY
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _DISPLAY
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\nAdvanced options :\n"
L_.str.1: ## @.str.1
.asciz " -T# : set level 1 speed objective \n"
L_.str.2: ## @.str.2
.asciz " -B# : cut input into blocks of size # (default : single block) \n"
L_.str.3: ## @.str.3
.asciz " --optimize= : same as -O with more verbose syntax (see README.md)\n"
L_.str.4: ## @.str.4
.asciz " -S : Single run \n"
L_.str.5: ## @.str.5
.asciz " --zstd : Single run, parameter selection same as zstdcli \n"
L_.str.6: ## @.str.6
.asciz " -P# : generated sample compressibility (default : %.1f%%) \n"
.comm _COMPRESSIBILITY_DEFAULT,4,2 ## @COMPRESSIBILITY_DEFAULT
L_.str.7: ## @.str.7
.asciz " -t# : Caps runtime of operation in seconds (default : %u seconds (%.1f hours)) \n"
.comm _g_timeLimit_s,8,3 ## @g_timeLimit_s
L_.str.8: ## @.str.8
.asciz " -v : Prints Benchmarking output\n"
L_.str.9: ## @.str.9
.asciz " -D : Next argument dictionary file\n"
L_.str.10: ## @.str.10
.asciz " -s : Seperate Files\n"
.no_dead_strip _usage_advanced
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_usage_advanced.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function variableParams
_variableParams: ; @variableParams
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #40]
str x1, [sp, #32]
str w2, [sp, #28]
str xzr, [sp, #8]
str xzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
adrp x9, _NUM_PARAMS@GOTPAGE
ldr x9, [x9, _NUM_PARAMS@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_9
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #40]
ldr x9, [sp, #16]
ldr x8, [x8, x9, lsl #3]
adrp x9, _PARAM_UNSET@GOTPAGE
ldr x9, [x9, _PARAM_UNSET@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
adrp x9, _fadt_ind@GOTPAGE
ldr x9, [x9, _fadt_ind@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_8
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr x9, [sp, #32]
ldr x10, [sp, #8]
str x8, [x9, x10, lsl #3]
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_9:
ldr x0, [sp, #8]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _NUM_PARAMS,8,3 ; @NUM_PARAMS
.comm _PARAM_UNSET,8,3 ; @PARAM_UNSET
.comm _fadt_ind,8,3 ; @fadt_ind
.no_dead_strip _variableParams
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function variableParams
_variableParams: ## @variableParams
.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, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movq $0, -40(%rbp)
movq $0, -32(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
movq _NUM_PARAMS@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jae LBB0_9
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq _PARAM_UNSET@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_7
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq _fadt_ind@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_6
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -20(%rbp)
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_8
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdx
movq -16(%rbp), %rax
movq -40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_1
LBB0_9:
movq -40(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _NUM_PARAMS,8,3 ## @NUM_PARAMS
.comm _PARAM_UNSET,8,3 ## @PARAM_UNSET
.comm _fadt_ind,8,3 ## @fadt_ind
.no_dead_strip _variableParams
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_paramgrill.c_variableParams.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function fn
_fn: ; @fn
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
str x8, [sp]
ldr x8, [sp]
add x0, x8, #16
bl _ZSTD_pthread_mutex_lock
ldr x8, [sp]
ldr x8, [x8, #8]
ldr x9, [sp]
ldr x9, [x9]
ldr x10, [sp]
ldr x10, [x10, #8]
; kill: def $w8 killed $w8 killed $x8
str w8, [x9, x10, lsl #2]
ldr x9, [sp]
ldr x8, [x9, #8]
add x8, x8, #1
str x8, [x9, #8]
ldr x8, [sp]
add x0, x8, #16
bl _ZSTD_pthread_mutex_unlock
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _fn
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function fn
_fn: ## @fn
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
addq $16, %rdi
callq _ZSTD_pthread_mutex_lock
movq -16(%rbp), %rax
movq 8(%rax), %rax
movl %eax, %edx
movq -16(%rbp), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
movq 8(%rcx), %rcx
movl %edx, (%rax,%rcx,4)
movq -16(%rbp), %rax
movq 8(%rax), %rcx
addq $1, %rcx
movq %rcx, 8(%rax)
movq -16(%rbp), %rdi
addq $16, %rdi
callq _ZSTD_pthread_mutex_unlock
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _fn
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_fn.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
mov x8, x0
mov w0, #0
stur wzr, [x29, #-4]
stur w8, [x29, #-8]
stur x1, [x29, #-16]
mov w1, #1
bl _POOL_create
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_21
LBB0_2:
mov x8, #1
str x8, [sp, #24]
b LBB0_3
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_5 Depth 2
ldr x8, [sp, #24]
subs x8, x8, #4
cset w8, hi
tbnz w8, #0, LBB0_14
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
str xzr, [sp, #16]
b LBB0_5
LBB0_5: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #16]
subs x8, x8, #2
cset w8, hi
tbnz w8, #0, LBB0_12
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=2
ldr x10, [sp, #16]
ldr x8, [sp, #24]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x0, [sp, #24]
ldr x1, [sp, #16]
bl _testOrder
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_21
LBB0_8: ; in Loop: Header=BB0_5 Depth=2
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x0, [sp, #24]
ldr x1, [sp, #16]
bl _testWait
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_21
LBB0_10: ; in Loop: Header=BB0_5 Depth=2
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_5 Depth=2
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_5
LBB0_12: ; in Loop: Header=BB0_3 Depth=1
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_3
LBB0_14:
bl _testThreadReduction
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_21
LBB0_16:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB0_17
LBB0_17:
bl _testAbruptEnding
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_21
LBB0_19:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
b LBB0_20
LBB0_20:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
stur wzr, [x29, #-4]
b LBB0_21
LBB0_21:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "FAIL: should not create POOL with 0 threads\n"
l_.str.1: ; @.str.1
.asciz "queueSize==%u, numThreads=%u \n"
l_.str.2: ; @.str.2
.asciz "FAIL: testOrder\n"
l_.str.3: ; @.str.3
.asciz "SUCCESS: testOrder\n"
l_.str.4: ; @.str.4
.asciz "FAIL: testWait\n"
l_.str.5: ; @.str.5
.asciz "SUCCESS: testWait\n"
l_.str.6: ; @.str.6
.asciz "FAIL: thread reduction not effective \n"
l_.str.7: ; @.str.7
.asciz "SUCCESS: thread reduction effective \n"
l_.str.8: ; @.str.8
.asciz "FAIL: jobs in queue not completed on early end \n"
l_.str.9: ; @.str.9
.asciz "SUCCESS: all jobs in queue completed on early end \n"
l_.str.10: ; @.str.10
.asciz "PASS: all POOL tests\n"
.subsections_via_symbols
|
.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
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
xorl %edi, %edi
movl $1, %esi
callq _POOL_create
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB0_21
LBB0_2:
movq $1, -24(%rbp)
LBB0_3: ## =>This Loop Header: Depth=1
## Child Loop BB0_5 Depth 2
cmpq $4, -24(%rbp)
ja LBB0_14
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq $0, -32(%rbp)
LBB0_5: ## Parent Loop BB0_3 Depth=1
## => This Inner Loop Header: Depth=2
cmpq $2, -32(%rbp)
ja LBB0_12
## %bb.6: ## in Loop: Header=BB0_5 Depth=2
movq -32(%rbp), %rax
movl %eax, %esi
movq -24(%rbp), %rax
movl %eax, %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -24(%rbp), %rdi
movq -32(%rbp), %rsi
callq _testOrder
cmpq $0, %rax
je LBB0_8
## %bb.7:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB0_21
LBB0_8: ## in Loop: Header=BB0_5 Depth=2
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movq -24(%rbp), %rdi
movq -32(%rbp), %rsi
callq _testWait
cmpq $0, %rax
je LBB0_10
## %bb.9:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB0_21
LBB0_10: ## in Loop: Header=BB0_5 Depth=2
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
## %bb.11: ## in Loop: Header=BB0_5 Depth=2
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
jmp LBB0_5
LBB0_12: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_13
LBB0_13: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_3
LBB0_14:
movb $0, %al
callq _testThreadReduction
cmpq $0, %rax
je LBB0_16
## %bb.15:
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB0_21
LBB0_16:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
## %bb.17:
movb $0, %al
callq _testAbruptEnding
cmpq $0, %rax
je LBB0_19
## %bb.18:
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB0_21
LBB0_19:
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
## %bb.20:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -4(%rbp)
LBB0_21:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "FAIL: should not create POOL with 0 threads\n"
L_.str.1: ## @.str.1
.asciz "queueSize==%u, numThreads=%u \n"
L_.str.2: ## @.str.2
.asciz "FAIL: testOrder\n"
L_.str.3: ## @.str.3
.asciz "SUCCESS: testOrder\n"
L_.str.4: ## @.str.4
.asciz "FAIL: testWait\n"
L_.str.5: ## @.str.5
.asciz "SUCCESS: testWait\n"
L_.str.6: ## @.str.6
.asciz "FAIL: thread reduction not effective \n"
L_.str.7: ## @.str.7
.asciz "SUCCESS: thread reduction effective \n"
L_.str.8: ## @.str.8
.asciz "FAIL: jobs in queue not completed on early end \n"
L_.str.9: ## @.str.9
.asciz "SUCCESS: all jobs in queue completed on early end \n"
L_.str.10: ## @.str.10
.asciz "PASS: all POOL tests\n"
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_main.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testAbruptEnding
_testAbruptEnding: ; @testAbruptEnding
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
add x0, sp, #8
str x0, [sp] ; 8-byte Folded Spill
mov w1, #0
mov w2, #4
bl _memset
ldr x0, [sp] ; 8-byte Folded Reload
mov x1, #0
bl _ZSTD_pthread_mutex_init
bl _ASSERT_FALSE
ldr w8, [sp, #8]
mov x0, x8
bl _testAbruptEnding_internal
mov x8, x0
ldr x0, [sp] ; 8-byte Folded Reload
stur w8, [x29, #-4]
bl _ZSTD_pthread_mutex_destroy
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _testAbruptEnding
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testAbruptEnding
_testAbruptEnding: ## @testAbruptEnding
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
leaq -8(%rbp), %rdi
xorl %esi, %esi
movl $4, %edx
callq _memset
leaq -8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _ZSTD_pthread_mutex_init
movl %eax, %edi
callq _ASSERT_FALSE
movl -8(%rbp), %edi
callq _testAbruptEnding_internal
movl %eax, -4(%rbp)
leaq -8(%rbp), %rdi
callq _ZSTD_pthread_mutex_destroy
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _testAbruptEnding
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_testAbruptEnding.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testAbruptEnding_internal
_testAbruptEnding_internal: ; @testAbruptEnding_internal
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
mov w1, #16
stur w1, [x29, #-12]
mov w0, #3
bl _POOL_create
str x0, [sp, #8]
ldr x0, [sp, #8]
bl _ASSERT_TRUE
stur xzr, [x29, #-8]
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
subs w8, w8, #16
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #8]
adrp x1, _waitIncFn@GOTPAGE
ldr x1, [x1, _waitIncFn@GOTPAGEOFF]
sub x2, x29, #8
bl _POOL_add
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_1
LBB0_4:
ldr x0, [sp, #8]
mov w1, #1
bl _POOL_resize
mov w1, #0
str w1, [sp] ; 4-byte Folded Spill
bl _ASSERT_EQ
ldr x0, [sp, #8]
bl _POOL_free
ldur x0, [x29, #-8]
mov w1, #16
bl _ASSERT_EQ
ldr w0, [sp] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _waitIncFn,4,2 ; @waitIncFn
.no_dead_strip _testAbruptEnding_internal
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testAbruptEnding_internal
_testAbruptEnding_internal: ## @testAbruptEnding_internal
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl $16, -12(%rbp)
movl $3, %edi
movl $16, %esi
callq _POOL_create
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _ASSERT_TRUE
movq $0, -8(%rbp)
movl $0, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $16, -28(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rdi
movq _waitIncFn@GOTPCREL(%rip), %rsi
leaq -8(%rbp), %rdx
callq _POOL_add
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_4:
movq -24(%rbp), %rdi
movl $1, %esi
callq _POOL_resize
movq %rax, %rdi
xorl %esi, %esi
callq _ASSERT_EQ
movq -24(%rbp), %rdi
callq _POOL_free
movq -8(%rbp), %rdi
movl $16, %esi
callq _ASSERT_EQ
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _waitIncFn,4,2 ## @waitIncFn
.no_dead_strip _testAbruptEnding_internal
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_testAbruptEnding_internal.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testOrder
_testOrder: ; @testOrder
.cfi_startproc
; %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
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
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _POOL_create
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _ASSERT_TRUE
add x8, sp, #24
str xzr, [sp, #24]
add x0, x8, #16
mov x1, #0
bl _ZSTD_pthread_mutex_init
bl _ASSERT_FALSE
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #16
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #16]
adrp x1, _fn@GOTPAGE
ldr x1, [x1, _fn@GOTPAGEOFF]
add x2, sp, #24
bl _POOL_add
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_4:
ldr x0, [sp, #16]
bl _POOL_free
ldr x1, [sp, #24]
mov x0, #16
bl _ASSERT_EQ
str xzr, [sp]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr x0, [sp]
ldr x8, [sp, #32]
ldr x9, [sp]
ldr x1, [x8, x9, lsl #3]
bl _ASSERT_EQ
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_5
LBB0_8:
add x8, sp, #24
add x0, x8, #16
bl _ZSTD_pthread_mutex_destroy
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.comm _fn,4,2 ; @fn
.no_dead_strip _testOrder
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testOrder
_testOrder: ## @testOrder
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _POOL_create
movq %rax, -48(%rbp)
movq -48(%rbp), %rdi
callq _ASSERT_TRUE
movq $0, -40(%rbp)
leaq -40(%rbp), %rdi
addq $16, %rdi
xorl %eax, %eax
movl %eax, %esi
callq _ZSTD_pthread_mutex_init
movl %eax, %edi
callq _ASSERT_FALSE
movq $0, -56(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpq $16, -56(%rbp)
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -48(%rbp), %rdi
movq _fn@GOTPCREL(%rip), %rsi
leaq -40(%rbp), %rdx
callq _POOL_add
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -56(%rbp), %rax
addq $1, %rax
movq %rax, -56(%rbp)
jmp LBB0_1
LBB0_4:
movq -48(%rbp), %rdi
callq _POOL_free
movq -40(%rbp), %rsi
movl $16, %edi
callq _ASSERT_EQ
movq $0, -64(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -64(%rbp), %rax
cmpq -40(%rbp), %rax
jae LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -64(%rbp), %rdi
movq -32(%rbp), %rax
movq -64(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq _ASSERT_EQ
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -64(%rbp), %rax
addq $1, %rax
movq %rax, -64(%rbp)
jmp LBB0_5
LBB0_8:
leaq -40(%rbp), %rdi
addq $16, %rdi
callq _ZSTD_pthread_mutex_destroy
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _fn,4,2 ## @fn
.no_dead_strip _testOrder
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_testOrder.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testThreadReduction
_testThreadReduction: ; @testThreadReduction
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
mov w0, #4
mov w1, #2
bl _POOL_create
str x0, [sp, #24]
ldr x0, [sp, #24]
bl _ASSERT_TRUE
sub x0, x29, #12
str x0, [sp, #16] ; 8-byte Folded Spill
mov w1, #0
mov w2, #8
bl _memset
ldr x8, [sp, #16] ; 8-byte Folded Reload
add x0, x8, #4
mov x1, #0
str x1, [sp, #8] ; 8-byte Folded Spill
bl _ZSTD_pthread_mutex_init
bl _ASSERT_FALSE
ldr x1, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _ZSTD_pthread_cond_init
bl _ASSERT_FALSE
ldr x0, [sp, #24]
ldur x1, [x29, #-12]
bl _testThreadReduction_internal
ldr x8, [sp, #16] ; 8-byte Folded Reload
stur w0, [x29, #-4]
add x0, x8, #4
bl _ZSTD_pthread_mutex_destroy
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _ZSTD_pthread_cond_destroy
ldr x0, [sp, #24]
bl _POOL_free
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.no_dead_strip _testThreadReduction
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testThreadReduction
_testThreadReduction: ## @testThreadReduction
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $4, %edi
movl $2, %esi
callq _POOL_create
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _ASSERT_TRUE
leaq -16(%rbp), %rdi
xorl %esi, %esi
movl $8, %edx
callq _memset
leaq -16(%rbp), %rdi
addq $4, %rdi
xorl %eax, %eax
movl %eax, %esi
callq _ZSTD_pthread_mutex_init
movl %eax, %edi
callq _ASSERT_FALSE
leaq -16(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _ZSTD_pthread_cond_init
movl %eax, %edi
callq _ASSERT_FALSE
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
callq _testThreadReduction_internal
movl %eax, -4(%rbp)
leaq -16(%rbp), %rdi
addq $4, %rdi
callq _ZSTD_pthread_mutex_destroy
leaq -16(%rbp), %rdi
callq _ZSTD_pthread_cond_destroy
movq -24(%rbp), %rdi
callq _POOL_free
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _testThreadReduction
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_testThreadReduction.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testThreadReduction_internal
_testThreadReduction_internal: ; @testThreadReduction_internal
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
str x1, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
mov w8, #16
stur w8, [x29, #-12]
str w8, [x1]
str xzr, [x1, #16]
str xzr, [x1, #8]
stur wzr, [x29, #-16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-16]
subs w8, w8, #16
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
adrp x1, _waitLongFn@GOTPAGE
ldr x1, [x1, _waitLongFn@GOTPAGEOFF]
bl _POOL_add
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB0_1
LBB0_4:
ldr x8, [sp, #16] ; 8-byte Folded Reload
add x0, x8, #4
bl _ZSTD_pthread_mutex_lock
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
add x0, x8, #24
add x1, x8, #4
bl _ZSTD_pthread_cond_wait
b LBB0_5
LBB0_7:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8, #16]
mov w1, #0
str w1, [sp, #12] ; 4-byte Folded Spill
bl _ASSERT_EQ
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8, #8]
mov w1, #4
bl _ASSERT_EQ
ldr x8, [sp, #16] ; 8-byte Folded Reload
add x0, x8, #4
bl _ZSTD_pthread_mutex_unlock
ldur x0, [x29, #-8]
mov w1, #2
bl _POOL_resize
ldr w1, [sp, #12] ; 4-byte Folded Reload
bl _ASSERT_EQ
ldr x8, [sp, #16] ; 8-byte Folded Reload
mov w9, #16
str w9, [x8]
str xzr, [x8, #16]
str xzr, [x8, #8]
stur wzr, [x29, #-20]
b LBB0_8
LBB0_8: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
subs w8, w8, #16
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_8 Depth=1
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldur x0, [x29, #-8]
adrp x1, _waitLongFn@GOTPAGE
ldr x1, [x1, _waitLongFn@GOTPAGEOFF]
bl _POOL_add
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_8 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_8
LBB0_11:
ldr x8, [sp, #16] ; 8-byte Folded Reload
add x0, x8, #4
bl _ZSTD_pthread_mutex_lock
b LBB0_12
LBB0_12: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr w8, [x8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_14
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
add x0, x8, #24
add x1, x8, #4
bl _ZSTD_pthread_cond_wait
b LBB0_12
LBB0_14:
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8, #16]
mov w1, #0
str w1, [sp, #8] ; 4-byte Folded Spill
bl _ASSERT_EQ
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8, #8]
mov w1, #2
bl _ASSERT_EQ
ldr x8, [sp, #16] ; 8-byte Folded Reload
add x0, x8, #4
bl _ZSTD_pthread_mutex_unlock
ldr w0, [sp, #8] ; 4-byte Folded Reload
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _waitLongFn,4,2 ; @waitLongFn
.no_dead_strip _testThreadReduction_internal
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testThreadReduction_internal
_testThreadReduction_internal: ## @testThreadReduction_internal
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
leaq 16(%rbp), %rax
movq %rax, -32(%rbp) ## 8-byte Spill
movq %rdi, -8(%rbp)
movl $16, -12(%rbp)
movl $16, (%rax)
movq $0, 16(%rax)
movq $0, 8(%rax)
movl $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $16, -16(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdx ## 8-byte Reload
movq -8(%rbp), %rdi
movq _waitLongFn@GOTPCREL(%rip), %rsi
callq _POOL_add
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_4:
movq -32(%rbp), %rdi ## 8-byte Reload
addq $4, %rdi
callq _ZSTD_pthread_mutex_lock
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax ## 8-byte Reload
cmpl $0, (%rax)
jle LBB0_7
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -32(%rbp), %rsi ## 8-byte Reload
movq %rsi, %rdi
addq $24, %rdi
addq $4, %rsi
callq _ZSTD_pthread_cond_wait
jmp LBB0_5
LBB0_7:
movq -32(%rbp), %rax ## 8-byte Reload
movq 16(%rax), %rdi
xorl %esi, %esi
callq _ASSERT_EQ
## kill: def $ecx killed $eax
movq -32(%rbp), %rax ## 8-byte Reload
movq 8(%rax), %rdi
movl $4, %esi
callq _ASSERT_EQ
movq -32(%rbp), %rdi ## 8-byte Reload
addq $4, %rdi
callq _ZSTD_pthread_mutex_unlock
movq -8(%rbp), %rdi
movl $2, %esi
callq _POOL_resize
movq %rax, %rdi
xorl %esi, %esi
callq _ASSERT_EQ
## kill: def $ecx killed $eax
movq -32(%rbp), %rax ## 8-byte Reload
movl $16, (%rax)
movq $0, 16(%rax)
movq $0, 8(%rax)
movl $0, -20(%rbp)
LBB0_8: ## =>This Inner Loop Header: Depth=1
cmpl $16, -20(%rbp)
jge LBB0_11
## %bb.9: ## in Loop: Header=BB0_8 Depth=1
movq -32(%rbp), %rdx ## 8-byte Reload
movq -8(%rbp), %rdi
movq _waitLongFn@GOTPCREL(%rip), %rsi
callq _POOL_add
## %bb.10: ## in Loop: Header=BB0_8 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_8
LBB0_11:
movq -32(%rbp), %rdi ## 8-byte Reload
addq $4, %rdi
callq _ZSTD_pthread_mutex_lock
LBB0_12: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax ## 8-byte Reload
cmpl $0, (%rax)
jle LBB0_14
## %bb.13: ## in Loop: Header=BB0_12 Depth=1
movq -32(%rbp), %rsi ## 8-byte Reload
movq %rsi, %rdi
addq $24, %rdi
addq $4, %rsi
callq _ZSTD_pthread_cond_wait
jmp LBB0_12
LBB0_14:
movq -32(%rbp), %rax ## 8-byte Reload
movq 16(%rax), %rdi
xorl %esi, %esi
callq _ASSERT_EQ
## kill: def $ecx killed $eax
movq -32(%rbp), %rax ## 8-byte Reload
movq 8(%rax), %rdi
movl $2, %esi
callq _ASSERT_EQ
movq -32(%rbp), %rdi ## 8-byte Reload
addq $4, %rdi
callq _ZSTD_pthread_mutex_unlock
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _waitLongFn,4,2 ## @waitLongFn
.no_dead_strip _testThreadReduction_internal
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_testThreadReduction_internal.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function testWait
_testWait: ; @testWait
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
stur x0, [x29, #-8]
stur x1, [x29, #-16]
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
bl _POOL_create
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _ASSERT_TRUE
str xzr, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #16
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x0, [sp, #16]
adrp x1, _waitFn@GOTPAGE
ldr x1, [x1, _waitFn@GOTPAGEOFF]
sub x2, x29, #20
bl _POOL_add
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_4:
ldr x0, [sp, #16]
bl _POOL_free
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.comm _waitFn,4,2 ; @waitFn
.no_dead_strip _testWait
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function testWait
_testWait: ## @testWait
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _POOL_create
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _ASSERT_TRUE
movq $0, -40(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpq $16, -40(%rbp)
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
movq _waitFn@GOTPCREL(%rip), %rsi
leaq -24(%rbp), %rdx
callq _POOL_add
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -40(%rbp), %rax
addq $1, %rax
movq %rax, -40(%rbp)
jmp LBB0_1
LBB0_4:
movq -32(%rbp), %rdi
callq _POOL_free
xorl %eax, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _waitFn,4,2 ## @waitFn
.no_dead_strip _testWait
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_testWait.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function waitFn
_waitFn: ; @waitFn
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
mov w0, #1
bl _UTIL_sleepMilli
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _waitFn
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function waitFn
_waitFn: ## @waitFn
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl $1, %edi
callq _UTIL_sleepMilli
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _waitFn
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_waitFn.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function waitIncFn
_waitIncFn: ; @waitIncFn
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
str x8, [sp]
mov w0, #10
bl _UTIL_sleepMilli
ldr x0, [sp]
bl _ZSTD_pthread_mutex_lock
ldr x8, [sp]
ldr x8, [x8, #8]
add x8, x8, #1
ldr x9, [sp]
str x8, [x9, #8]
ldr x0, [sp]
bl _ZSTD_pthread_mutex_unlock
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _waitIncFn
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function waitIncFn
_waitIncFn: ## @waitIncFn
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movl $10, %edi
callq _UTIL_sleepMilli
movq -16(%rbp), %rdi
callq _ZSTD_pthread_mutex_lock
movq -16(%rbp), %rax
movq 8(%rax), %rcx
addq $1, %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rdi
callq _ZSTD_pthread_mutex_unlock
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _waitIncFn
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_waitIncFn.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function waitLongFn
_waitLongFn: ; @waitLongFn
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
str x8, [sp]
ldr x8, [sp]
add x0, x8, #24
bl _ZSTD_pthread_mutex_lock
ldr x9, [sp]
ldr x8, [x9]
add x8, x8, #1
str x8, [x9]
ldr x8, [sp]
ldr x8, [x8]
ldr x9, [sp]
ldr x9, [x9, #8]
subs x8, x8, x9
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp]
ldr x8, [x8]
ldr x9, [sp]
str x8, [x9, #8]
b LBB0_2
LBB0_2:
ldr x8, [sp]
add x0, x8, #24
bl _ZSTD_pthread_mutex_unlock
mov w0, #10
bl _UTIL_sleepMilli
ldr x8, [sp]
add x0, x8, #24
bl _ZSTD_pthread_mutex_lock
ldr x9, [sp]
ldr x8, [x9]
subs x8, x8, #1
str x8, [x9]
ldr x9, [sp]
ldr x8, [x9, #16]
subs x8, x8, #1
str x8, [x9, #16]
ldr x8, [sp]
ldr x8, [x8, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp]
add x0, x8, #28
bl _ZSTD_pthread_cond_signal
b LBB0_4
LBB0_4:
ldr x8, [sp]
add x0, x8, #24
bl _ZSTD_pthread_mutex_unlock
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.no_dead_strip _waitLongFn
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function waitLongFn
_waitLongFn: ## @waitLongFn
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
addq $24, %rdi
callq _ZSTD_pthread_mutex_lock
movq -16(%rbp), %rax
movq (%rax), %rcx
addq $1, %rcx
movq %rcx, (%rax)
movq -16(%rbp), %rax
movq (%rax), %rax
movq -16(%rbp), %rcx
cmpq 8(%rcx), %rax
jle LBB0_2
## %bb.1:
movq -16(%rbp), %rax
movq (%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
LBB0_2:
movq -16(%rbp), %rdi
addq $24, %rdi
callq _ZSTD_pthread_mutex_unlock
movl $10, %edi
callq _UTIL_sleepMilli
movq -16(%rbp), %rdi
addq $24, %rdi
callq _ZSTD_pthread_mutex_lock
movq -16(%rbp), %rax
movq (%rax), %rcx
addq $-1, %rcx
movq %rcx, (%rax)
movq -16(%rbp), %rax
movq 16(%rax), %rcx
addq $-1, %rcx
movq %rcx, 16(%rax)
movq -16(%rbp), %rax
cmpq $0, 16(%rax)
jne LBB0_4
## %bb.3:
movq -16(%rbp), %rdi
addq $28, %rdi
callq _ZSTD_pthread_cond_signal
LBB0_4:
movq -16(%rbp), %rdi
addq $24, %rdi
callq _ZSTD_pthread_mutex_unlock
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _waitLongFn
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_poolTests.c_waitLongFn.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function crash
_crash: ; @crash
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur w0, [x29, #-4]
ldur w0, [x29, #-4]
bl _exit
.cfi_endproc
; -- End function
.no_dead_strip _crash
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function crash
_crash: ## @crash
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl %edi, -4(%rbp)
movl -4(%rbp), %edi
callq _exit
.cfi_endproc
## -- End function
.no_dead_strip _crash
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_roundTripCrash.c_crash.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function checkBuffers
_checkBuffers: ; @checkBuffers
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #40]
str x1, [sp, #32]
str x2, [sp, #24]
ldr x8, [sp, #40]
str x8, [sp, #16]
ldr x8, [sp, #32]
str x8, [sp, #8]
str xzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldr x9, [sp]
ldrsb w8, [x8, x9]
ldr x9, [sp, #8]
ldr x10, [sp]
ldrsb w9, [x9, x10]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
b LBB0_6
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB0_1
LBB0_6:
ldr x0, [sp]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.no_dead_strip _checkBuffers
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function checkBuffers
_checkBuffers: ## @checkBuffers
.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, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rax
movq %rax, -40(%rbp)
movq $0, -48(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -48(%rbp), %rax
cmpq -24(%rbp), %rax
jae LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rax
movq -48(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -40(%rbp), %rcx
movq -48(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je LBB0_4
## %bb.3:
jmp LBB0_6
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movq -48(%rbp), %rax
addq $1, %rax
movq %rax, -48(%rbp)
jmp LBB0_1
LBB0_6:
movq -48(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.no_dead_strip _checkBuffers
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_roundTripCrash.c_checkBuffers.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function cctxParamRoundTripTest
_cctxParamRoundTripTest: ; @cctxParamRoundTripTest
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur x2, [x29, #-24]
stur x3, [x29, #-32]
stur x4, [x29, #-40]
stur x5, [x29, #-48]
bl _ZSTD_createCCtx
stur x0, [x29, #-56]
bl _ZSTD_createCCtxParams
stur x0, [x29, #-64]
ldur x8, [x29, #-40]
add x9, sp, #72
str x9, [sp, #24] ; 8-byte Folded Spill
str x8, [sp, #72]
ldur x8, [x29, #-48]
str x8, [sp, #80]
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
str wzr, [sp, #88]
ldur x8, [x29, #-24]
add x9, sp, #48
str x9, [sp, #16] ; 8-byte Folded Spill
str x8, [sp, #48]
ldur x8, [x29, #-32]
str x8, [sp, #56]
str wzr, [sp, #64]
str wzr, [sp, #68]
ldur x1, [x29, #-48]
mov w0, #128
bl _MIN
ldr w2, [sp, #12] ; 4-byte Folded Reload
str x0, [sp, #40]
ldur x0, [x29, #-40]
ldr x1, [sp, #40]
bl _XXH32
str w0, [sp, #36]
ldr w8, [sp, #36]
mov w10, #19
udiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #32]
ldur x0, [x29, #-64]
adrp x8, _ZSTD_c_compressionLevel@GOTPAGE
ldr x8, [x8, _ZSTD_c_compressionLevel@GOTPAGEOFF]
ldr w1, [x8]
ldr w2, [sp, #32]
bl _ZSTD_CCtxParams_setParameter
bl _CHECK_Z
ldur x0, [x29, #-64]
adrp x8, _ZSTD_c_nbWorkers@GOTPAGE
ldr x8, [x8, _ZSTD_c_nbWorkers@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #2
bl _ZSTD_CCtxParams_setParameter
bl _CHECK_Z
ldur x0, [x29, #-64]
adrp x8, _ZSTD_c_overlapLog@GOTPAGE
ldr x8, [x8, _ZSTD_c_overlapLog@GOTPAGEOFF]
ldr w1, [x8]
mov w2, #5
bl _ZSTD_CCtxParams_setParameter
bl _CHECK_Z
ldur x0, [x29, #-56]
ldur x1, [x29, #-64]
bl _ZSTD_CCtx_setParametersUsingCCtxParams
bl _CHECK_Z
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr x2, [sp, #24] ; 8-byte Folded Reload
ldur x0, [x29, #-56]
adrp x8, _ZSTD_e_end@GOTPAGE
ldr x8, [x8, _ZSTD_e_end@GOTPAGEOFF]
ldr w3, [x8]
bl _ZSTD_compressStream2
bl _CHECK_Z
ldur x0, [x29, #-64]
bl _ZSTD_freeCCtxParams
ldur x0, [x29, #-56]
bl _ZSTD_freeCCtx
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldur x2, [x29, #-24]
ldr w3, [sp, #64]
bl _ZSTD_decompress
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @cctxParamRoundTripTest.maxClevel
_cctxParamRoundTripTest.maxClevel:
.long 19 ; 0x13
.comm _ZSTD_c_compressionLevel,4,2 ; @ZSTD_c_compressionLevel
.comm _ZSTD_c_nbWorkers,4,2 ; @ZSTD_c_nbWorkers
.comm _ZSTD_c_overlapLog,4,2 ; @ZSTD_c_overlapLog
.comm _ZSTD_e_end,4,2 ; @ZSTD_e_end
.no_dead_strip _cctxParamRoundTripTest
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function cctxParamRoundTripTest
_cctxParamRoundTripTest: ## @cctxParamRoundTripTest
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $128, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq %r8, -40(%rbp)
movq %r9, -48(%rbp)
movb $0, %al
callq _ZSTD_createCCtx
movq %rax, -56(%rbp)
movb $0, %al
callq _ZSTD_createCCtxParams
movq %rax, -64(%rbp)
movq -40(%rbp), %rax
movq %rax, -88(%rbp)
movq -48(%rbp), %rax
movq %rax, -80(%rbp)
movl $0, -72(%rbp)
movq -24(%rbp), %rax
movq %rax, -112(%rbp)
movq -32(%rbp), %rax
movq %rax, -104(%rbp)
movl $0, -96(%rbp)
movl $0, -92(%rbp)
movq -48(%rbp), %rsi
movl $128, %edi
callq _MIN
movq %rax, -120(%rbp)
movq -40(%rbp), %rdi
movq -120(%rbp), %rsi
xorl %edx, %edx
callq _XXH32
movl %eax, -124(%rbp)
movl -124(%rbp), %eax
movl $19, %ecx
xorl %edx, %edx
divl %ecx
movl %edx, -128(%rbp)
movq -64(%rbp), %rdi
movq _ZSTD_c_compressionLevel@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl -128(%rbp), %edx
callq _ZSTD_CCtxParams_setParameter
movl %eax, %edi
callq _CHECK_Z
movq -64(%rbp), %rdi
movq _ZSTD_c_nbWorkers@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $2, %edx
callq _ZSTD_CCtxParams_setParameter
movl %eax, %edi
callq _CHECK_Z
movq -64(%rbp), %rdi
movq _ZSTD_c_overlapLog@GOTPCREL(%rip), %rax
movl (%rax), %esi
movl $5, %edx
callq _ZSTD_CCtxParams_setParameter
movl %eax, %edi
callq _CHECK_Z
movq -56(%rbp), %rdi
movq -64(%rbp), %rsi
callq _ZSTD_CCtx_setParametersUsingCCtxParams
movl %eax, %edi
callq _CHECK_Z
movq -56(%rbp), %rdi
movq _ZSTD_e_end@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq -112(%rbp), %rsi
leaq -88(%rbp), %rdx
callq _ZSTD_compressStream2
movl %eax, %edi
callq _CHECK_Z
movq -64(%rbp), %rdi
callq _ZSTD_freeCCtxParams
movq -56(%rbp), %rdi
callq _ZSTD_freeCCtx
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rdx
movl -96(%rbp), %ecx
callq _ZSTD_decompress
addq $128, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 2 ## @cctxParamRoundTripTest.maxClevel
_cctxParamRoundTripTest.maxClevel:
.long 19 ## 0x13
.comm _ZSTD_c_compressionLevel,4,2 ## @ZSTD_c_compressionLevel
.comm _ZSTD_c_nbWorkers,4,2 ## @ZSTD_c_nbWorkers
.comm _ZSTD_c_overlapLog,4,2 ## @ZSTD_c_overlapLog
.comm _ZSTD_e_end,4,2 ## @ZSTD_e_end
.no_dead_strip _cctxParamRoundTripTest
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_roundTripCrash.c_cctxParamRoundTripTest.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function getFileSize
_getFileSize: ; @getFileSize
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
ldr x0, [sp, #16]
add x1, sp, #4
bl _stat
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w0, [sp, #8]
bl _S_ISREG
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
stur xzr, [x29, #-8]
b LBB0_4
LBB0_3:
ldrsw x8, [sp, #4]
stur x8, [x29, #-8]
b LBB0_4
LBB0_4:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _S_IFREG,4,2 ; @S_IFREG
.no_dead_strip _getFileSize
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function getFileSize
_getFileSize: ## @getFileSize
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
leaq -32(%rbp), %rsi
callq _stat
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
jne LBB0_2
## %bb.1:
movl -28(%rbp), %edi
callq _S_ISREG
cmpl $0, %eax
jne LBB0_3
LBB0_2:
movq $0, -8(%rbp)
jmp LBB0_4
LBB0_3:
movslq -32(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_4:
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _S_IFREG,4,2 ## @S_IFREG
.no_dead_strip _getFileSize
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_roundTripCrash.c_getFileSize.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function fileCheck
_fileCheck: ; @fileCheck
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
ldur x0, [x29, #-8]
bl _getFileSize
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x9, [sp, #8]
subs x9, x9, #0
cset w10, eq
; implicit-def: $x9
mov x9, x10
and x9, x9, #0x1
add x0, x8, x9
bl _malloc
str x0, [sp]
ldr x8, [sp]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #4
bl _exit
LBB0_2:
ldr x0, [sp]
ldur x1, [x29, #-8]
ldr x2, [sp, #8]
bl _loadFile
ldr x0, [sp]
ldr x1, [sp, #8]
ldur w2, [x29, #-12]
bl _roundTripCheck
ldr x0, [sp]
bl _free
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "not enough memory \n"
.no_dead_strip _fileCheck
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function fileCheck
_fileCheck: ## @fileCheck
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movq -8(%rbp), %rdi
callq _getFileSize
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
cmpq $0, -24(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
addq %rax, %rdi
callq _malloc
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB0_2
## %bb.1:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _fprintf
movl $4, %edi
callq _exit
LBB0_2:
movq -32(%rbp), %rdi
movq -8(%rbp), %rsi
movq -24(%rbp), %rdx
callq _loadFile
movq -32(%rbp), %rdi
movq -24(%rbp), %rsi
movl -12(%rbp), %edx
callq _roundTripCheck
movq -32(%rbp), %rdi
callq _free
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "not enough memory \n"
.no_dead_strip _fileCheck
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_roundTripCrash.c_fileCheck.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function isDirectory
_isDirectory: ; @isDirectory
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #16]
ldr x0, [sp, #16]
add x1, sp, #8
bl _stat
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_1
LBB0_1:
ldr w0, [sp, #8]
bl _S_ISDIR
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_4
LBB0_3:
stur wzr, [x29, #-4]
b LBB0_4
LBB0_4:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm __S_IFDIR,4,2 ; @_S_IFDIR
.no_dead_strip _isDirectory
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function isDirectory
_isDirectory: ## @isDirectory
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movq %rdi, -16(%rbp)
movq -16(%rbp), %rdi
leaq -24(%rbp), %rsi
callq _stat
movl %eax, -20(%rbp)
cmpl $0, -20(%rbp)
jne LBB0_3
## %bb.1:
movl -24(%rbp), %edi
callq _S_ISDIR
cmpq $0, %rax
je LBB0_3
## %bb.2:
movl $1, -4(%rbp)
jmp LBB0_4
LBB0_3:
movl $0, -4(%rbp)
LBB0_4:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm __S_IFDIR,4,2 ## @_S_IFDIR
.no_dead_strip _isDirectory
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_roundTripCrash.c_isDirectory.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function loadFile
_loadFile: ; @loadFile
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
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
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
ldur x0, [x29, #-16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fopen
str x0, [sp, #16]
ldur x0, [x29, #-16]
bl _isDirectory
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x2, [x29, #-16]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov w0, #2
bl _exit
LBB0_2:
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x2, [x29, #-16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov w0, #3
bl _exit
LBB0_4:
ldur x0, [x29, #-8]
ldr x2, [sp, #24]
ldr x3, [sp, #16]
mov w1, #1
bl _fread
str x0, [sp, #8]
ldr x8, [sp, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp] ; 8-byte Folded Reload
ldr w0, [x8]
ldur x2, [x29, #-16]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
mov w0, #5
bl _exit
LBB0_6:
ldr x0, [sp, #16]
bl _fclose
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "rb"
.comm _stderr,4,2 ; @stderr
l_.str.1: ; @.str.1
.asciz "Ignoring %s directory \n"
l_.str.2: ; @.str.2
.asciz "Impossible to open %s \n"
l_.str.3: ; @.str.3
.asciz "Error reading %s \n"
.no_dead_strip _loadFile
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function loadFile
_loadFile: ## @loadFile
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -16(%rbp), %rdi
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -32(%rbp)
movq -16(%rbp), %rdi
callq _isDirectory
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rdx
leaq L_.str.1(%rip), %rsi
callq _fprintf
movl $2, %edi
callq _exit
LBB0_2:
cmpq $0, -32(%rbp)
jne LBB0_4
## %bb.3:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rdx
leaq L_.str.2(%rip), %rsi
callq _fprintf
movl $3, %edi
callq _exit
LBB0_4:
movq -8(%rbp), %rdi
movq -24(%rbp), %rdx
movq -32(%rbp), %rcx
movl $1, %esi
callq _fread
movq %rax, -40(%rbp)
movq -40(%rbp), %rax
cmpq -24(%rbp), %rax
je LBB0_6
## %bb.5:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -16(%rbp), %rdx
leaq L_.str.3(%rip), %rsi
callq _fprintf
movl $5, %edi
callq _exit
LBB0_6:
movq -32(%rbp), %rdi
callq _fclose
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "rb"
.comm _stderr,4,2 ## @stderr
L_.str.1: ## @.str.1
.asciz "Ignoring %s directory \n"
L_.str.2: ## @.str.2
.asciz "Impossible to open %s \n"
L_.str.3: ## @.str.3
.asciz "Error reading %s \n"
.no_dead_strip _loadFile
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_roundTripCrash.c_loadFile.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
mov w8, #1
str w8, [sp, #12]
str wzr, [sp, #8]
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #9
bl _exit
LBB0_2:
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldr x0, [x8, x9, lsl #3]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
mov w8, #1
str w8, [sp, #8]
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_4
LBB0_4:
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldr x0, [x8, x9, lsl #3]
ldr w1, [sp, #8]
bl _fileCheck
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w0, [x8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Error : no argument : need input file \n"
l_.str.1: ; @.str.1
.asciz "--cctxParams"
l_.str.2: ; @.str.2
.asciz "no pb detected\n"
.subsections_via_symbols
|
.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
subq $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $1, -20(%rbp)
movl $0, -24(%rbp)
cmpl $2, -8(%rbp)
jge LBB0_2
## %bb.1:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
callq _fprintf
movl $9, %edi
callq _exit
LBB0_2:
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq L_.str.1(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_4
## %bb.3:
movl $1, -24(%rbp)
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB0_4:
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl -24(%rbp), %esi
callq _fileCheck
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.2(%rip), %rsi
callq _fprintf
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Error : no argument : need input file \n"
L_.str.1: ## @.str.1
.asciz "--cctxParams"
L_.str.2: ## @.str.2
.asciz "no pb detected\n"
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_roundTripCrash.c_main.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function roundTripCheck
_roundTripCheck: ; @roundTripCheck
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur w2, [x29, #-20]
ldur x0, [x29, #-16]
bl _ZSTD_compressBound
stur x0, [x29, #-32]
ldur x0, [x29, #-32]
bl _malloc
stur x0, [x29, #-40]
ldur x0, [x29, #-32]
bl _malloc
str x0, [sp, #48]
ldur x8, [x29, #-40]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_3:
ldur w8, [x29, #-20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr x0, [sp, #48]
ldur x1, [x29, #-32]
ldur x2, [x29, #-40]
ldur x3, [x29, #-32]
ldur x4, [x29, #-8]
ldur x5, [x29, #-16]
bl _cctxParamRoundTripTest
str x0, [sp, #24] ; 8-byte Folded Spill
b LBB0_6
LBB0_5:
ldr x0, [sp, #48]
ldur x1, [x29, #-32]
ldur x2, [x29, #-40]
ldur x3, [x29, #-32]
ldur x4, [x29, #-8]
ldur x5, [x29, #-16]
bl _roundTripTest
str x0, [sp, #24] ; 8-byte Folded Spill
b LBB0_6
LBB0_6:
ldr x8, [sp, #24] ; 8-byte Folded Reload
str x8, [sp, #40]
ldr x0, [sp, #40]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w8, [x8]
str w8, [sp, #20] ; 4-byte Folded Spill
ldr x0, [sp, #40]
bl _ZSTD_getErrorName
mov x8, x0
ldr w0, [sp, #20] ; 4-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fprintf
mov w0, #1
bl _crash
b LBB0_8
LBB0_8:
ldr x8, [sp, #40]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
ldr x10, [sp, #40]
ldur x8, [x29, #-16]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov w0, #1
bl _crash
b LBB0_10
LBB0_10:
ldur x0, [x29, #-8]
ldr x1, [sp, #48]
ldur x2, [x29, #-16]
bl _checkBuffers
ldur x8, [x29, #-16]
subs x8, x0, x8
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w0, [x8]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fprintf
mov w0, #1
bl _crash
b LBB0_12
LBB0_12:
ldur x0, [x29, #-40]
bl _free
ldr x0, [sp, #48]
bl _free
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "not enough memory ! \n"
l_.str.1: ; @.str.1
.asciz "roundTripTest error : %s \n"
l_.str.2: ; @.str.2
.asciz "Incorrect regenerated size : %u != %u\n"
l_.str.3: ; @.str.3
.asciz "Silent decoding corruption !!!"
.no_dead_strip _roundTripCheck
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function roundTripCheck
_roundTripCheck: ## @roundTripCheck
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movl %edx, -20(%rbp)
movq -16(%rbp), %rdi
callq _ZSTD_compressBound
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
callq _malloc
movq %rax, -40(%rbp)
movq -32(%rbp), %rdi
callq _malloc
movq %rax, -48(%rbp)
cmpq $0, -40(%rbp)
je LBB0_2
## %bb.1:
cmpq $0, -48(%rbp)
jne LBB0_3
LBB0_2:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_3:
cmpl $0, -20(%rbp)
je LBB0_5
## %bb.4:
movq -48(%rbp), %rdi
movq -32(%rbp), %rsi
movq -40(%rbp), %rdx
movq -32(%rbp), %rcx
movq -8(%rbp), %r8
movq -16(%rbp), %r9
callq _cctxParamRoundTripTest
movq %rax, -64(%rbp) ## 8-byte Spill
jmp LBB0_6
LBB0_5:
movq -48(%rbp), %rdi
movq -32(%rbp), %rsi
movq -40(%rbp), %rdx
movq -32(%rbp), %rcx
movq -8(%rbp), %r8
movq -16(%rbp), %r9
callq _roundTripTest
movq %rax, -64(%rbp) ## 8-byte Spill
LBB0_6:
movq -64(%rbp), %rax ## 8-byte Reload
movq %rax, -56(%rbp)
movq -56(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_8
## %bb.7:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -68(%rbp) ## 4-byte Spill
movq -56(%rbp), %rdi
callq _ZSTD_getErrorName
movl -68(%rbp), %edi ## 4-byte Reload
movq %rax, %rdx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, %edi
callq _crash
LBB0_8:
movq -56(%rbp), %rax
cmpq -16(%rbp), %rax
je LBB0_10
## %bb.9:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
movq -56(%rbp), %rax
movl %eax, %edx
movq -16(%rbp), %rax
movl %eax, %ecx
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, %edi
callq _crash
LBB0_10:
movq -8(%rbp), %rdi
movq -48(%rbp), %rsi
movq -16(%rbp), %rdx
callq _checkBuffers
cmpq -16(%rbp), %rax
je LBB0_12
## %bb.11:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %edi
leaq L_.str.3(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, %edi
callq _crash
LBB0_12:
movq -40(%rbp), %rdi
callq _free
movq -48(%rbp), %rdi
callq _free
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "not enough memory ! \n"
L_.str.1: ## @.str.1
.asciz "roundTripTest error : %s \n"
L_.str.2: ## @.str.2
.asciz "Incorrect regenerated size : %u != %u\n"
L_.str.3: ## @.str.3
.asciz "Silent decoding corruption !!!"
.no_dead_strip _roundTripCheck
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_roundTripCrash.c_roundTripCheck.c
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 2 ; -- Begin function roundTripTest
_roundTripTest: ; @roundTripTest
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-16]
stur x1, [x29, #-24]
stur x2, [x29, #-32]
stur x3, [x29, #-40]
str x4, [sp, #48]
str x5, [sp, #40]
ldr x1, [sp, #40]
mov w0, #128
bl _MIN
str x0, [sp, #32]
ldr x0, [sp, #48]
ldr x1, [sp, #32]
mov w2, #0
bl _XXH32
str w0, [sp, #28]
ldr w8, [sp, #28]
mov w10, #19
udiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #24]
ldur x0, [x29, #-32]
ldur x1, [x29, #-40]
ldr x2, [sp, #48]
ldr x3, [sp, #40]
ldr w4, [sp, #24]
bl _ZSTD_compress
str x0, [sp, #16]
ldr x0, [sp, #16]
bl _ZSTD_isError
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, _stderr@GOTPAGE
ldr x8, [x8, _stderr@GOTPAGEOFF]
ldr w8, [x8]
str w8, [sp, #12] ; 4-byte Folded Spill
ldr x0, [sp, #16]
bl _ZSTD_getErrorName
mov x2, x0
ldr w0, [sp, #12] ; 4-byte Folded Reload
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
ldr x8, [sp, #16]
stur x8, [x29, #-8]
b LBB0_3
LBB0_2:
ldur x0, [x29, #-16]
ldur x1, [x29, #-24]
ldur x2, [x29, #-32]
ldr x3, [sp, #16]
bl _ZSTD_decompress
stur x0, [x29, #-8]
b LBB0_3
LBB0_3:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @roundTripTest.maxClevel
_roundTripTest.maxClevel:
.long 19 ; 0x13
.comm _stderr,4,2 ; @stderr
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Compression error : %s \n"
.no_dead_strip _roundTripTest
.subsections_via_symbols
|
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.p2align 4, 0x90 ## -- Begin function roundTripTest
_roundTripTest: ## @roundTripTest
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $96, %rsp
movq %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq %r8, -48(%rbp)
movq %r9, -56(%rbp)
movq -56(%rbp), %rsi
movl $128, %edi
callq _MIN
movq %rax, -64(%rbp)
movq -48(%rbp), %rdi
movq -64(%rbp), %rsi
xorl %edx, %edx
callq _XXH32
movl %eax, -68(%rbp)
movl -68(%rbp), %eax
movl $19, %ecx
xorl %edx, %edx
divl %ecx
movl %edx, -72(%rbp)
movq -32(%rbp), %rdi
movq -40(%rbp), %rsi
movq -48(%rbp), %rdx
movq -56(%rbp), %rcx
movl -72(%rbp), %r8d
callq _ZSTD_compress
movq %rax, -80(%rbp)
movq -80(%rbp), %rdi
callq _ZSTD_isError
cmpq $0, %rax
je LBB0_2
## %bb.1:
movq _stderr@GOTPCREL(%rip), %rax
movl (%rax), %eax
movl %eax, -84(%rbp) ## 4-byte Spill
movq -80(%rbp), %rdi
callq _ZSTD_getErrorName
movl -84(%rbp), %edi ## 4-byte Reload
movq %rax, %rdx
leaq L_.str(%rip), %rsi
callq _fprintf
movq -80(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movq -32(%rbp), %rdx
movq -80(%rbp), %rcx
callq _ZSTD_decompress
movq %rax, -8(%rbp)
LBB0_3:
movq -8(%rbp), %rax
addq $96, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 2 ## @roundTripTest.maxClevel
_roundTripTest.maxClevel:
.long 19 ## 0x13
.comm _stderr,4,2 ## @stderr
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Compression error : %s \n"
.no_dead_strip _roundTripTest
.subsections_via_symbols
|
AnghaBench/zstd/tests/extr_roundTripCrash.c_roundTripTest.c
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.