summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-30 19:42:18 +0000
committerChris Lattner <sabre@nondot.org>2005-10-30 19:42:18 +0000
commit6beef9032413c3481e8270c77b0a912cb48dea7e (patch)
tree671dfba7afe889672e599ad9febf8b6a3776dadd
parentdd5663dfa0c8f4f7597398f87312a70129c72932 (diff)
downloadllvm-6beef9032413c3481e8270c77b0a912cb48dea7e.tar.gz
new testcase
llvm-svn: 24112
-rw-r--r--llvm/test/Regression/CodeGen/PowerPC/reg-coalesce-simple.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/reg-coalesce-simple.ll b/llvm/test/Regression/CodeGen/PowerPC/reg-coalesce-simple.ll
new file mode 100644
index 000000000000..bc14a2d86c41
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/PowerPC/reg-coalesce-simple.ll
@@ -0,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}
+
+
+