diff options
Diffstat (limited to 'llvm/test/CodeGen/SPARC/LeonInsertNOPLoad.ll')
-rw-r--r-- | llvm/test/CodeGen/SPARC/LeonInsertNOPLoad.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SPARC/LeonInsertNOPLoad.ll b/llvm/test/CodeGen/SPARC/LeonInsertNOPLoad.ll new file mode 100644 index 00000000000..315fc85fca3 --- /dev/null +++ b/llvm/test/CodeGen/SPARC/LeonInsertNOPLoad.ll @@ -0,0 +1,13 @@ +; RUN: llc %s -O0 -march=sparc -mcpu=ut699 -o - | FileCheck %s + +; CHECK: ld [%o0+%lo(.LCPI0_0)], %f0 +; CHECK-NEXT: nop + + +define float @X() #0 { +entry: + %f = alloca float, align 4 + store float 0x3FF3C08320000000, float* %f, align 4 + %0 = load float, float* %f, align 4 + ret float %0 +} |