1 ; Ensure that floating point operations are lowered to function calls when the
2 ; FPU is not available in the hardware and that function calls are not used
3 ; when the FPU is available in the hardware.
5 ; RUN: llc < %s -march=mblaze | FileCheck -check-prefix=FUN %s
6 ; RUN: llc < %s -march=mblaze -mattr=+fpu | FileCheck -check-prefix=FPU %s
8 define float @test_add(float %a, float %b) {
12 %tmp.1 = fadd float %a, %b
23 define float @test_sub(float %a, float %b) {
27 %tmp.1 = fsub float %a, %b
38 define float @test_mul(float %a, float %b) {
42 %tmp.1 = fmul float %a, %b
53 define float @test_div(float %a, float %b) {
57 %tmp.1 = fdiv float %a, %b