summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/reg-coalesce-simple.ll
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
commit65026a72ef4dceb2ccb813ebcf3cc55cbc55e26b (patch)
tree301937f3b50f2c60d95d51be26d6f107f60b4892 /test/CodeGen/PowerPC/reg-coalesce-simple.ll
parenta4176525cc4018e781b48fd35d4000040841287f (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/reg-coalesce-simple.ll')
-rw-r--r--test/CodeGen/PowerPC/reg-coalesce-simple.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/reg-coalesce-simple.ll b/test/CodeGen/PowerPC/reg-coalesce-simple.ll
new file mode 100644
index 00000000000..bc14a2d86c4
--- /dev/null
+++ b/test/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}
+
+
+