[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/fnegsel.ll
Nate Begeman
natebegeman at mac.com
Sat Apr 9 02:30:22 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
fnegsel.ll added (r1.1)
---
Log message:
Add a testcase to make sure that we don't emit two fneg instructions back
to back for certain fsel instructions.
---
Diffs of the changes: (+8 -0)
fnegsel.ll | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/fnegsel.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/fnegsel.ll:1.1
*** /dev/null Sat Apr 9 04:30:19 2005
--- llvm/test/Regression/CodeGen/PowerPC/fnegsel.ll Sat Apr 9 04:30:09 2005
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 -enable-ppc-pattern-isel | not grep fneg
+
+ double %test_fneg_sel(double %A, double %B, double %C) {
+ %D = sub double -0.0, %A
+ %Cond = setgt double %D, -0.0
+ %E = select bool %Cond, double %B, double %C
+ ret double %E
+ }
More information about the llvm-commits
mailing list