[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/mem_update.ll

Chris Lattner sabre at nondot.org
Thu Nov 9 18:05:06 PST 2006



Changes in directory llvm/test/Regression/CodeGen/PowerPC:

mem_update.ll updated: 1.1 -> 1.2
---
Log message:

make this test more interesting


---
Diffs of the changes:  (+32 -1)

 mem_update.ll |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletion(-)


Index: llvm/test/Regression/CodeGen/PowerPC/mem_update.ll
diff -u llvm/test/Regression/CodeGen/PowerPC/mem_update.ll:1.1 llvm/test/Regression/CodeGen/PowerPC/mem_update.ll:1.2
--- llvm/test/Regression/CodeGen/PowerPC/mem_update.ll:1.1	Tue Nov  7 19:44:35 2006
+++ llvm/test/Regression/CodeGen/PowerPC/mem_update.ll	Thu Nov  9 20:04:52 2006
@@ -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
+}






More information about the llvm-commits mailing list