1 ; RUN: llc %s -march=sparc -o - | FileCheck --check-prefix=CHECK --check-prefix=DEFAULT %s
2 ; RUN: llc %s -march=sparc -mattr=no-fmuls -o - | FileCheck --check-prefix=CHECK --check-prefix=NO-FMULS %s
3 ; RUN: llc %s -march=sparc -mattr=no-fsmuld -o - | FileCheck --check-prefix=CHECK --check-prefix=NO-FSMULD %s
4 ; RUN: llc %s -march=sparc -mattr=no-fsmuld,no-fmuls -o - | FileCheck --check-prefix=CHECK --check-prefix=NO-BOTH %s
6 ;;; Test case ensures that the no-fsmuld and no-fmuls features disable
7 ;;; the relevant instruction, and alternative sequences get emitted
10 ; CHECK-LABEL: test_float_mul:
19 define float @test_float_mul(float %a, float %b) {
21 %mul = fmul float %a, %b
26 ; CHECK-LABEL: test_float_mul_double:
31 define double @test_float_mul_double(float %a, float %b) {
33 %a_double = fpext float %a to double
34 %b_double = fpext float %b to double
35 %mul = fmul double %a_double, %b_double