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) {
10 ; FPU-LABEL: test_add:
12 %tmp.1 = fadd float %a, %b
23 define float @test_sub(float %a, float %b) {
24 ; FUN-LABEL: test_sub:
25 ; FPU-LABEL: test_sub:
27 %tmp.1 = fsub float %a, %b
38 define float @test_mul(float %a, float %b) {
39 ; FUN-LABEL: test_mul:
40 ; FPU-LABEL: test_mul:
42 %tmp.1 = fmul float %a, %b
53 define float @test_div(float %a, float %b) {
54 ; FUN-LABEL: test_div:
55 ; FPU-LABEL: test_div:
57 %tmp.1 = fdiv float %a, %b