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 4 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 8 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 12 13--- | 14 target triple = "armv8.2a-arm-none-eabi" 15 16 define dso_local i32 @main() #0 { ret i32 0 } 17 18 attributes #0 = { "frame-pointer"="all" } !4 = !{i32 210} 19 20... 21--- 22 23name: main 24alignment: 4 25tracksRegLiveness: true 26constants: 27 28- 29 id: 0 30 value: half 0xH5440 31 alignment: 2 32- 33 id: 1 34 value: half 0xH5441 35 alignment: 2 36 37machineFunctionInfo: {} 38body: | 39 40 bb.0 (%ir-block.0): 41 liveins: $lr 42 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 46 47 ; Test handling of 16-bit constant pool entries. 48 ; 2 consecutive entries: 1 is 4-byte aligned, 1 is not 4-byte aligned. 49 50 renamable $r1 = LEApcrel %const.0, 14, $noreg 51 renamable $r1 = LDRH killed renamable $r1, $noreg, 0, 14, $noreg :: (load 2 from constant-pool) 52 renamable $r1 = LEApcrel %const.1, 14, $noreg 53 renamable $r1 = LDRH killed renamable $r1, $noreg, 0, 14, $noreg :: (load 2 from constant-pool) 54 55 renamable $r0 = SPACE SPACEBYTES, undef renamable $r0 56 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 59 60 # CHECK: add r1, pc, #OFFSET 61--- 62... 63