From 0f7c8c29d34063e748ac287a1c923ac1af57ea0c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 19 Aug 2002 23:10:52 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3395 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CBackend/2002-08-19-HardConstantExpr.ll | 4 ++++ test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 test/CBackend/2002-08-19-HardConstantExpr.ll create mode 100644 test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll diff --git a/test/CBackend/2002-08-19-HardConstantExpr.ll b/test/CBackend/2002-08-19-HardConstantExpr.ll new file mode 100644 index 00000000000..cd2d1117ed6 --- /dev/null +++ b/test/CBackend/2002-08-19-HardConstantExpr.ll @@ -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) ; [#uses=1] +%arrayPtr5 = global int* getelementptr (int** %arrayPtr, uint 0, uint 5) ; [#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 index 00000000000..cd2d1117ed6 --- /dev/null +++ b/test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll @@ -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) ; [#uses=1] +%arrayPtr5 = global int* getelementptr (int** %arrayPtr, uint 0, uint 5) ; [#uses=0] +