[llvm-commits] CVS: llvm/test/Regression/Analysis/LoadVN/casts.ll
Reid Spencer
reid at x10sys.com
Sun Nov 26 17:06:25 PST 2006
Changes in directory llvm/test/Regression/Analysis/LoadVN:
casts.ll added (r1.1)
---
Log message:
For PR950: http://llvm.org/PR950 :
The long awaited CAST patch. This introduces 12 new instructions into LLVM
to replace the cast instruction. Corresponding changes throughout LLVM are
provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the
exception of 175.vpr which fails only on a slight floating point output
difference.
---
Diffs of the changes: (+12 -0)
casts.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/Analysis/LoadVN/casts.ll
diff -c /dev/null llvm/test/Regression/Analysis/LoadVN/casts.ll:1.1
*** /dev/null Sun Nov 26 19:05:20 2006
--- llvm/test/Regression/Analysis/LoadVN/casts.ll Sun Nov 26 19:05:10 2006
***************
*** 0 ****
--- 1,12 ----
+ ; Check to make sure that Value Numbering doesn't merge casts of different
+ ; flavors.
+ ; RUN: llvm-as < %s | opt -load-vn -gcse | llvm-dis | grep '[sz]ext' | wc -l | grep 2
+
+ declare void %external(int)
+
+ int %test_casts(short %x) {
+ %a = sext short %x to int
+ %b = zext short %x to int
+ call void %external(int %a)
+ ret int %b
+ }
More information about the llvm-commits
mailing list