summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/fparith.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/fparith.ll')
-rw-r--r--test/CodeGen/ARM/fparith.ll16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/fparith.ll b/test/CodeGen/ARM/fparith.ll
index 7210eee..c72a873 100644
--- a/test/CodeGen/ARM/fparith.ll
+++ b/test/CodeGen/ARM/fparith.ll
@@ -2,7 +2,9 @@
; RUN: llvm-as < %s | llc -march=arm | grep fadds &&
; RUN: llvm-as < %s | llc -march=arm | grep faddd &&
; RUN: llvm-as < %s | llc -march=arm | grep fmuls &&
-; RUN: llvm-as < %s | llc -march=arm | grep fmuld
+; RUN: llvm-as < %s | llc -march=arm | grep fmuld &&
+; RUN: llvm-as < %s | llc -march=arm | grep fnegs &&
+; RUN: llvm-as < %s | llc -march=arm | grep fnegd
float %f1(float %a, float %b) {
entry:
@@ -39,3 +41,15 @@ entry:
%tmp = sub double %a, %b
ret double %tmp
}
+
+float %f7(float %a) {
+entry:
+ %tmp1 = sub float -0.000000e+00, %a
+ ret float %tmp1
+}
+
+double %f8(double %a) {
+entry:
+ %tmp1 = sub double -0.000000e+00, %a
+ ret double %tmp1
+}