aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/fparith.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2006-10-13 17:37:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2006-10-13 17:37:35 +0000
commit33d06bcfd41447b94cd66126b948469d41f7f2ef (patch)
treee311756d1c0f95489ad20dc3a2b54ef245fa496c /test/CodeGen/ARM/fparith.ll
parent0eff5ad3db4bc85e84c85a7fbdc6b26653ff223d (diff)
downloadexternal_llvm-33d06bcfd41447b94cd66126b948469d41f7f2ef.zip
external_llvm-33d06bcfd41447b94cd66126b948469d41f7f2ef.tar.gz
external_llvm-33d06bcfd41447b94cd66126b948469d41f7f2ef.tar.bz2
add FNEGS and FNEGD
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30932 91177308-0d34-0410-b5e6-96231b3b80d8
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
+}