[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/reg-coallesce-simple.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 30 11:42:30 PST 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
reg-coallesce-simple.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+12 -0)
reg-coallesce-simple.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/reg-coallesce-simple.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/reg-coallesce-simple.ll:1.1
*** /dev/null Sun Oct 30 13:42:29 2005
--- llvm/test/Regression/CodeGen/PowerPC/reg-coallesce-simple.ll Sun Oct 30 13:42:19 2005
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep or
+
+ %struct.foo = type { int, int, [0 x ubyte] }
+ int %test(%struct.foo* %X) {
+ %tmp1 = getelementptr %struct.foo* %X, int 0, uint 2, int 100
+ %tmp = load ubyte* %tmp1 ; <ubyte> [#uses=1]
+ %tmp2 = cast ubyte %tmp to int ; <int> [#uses=1]
+ ret int %tmp2}
+
+
+
More information about the llvm-commits
mailing list