diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-17 20:47:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-17 20:47:46 +0000 |
commit | db5e5df43a1c70fbd7b576b4e8481692a042f0b8 (patch) | |
tree | e98ba9baae33a06545262db61e54b6b4ca8c637c /test | |
parent | 72e66f47096a7d7403b7b453fa8603873f3b072a (diff) | |
download | external_llvm-db5e5df43a1c70fbd7b576b4e8481692a042f0b8.zip external_llvm-db5e5df43a1c70fbd7b576b4e8481692a042f0b8.tar.gz external_llvm-db5e5df43a1c70fbd7b576b4e8481692a042f0b8.tar.bz2 |
Convert to use long indexes instead of uint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/getelementptr.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Transforms/InstCombine/getelementptr.ll b/test/Transforms/InstCombine/getelementptr.ll index 2a482ed..2b5ad7e 100644 --- a/test/Transforms/InstCombine/getelementptr.ll +++ b/test/Transforms/InstCombine/getelementptr.ll @@ -10,7 +10,7 @@ implementation int *"foo1"(int * %I) { ; Test noop elimination - %A = getelementptr int* %I, uint 0 + %A = getelementptr int* %I, long 0 ret int * %A } @@ -19,19 +19,19 @@ int* %foo2(int* %I) { ; Test noop elimination ret int* %A } int* %foo3(int * %I) { ; Test that two array indexing geps fold - %A = getelementptr int* %I, uint 17 - %B = getelementptr int* %A, uint 4 + %A = getelementptr int* %I, long 17 + %B = getelementptr int* %A, long 4 ret int* %B } int* %foo4({int} *%I) { ; Test that two getelementptr insts fold - %A = getelementptr {int}* %I, uint 1 - %B = getelementptr {int}* %A, uint 0, ubyte 0 + %A = getelementptr {int}* %I, long 1 + %B = getelementptr {int}* %A, long 0, ubyte 0 ret int* %B } sbyte * %foo5() { ; This should be turned into a constexpr instead of being an instruction - %A = getelementptr [10 x sbyte]* %Global, uint 0, uint 4 + %A = getelementptr [10 x sbyte]* %Global, long 0, long 4 ret sbyte* %A } |