1 ; RUN: llc -march=sparc < %s | FileCheck %s -check-prefix=V8
2 ; RUN: llc -march=sparc -O0 < %s | FileCheck %s -check-prefix=V8-UNOPT
3 ; RUN: llc -march=sparc -mattr=v9 < %s | FileCheck %s -check-prefix=V9
12 ; V8-UNOPT: ! implicit-def
13 ; V8-UNOPT: fmovs {{.+}}, %f0
14 ; V8-UNOPT: fmovs {{.+}}, %f1
19 define double @test_neg() {
21 %0 = tail call double @get_double()
22 %1 = fsub double -0.000000e+00, %0
31 ; V8-UNOPT: ! implicit-def
32 ; V8-UNOPT: fmovs {{.+}}, %f0
33 ; V8-UNOPT: fmovs {{.+}}, %f1
38 define double @test_abs() {
40 %0 = tail call double @get_double()
41 %1 = tail call double @llvm.fabs.f64(double %0)
45 declare double @get_double()
46 declare double @llvm.fabs.f64(double) nounwind readonly