new testcase
authorChris Lattner <sabre@nondot.org>
Sun, 30 Oct 2005 19:42:18 +0000 (19:42 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 30 Oct 2005 19:42:18 +0000 (19:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24112 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/reg-coalesce-simple.ll [new file with mode: 0644]

diff --git a/test/CodeGen/PowerPC/reg-coalesce-simple.ll b/test/CodeGen/PowerPC/reg-coalesce-simple.ll
new file mode 100644 (file)
index 0000000..bc14a2d
--- /dev/null
@@ -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}
+
+
+