From b96c24fc2ecddffea9bf525b3bc9a545cdfe0ffd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 19 Apr 2003 00:17:11 +0000 Subject: [PATCH] Update testcases to match what is currently output by the CFE llvm-svn: 5817 --- .../FunctionResolve/2002-08-19-ResolveGlobalVars.ll | 6 +++--- .../FunctionResolve/2002-08-19-ResolveGlobalVarsEasier.ll | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/test/Regression/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll b/llvm/test/Regression/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll index 259ed56c0f4e..3eb61d41a41a 100644 --- a/llvm/test/Regression/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll +++ b/llvm/test/Regression/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll @@ -12,15 +12,15 @@ ; RUN: fi ; -%X = external global int +%X = external global [0 x int] %X = global [4 x int] [ int 1, int 2, int 3, int 4 ] implementation ; Functions: int %foo(int %x) { bb1: ;[#uses=0] - store int 5, int* getelementptr (int* %X, long 2) - %F = getelementptr int* %X, long 2 + store int 5, int* getelementptr ([0 x int]* %X, long 0, long 2) + %F = getelementptr [0 x int]* %X, long 0, long 2 %val = load int* %F ret int %val } diff --git a/llvm/test/Regression/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVarsEasier.ll b/llvm/test/Regression/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVarsEasier.ll index e6f7b861606d..39c9a3dec7d0 100644 --- a/llvm/test/Regression/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVarsEasier.ll +++ b/llvm/test/Regression/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVarsEasier.ll @@ -7,16 +7,16 @@ ; RUN: fi ; -%X = external global int +%X = external global [0 x int] %X = global [4 x int] [ int 1, int 2, int 3, int 4 ] implementation ; Functions: int %foo(int %x) { bb1: ;[#uses=0] - %G = getelementptr int* %X, long 1 + %G = getelementptr [0 x int]* %X, long 0, long 1 store int 5, int* %G - %F = getelementptr int* %X, long 2 + %F = getelementptr [0 x int]* %X, long 0, long 2 %val = load int* %F ret int %val }