summaryrefslogtreecommitdiffstats
path: root/test/Analysis/BasicAA/gep-alias.ll
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2010-09-17 15:48:55 +0000
committerdim <dim@FreeBSD.org>2010-09-17 15:48:55 +0000
commit5d5cc59cc77afe655b3707cb0e69e0827b444cad (patch)
tree36453626c792cccd91f783a38a169d610a6b9db9 /test/Analysis/BasicAA/gep-alias.ll
parent786a18553586229ad99ecb5ecde8a9d914c45e27 (diff)
downloadFreeBSD-src-5d5cc59cc77afe655b3707cb0e69e0827b444cad.zip
FreeBSD-src-5d5cc59cc77afe655b3707cb0e69e0827b444cad.tar.gz
Vendor import of llvm r114020 (from the release_28 branch):
http://llvm.org/svn/llvm-project/llvm/branches/release_28@114020 Approved by: rpaulo (mentor)
Diffstat (limited to 'test/Analysis/BasicAA/gep-alias.ll')
-rw-r--r--test/Analysis/BasicAA/gep-alias.ll12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Analysis/BasicAA/gep-alias.ll b/test/Analysis/BasicAA/gep-alias.ll
index 1ed0312..eba9599 100644
--- a/test/Analysis/BasicAA/gep-alias.ll
+++ b/test/Analysis/BasicAA/gep-alias.ll
@@ -117,12 +117,12 @@ define i32 @test7(i32* %p, i64 %i) {
; P[zext(i)] != p[zext(i+1)]
; PR1143
-define i32 @test8(i32* %p, i32 %i) {
- %i1 = zext i32 %i to i64
- %pi = getelementptr i32* %p, i64 %i1
- %i.next = add i32 %i, 1
- %i.next2 = zext i32 %i.next to i64
- %pi.next = getelementptr i32* %p, i64 %i.next2
+define i32 @test8(i32* %p, i16 %i) {
+ %i1 = zext i16 %i to i32
+ %pi = getelementptr i32* %p, i32 %i1
+ %i.next = add i16 %i, 1
+ %i.next2 = zext i16 %i.next to i32
+ %pi.next = getelementptr i32* %p, i32 %i.next2
%x = load i32* %pi
store i32 42, i32* %pi.next
%y = load i32* %pi
OpenPOWER on IntegriCloud