New testcase
authorChris Lattner <sabre@nondot.org>
Mon, 19 Aug 2002 23:10:52 +0000 (23:10 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 19 Aug 2002 23:10:52 +0000 (23:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3395 91177308-0d34-0410-b5e6-96231b3b80d8

test/CBackend/2002-08-19-HardConstantExpr.ll [new file with mode: 0644]
test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll [new file with mode: 0644]

diff --git a/test/CBackend/2002-08-19-HardConstantExpr.ll b/test/CBackend/2002-08-19-HardConstantExpr.ll
new file mode 100644 (file)
index 0000000..cd2d111
--- /dev/null
@@ -0,0 +1,4 @@
+%array = constant [2 x int] [ int 12, int 52 ]          ; <[2 x int]*> [#uses=1]
+%arrayPtr = global int* getelementptr ([2 x int]* %array, uint 0, uint 0)               ; <int**> [#uses=1]
+%arrayPtr5 = global int* getelementptr (int** %arrayPtr, uint 0, uint 5)                ; <int**> [#uses=0]
+
diff --git a/test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll b/test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll
new file mode 100644 (file)
index 0000000..cd2d111
--- /dev/null
@@ -0,0 +1,4 @@
+%array = constant [2 x int] [ int 12, int 52 ]          ; <[2 x int]*> [#uses=1]
+%arrayPtr = global int* getelementptr ([2 x int]* %array, uint 0, uint 0)               ; <int**> [#uses=1]
+%arrayPtr5 = global int* getelementptr (int** %arrayPtr, uint 0, uint 5)                ; <int**> [#uses=0]
+