summaryrefslogtreecommitdiff
path: root/test/FrontendC
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-11-30 02:23:57 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-11-30 02:23:57 +0000
commitd11ba72db9de3e797fc6557221b2f86359762591 (patch)
tree80abf7665e5ad4b8a425ada86c92f06c3bdc4d79 /test/FrontendC
parentb2944bcbe8ed6cbd2e16df5370709353ff5c590d (diff)
downloadllvm-d11ba72db9de3e797fc6557221b2f86359762591.tar.gz
llvm-d11ba72db9de3e797fc6557221b2f86359762591.tar.bz2
llvm-d11ba72db9de3e797fc6557221b2f86359762591.tar.xz
Fix this test on 64-bit systems which seem to use i64 for gep indices sometimes
while 32-bit gcc uses i32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC')
-rw-r--r--test/FrontendC/pr4349.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/FrontendC/pr4349.c b/test/FrontendC/pr4349.c
index 652ef10e9e..fbd7e56eba 100644
--- a/test/FrontendC/pr4349.c
+++ b/test/FrontendC/pr4349.c
@@ -21,17 +21,17 @@ struct svar svars1[] =
{
{ &((cpu.pc).w[0]) }
};
-// CHECK: @svars2 = global [1 x %struct.svar] [%struct.svar { i8* getelementptr ([2 x i8]* bitcast (%struct.cpu* @cpu to [2 x i8]*), i32 0, i32 1) }]
+// CHECK: @svars2 = global [1 x %struct.svar] [%struct.svar { i8* getelementptr ([2 x i8]* bitcast (%struct.cpu* @cpu to [2 x i8]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1) }]
struct svar svars2[] =
{
{ &((cpu.pc).b[0][1]) }
};
-// CHECK: @svars3 = global [1 x %struct.svar] [%struct.svar { i8* bitcast (i16* getelementptr ([2 x i16]* bitcast (%struct.cpu* @cpu to [2 x i16]*), i32 0, i32 1) to i8*) }]
+// CHECK: @svars3 = global [1 x %struct.svar] [%struct.svar { i8* bitcast (i16* getelementptr ([2 x i16]* bitcast (%struct.cpu* @cpu to [2 x i16]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1) to i8*) }]
struct svar svars3[] =
{
{ &((cpu.pc).w[1]) }
};
-// CHECK: @svars4 = global [1 x %struct.svar] [%struct.svar { i8* getelementptr ([2 x [2 x i8]]* bitcast (%struct.cpu* @cpu to [2 x [2 x i8]]*), i32 0, i32 1, i32 1) }]
+// CHECK: @svars4 = global [1 x %struct.svar] [%struct.svar { i8* getelementptr ([2 x [2 x i8]]* bitcast (%struct.cpu* @cpu to [2 x [2 x i8]]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1, i{{[0-9]+}} 1) }]
struct svar svars4[] =
{
{ &((cpu.pc).b[1][1]) }