[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/compare_folding.llx
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 11 00:36:01 PDT 2004
Changes in directory llvm/test/Regression/CodeGen/X86:
compare_folding.llx added (r1.1)
---
Log message:
Test that the X86 backend is only emitting one fucom instruction
for each 'COM =' line.
---
Diffs of the changes: (+11 -0)
Index: llvm/test/Regression/CodeGen/X86/compare_folding.llx
diff -c /dev/null llvm/test/Regression/CodeGen/X86/compare_folding.llx:1.1
*** /dev/null Fri Jun 11 00:30:44 2004
--- llvm/test/Regression/CodeGen/X86/compare_folding.llx Fri Jun 11 00:30:34 2004
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | grep com | wc -l > %t2
+ ; RUN: grep 'COM =' %s | grep -v grep | wc -l > %t1
+ ; RUN: diff %t1 %t2
+ declare bool %llvm.isnan(double)
+
+ bool %test1(double %X, double %Y) { ;; Returns isunordered(X,Y)
+ %a = call bool %llvm.isnan(double %X)
+ %b = call bool %llvm.isnan(double %Y)
+ %COM = or bool %a, %b
+ ret bool %COM
+ }
More information about the llvm-commits
mailing list