diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-30 19:42:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-30 19:42:18 +0000 |
commit | 6beef9032413c3481e8270c77b0a912cb48dea7e (patch) | |
tree | 671dfba7afe889672e599ad9febf8b6a3776dadd | |
parent | dd5663dfa0c8f4f7597398f87312a70129c72932 (diff) | |
download | llvm-6beef9032413c3481e8270c77b0a912cb48dea7e.tar.gz |
new testcase
llvm-svn: 24112
-rw-r--r-- | llvm/test/Regression/CodeGen/PowerPC/reg-coalesce-simple.ll | 12 |
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} + + + |