[llvm-commits] CVS: llvm/test/Regression/LLC/select.ll
Vikram Adve
vadve at cs.uiuc.edu
Sat Oct 12 19:45:01 PDT 2002
Changes in directory llvm/test/Regression/LLC:
select.ll updated: 1.6 -> 1.7
---
Log message:
Add a test for folding a GEP into a load.
---
Diffs of the changes:
Index: llvm/test/Regression/LLC/select.ll
diff -u llvm/test/Regression/LLC/select.ll:1.6 llvm/test/Regression/LLC/select.ll:1.7
--- llvm/test/Regression/LLC/select.ll:1.6 Thu Sep 19 19:57:37 2002
+++ llvm/test/Regression/LLC/select.ll Sat Oct 12 19:44:00 2002
@@ -1,5 +1,7 @@
%AConst = constant int 123
+%Domain = type { sbyte*, int, int*, int, int, int*, %Domain* }
+
implementation
; Test setting values of different constants in registers.
@@ -192,4 +194,14 @@
%notI2 = xor int -1, %i ;; should become XNOR
ret void
+end
+
+
+; Test case for folding getelementptr into a load/store
+;
+int "checkFoldGEP"(%Domain* %D, long %idx)
+begin
+ %reg841 = getelementptr %Domain* %D, long 0, ubyte 2, long %idx
+ %reg820 = load int* %reg841
+ ret int %reg820
end
More information about the llvm-commits
mailing list