1 # RUN: sed -e "s/SPACEBYTES/100/g" %s | sed -e "s/OFFSET/116/g" > %t.mir
2 # RUN: llc %t.mir --filetype=obj -start-before=arm-cp-islands -o - | \
3 # RUN: llvm-objdump --arch=armv8a --disassemble - | FileCheck %t.mir
5 # RUN: sed -e "s/SPACEBYTES/400/g" %s | sed -e "s/OFFSET/12/g" > %t.mir
6 # RUN: llc %t.mir --filetype=obj -start-before=arm-cp-islands -o - | \
7 # RUN: llvm-objdump --arch=armv8a --disassemble - | FileCheck %t.mir
9 # RUN: sed -e "s/SPACEBYTES/800/g" %s | sed -e "s/OFFSET/12/g" > %t.mir
10 # RUN: llc %t.mir --filetype=obj -start-before=arm-cp-islands -o - | \
11 # RUN: llvm-objdump --arch=armv8a --disassemble - | FileCheck %t.mir
14 target triple = "armv8.2a-arm-none-eabi"
16 define dso_local i32 @main() #0 { ret i32 0 }
18 attributes #0 = { "frame-pointer"="all" } !4 = !{i32 210}
25 tracksRegLiveness: true
37 machineFunctionInfo: {}
43 $sp = frame-setup STMDB_UPD $sp, 14, $noreg, killed $r11, killed $lr
44 $r11 = frame-setup MOVr killed $sp, 14, $noreg, $noreg
45 $sp = frame-setup SUBri killed $sp, 80, 14, $noreg, $noreg
47 ; Test handling of 16-bit constant pool entries.
48 ; 2 consecutive entries: 1 is 4-byte aligned, 1 is not 4-byte aligned.
50 renamable $r1 = LEApcrel %const.0, 14, $noreg
51 renamable $r1 = LDRH killed renamable $r1, $noreg, 0, 14, $noreg :: (load (s16) from constant-pool)
52 renamable $r1 = LEApcrel %const.1, 14, $noreg
53 renamable $r1 = LDRH killed renamable $r1, $noreg, 0, 14, $noreg :: (load (s16) from constant-pool)
55 renamable $r0 = SPACE SPACEBYTES, undef renamable $r0
57 $sp = frame-destroy MOVr $r11, 14, $noreg, $noreg
58 $sp = frame-destroy LDMIA_RET $sp, 14, $noreg, def $r11, def $pc, implicit killed $r0
60 # CHECK: add r1, pc, #OFFSET