brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · f87e21f Raw
40 lines · plain
1; RUN: llc -mtriple=arm-linux-gnueabihf -filetype=obj <%s | llvm-objdump --triple=armv7 --no-show-raw-insn -d - | FileCheck %s2 3;; Expect architectural nop to be used between func2 and func3 but not func14;; and func2 due to lack of subtarget support in func2.5 6define i32 @func1() #0 align 16 {7entry:8  ret i32 09}10 11define i32 @func2() #1 align 16 {12entry:13  ret i32 014}15 16define i32 @func3() #0 align 16 {17entry:18  ret i32 019}20 21attributes #0 = { "target-cpu"="generic" "target-features"="+armv7-a,+dsp,+neon,+vfp3,-thumb-mode" "use-soft-float"="false" }22attributes #1 = { "target-cpu"="arm7tdmi" "target-features"="+armv4t" "use-soft-float"="true" }23 24 25; CHECK: 00000000 <func1>:26; CHECK-NEXT:  0: mov     r0, #027; CHECK-NEXT:  4: bx      lr28; CHECK-NEXT:  8: mov     r0, r029; CHECK-NEXT:  c: mov     r0, r030 31; CHECK: 00000010 <func2>:32; CHECK-NEXT: 10: mov     r0, #033; CHECK-NEXT: 14: bx      lr34; CHECK-NEXT: 18: nop35; CHECK-NEXT: 1c: nop36 37; CHECK: 00000020 <func3>:38; CHECK-NEXT: 20: mov     r0, #039; CHECK-NEXT: 24: bx      lr40