Files
clang-p2996/bolt/test/X86/Inputs/sctc_bug2.s
Amir Ayupov 44e08ead30 [BOLT][TEST] Imported small tests
Summary:
Imported small internal tests:
- sctc_bug{,2,3,4}.test

(cherry picked from FBD31517120)
2021-10-08 14:49:23 -07:00

34 lines
301 B
ArmAsm

.text
.globl foo
.type foo, @function
foo:
ret
.size foo, .-foo
.globl main
.type main, @function
main:
.cfi_startproc
cmp %rdi, 1
jne .L2
xorl %eax, %eax
.L1:
jmp foo
.L2:
jb .L1
cmp %eax, 0
xorl %eax, %eax
ja .L2
.Lend:
retq
.cfi_endproc
.size main, .-main