[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/fneg-fabs.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Apr 1 21:33:27 PST 2005
Changes in directory llvm/test/Regression/CodeGen/Generic:
fneg-fabs.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+26 -0)
fneg-fabs.ll | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+)
Index: llvm/test/Regression/CodeGen/Generic/fneg-fabs.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Generic/fneg-fabs.ll:1.1
*** /dev/null Fri Apr 1 23:33:20 2005
--- llvm/test/Regression/CodeGen/Generic/fneg-fabs.ll Fri Apr 1 23:33:10 2005
***************
*** 0 ****
--- 1,26 ----
+ ; RUN: llvm-as < %s | llc
+
+ double %fneg(double %X) {
+ %Y = sub double -0.0, %X
+ ret double %Y
+ }
+
+ float %fnegf(float %X) {
+ %Y = sub float -0.0, %X
+ ret float %Y
+ }
+
+ declare double %fabs(double)
+ declare float %fabsf(float)
+
+
+ double %fabstest(double %X) {
+ %Y = call double %fabs(double %X)
+ ret double %Y
+ }
+
+ float %fabsftest(float %X) {
+ %Y = call float %fabsf(float %X)
+ ret float %Y
+ }
+
More information about the llvm-commits
mailing list