llvm/test/CodeGen/SPARC/LeonInsertNOPLoadPassUT.ll
Daniel Cederman c2bea59da3 [Sparc] Remove execute permissions from non-executable text files
Reviewers: jyknight, lero_chris, venkatra

Reviewed By: jyknight

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D27127

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303245 91177308-0d34-0410-b5e6-96231b3b80d8
2017-05-17 11:05:20 +00:00

22 lines
574 B
LLVM

; RUN: llc %s -O0 -march=sparc -mcpu=ut699 -o - | FileCheck %s
; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -mattr=+insertnopload -o - | FileCheck %s
; CHECK-LABEL: ld_float_test
; CHECK: ld [%o0+%lo(.LCPI0_0)], %f0
; CHECK-NEXT: nop
define float @ld_float_test() #0 {
entry:
%f = alloca float, align 4
store float 0x3FF3C08320000000, float* %f, align 4
%0 = load float, float* %f, align 4
ret float %0
}
; CHECK-LABEL: ld_i32_test
; CHECK: ld [%o0], %o0
; CHECK-NEXT: nop
define i32 @ld_i32_test(i32 *%p) {
%res = load i32, i32* %p
ret i32 %res
}