From 2ff9343f2b04b7de8437114fc9fc03567f34128b 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5817 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../FunctionResolve/2002-08-19-ResolveGlobalVars.ll | 6 +++--- .../FunctionResolve/2002-08-19-ResolveGlobalVarsEasier.ll | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll b/test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll index 259ed56c0f4..3eb61d41a41 100644 --- a/test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVars.ll +++ b/test/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/test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVarsEasier.ll b/test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVarsEasier.ll index e6f7b861606..39c9a3dec7d 100644 --- a/test/Transforms/FunctionResolve/2002-08-19-ResolveGlobalVarsEasier.ll +++ b/test/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 } -- 2.34.1