aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-10 02:04:52 +0000
committerChris Lattner <sabre@nondot.org>2006-11-10 02:04:52 +0000
commit42b51e4ae2b5324e2f9a297f623e44ea2b79e7ae (patch)
tree7ae2d66c3718468bab7a3f7b7f407fc84ef8d5f8
parentf19683956275a85bc0cfa0ac08760fdcc790f510 (diff)
make this test more interesting
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31619 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/PowerPC/mem_update.ll33
1 files changed, 32 insertions, 1 deletions
diff --git a/test/CodeGen/PowerPC/mem_update.ll b/test/CodeGen/PowerPC/mem_update.ll
index 5e665f8b9a..8be4f73135 100644
--- a/test/CodeGen/PowerPC/mem_update.ll
+++ b/test/CodeGen/PowerPC/mem_update.ll
@@ -3,9 +3,40 @@
; XFAIL: *
-int *%test(int *%X, int *%dest) {
+int *%test0(int *%X, int *%dest) {
%Y = getelementptr int* %X, int 4
%A = load int* %Y
store int %A, int* %dest
ret int* %Y
}
+
+int *%test1(int *%X, int *%dest) {
+ %Y = getelementptr int* %X, int 4
+ %A = load int* %Y
+ store int %A, int* %dest
+ ret int* %Y
+}
+
+short *%test2(short *%X, int *%dest) {
+ %Y = getelementptr short* %X, int 4
+ %A = load short* %Y
+ %B = cast short %A to int
+ store int %B, int* %dest
+ ret short* %Y
+}
+
+ushort *%test3(ushort *%X, int *%dest) {
+ %Y = getelementptr ushort* %X, int 4
+ %A = load ushort* %Y
+ %B = cast ushort %A to int
+ store int %B, int* %dest
+ ret ushort* %Y
+}
+
+
+long *%test4(long *%X, long *%dest) {
+ %Y = getelementptr long* %X, int 4
+ %A = load long* %Y
+ store long %A, long* %dest
+ ret long* %Y
+}