summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fmuls.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/fmuls.ll')
-rw-r--r--test/CodeGen/ARM/fmuls.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fmuls.ll b/test/CodeGen/ARM/fmuls.ll
index bc118b8cb226..3c3182bc6341 100644
--- a/test/CodeGen/ARM/fmuls.ll
+++ b/test/CodeGen/ARM/fmuls.ll
@@ -21,3 +21,12 @@ entry:
; CORTEXA8: vmul.f32 d0, d1, d0
; CORTEXA9: test:
; CORTEXA9: vmul.f32 s{{.}}, s{{.}}, s{{.}}
+
+; VFP2: test2
+define float @test2(float %a) nounwind {
+; CHECK-NOT: mul
+; CHECK: mov pc, lr
+ %ret = fmul float %a, 1.0
+ ret float %ret
+}
+