[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/fabs.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Apr 8 21:55:30 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/X86:
fabs.ll updated: 1.2 -> 1.3
---
Log message:
make this test more interesting
---
Diffs of the changes: (+8 -1)
fabs.ll | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/CodeGen/X86/fabs.ll
diff -u llvm/test/Regression/CodeGen/X86/fabs.ll:1.2 llvm/test/Regression/CodeGen/X86/fabs.ll:1.3
--- llvm/test/Regression/CodeGen/X86/fabs.ll:1.2 Fri Apr 1 23:40:03 2005
+++ llvm/test/Regression/CodeGen/X86/fabs.ll Fri Apr 8 23:55:14 2005
@@ -1,5 +1,5 @@
; Make sure this testcase codegens to the fabs instruction, not a call to fabsf
-; RUN: llvm-as < %s | llc -march=x86 -disable-pattern-isel=0 | grep 'fabs$'
+; RUN: llvm-as < %s | llc -march=x86 -disable-pattern-isel=0 | grep 'fabs$' | wc -l | grep 2
declare float %fabsf(float)
@@ -8,3 +8,10 @@
ret float %Y
}
+double %fabstest2(double %X) {
+ %Y = setge double %X, -0.0
+ %Z = sub double -0.0, %X
+ %Q = select bool %Y, double %X, double %Z
+ ret double %Q
+}
+
More information about the llvm-commits
mailing list