| ; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a9 -mattr=+vfp4 -enable-unsafe-fp-math %s -o - \ |
| define float @test1(float %x) { |
| %t2 = call float @llvm.fma.f32(float %x, float 2.0, float %t1) |
| define float @test2(float %x, float %y) { |
| %t2 = call float @llvm.fma.f32(float %t1, float 2.0, float %y) |
| define float @test3(float %x, float %y) { |
| %t2 = call float @llvm.fma.f32(float %x, float 1.0, float %y) |
| define float @test4(float %x, float %y) { |
| %t2 = call float @llvm.fma.f32(float %x, float -1.0, float %y) |
| define float @test5(float %x) { |
| %t2 = call float @llvm.fma.f32(float %x, float 2.0, float %x) |
| define float @test6(float %x) { |
| %t1 = fsub float -0.0, %x |
| %t2 = call float @llvm.fma.f32(float %x, float 5.0, float %t1) |
| declare float @llvm.fma.f32(float, float, float) |