1 ; RUN: llc %s -O0 -march=sparc -mcpu=leon3 -mattr=+fixallfdivsqrt -o - | FileCheck %s
2 ; RUN: llc %s -O0 -march=sparc -mcpu=ut699 -o - | FileCheck %s
22 define double @test_1(double* byval %a, double* byval %b) {
24 %0 = load double, double* %a, align 8
25 %1 = load double, double* %b, align 8
26 %res = fdiv double %0, %1
30 declare double @llvm.sqrt.f64(double) nounwind readonly
53 define double @test_2(double* byval %a) {
55 %0 = load double, double* %a, align 8
56 %1 = call double @llvm.sqrt.f64(double %0) nounwind