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(ptr byval(double) %a, ptr byval(double) %b) {
24 %0 = load double, ptr %a, align 8
25 %1 = load double, ptr %b, align 8
26 %res = fdiv double %0, %1
30 declare double @llvm.sqrt.f64(double) nounwind readonly
53 define double @test_2(ptr byval(double) %a) {
55 %0 = load double, ptr %a, align 8
56 %1 = call double @llvm.sqrt.f64(double %0) nounwind