diff options
Diffstat (limited to 'llvm/test/CodeGen/SPARC/LeonReplaceFMULSPassUT.ll')
-rwxr-xr-x | llvm/test/CodeGen/SPARC/LeonReplaceFMULSPassUT.ll | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/llvm/test/CodeGen/SPARC/LeonReplaceFMULSPassUT.ll b/llvm/test/CodeGen/SPARC/LeonReplaceFMULSPassUT.ll index 7d0950cb1c8..e9ea7c6c999 100755 --- a/llvm/test/CodeGen/SPARC/LeonReplaceFMULSPassUT.ll +++ b/llvm/test/CodeGen/SPARC/LeonReplaceFMULSPassUT.ll @@ -1,19 +1,13 @@ -; RUN: llc %s -O0 -march=sparc -mcpu=ut699 -o - | FileCheck %s
+; RUN: llc %s -O0 -march=sparc -mattr=replacefmuls -o - | FileCheck %s
-; CHECK-LABEL: fmuls_fix_test
-; CHECK: fstod %f20, %f2
-; CHECK: fstod %f21, %f3
-; CHECK: fmuld %f2, %f3, %f8
-; CHECK: fstod %f20, %f0
-define double @fmuls_fix_test() {
+; CHECK-LABEL: test_replace_fmuls
+; CHECK: fsmuld %f1, %f0, %f2
+; CHECK: fdtos %f2, %f0
+; NOFIX-LABEL: test_replace_fmuls
+; NOFIX: fmuls %f1, %f0, %f0
+define float @test_replace_fmuls(float %a, float %b) {
entry:
- %a = alloca float, align 4
- %b = alloca float, align 4
- store float 0x402ECCCCC0000000, float* %a, align 4
- store float 0x4022333340000000, float* %b, align 4
- %0 = load float, float* %b, align 4
- %1 = load float, float* %a, align 4
- %mul = tail call double asm sideeffect "fmuls $0, $1, $2", "={f20},{f21},{f8}"(float* %a, float* %b)
+ %mul = fmul float %a, %b
- ret double %mul
+ ret float %mul
}
|