mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
53c8a31ef4
Fixes PR22462: two of the tests have regressed for a while, but were using CHECK-NOT to match "May:". The actual output was changed to "MayAlias:" at some point, which made the tests useless. Two others return MayAlias only because of a lack of analysis; BasicAA returns PartialAlias in those cases, when a datalayout is present. llvm-svn: 228346
23 lines
691 B
LLVM
23 lines
691 B
LLVM
; This testcase consists of alias relations which should be completely
|
|
; resolvable by basicaa, but require analysis of getelementptr constant exprs.
|
|
|
|
; RUN: opt < %s -basicaa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
%T = type { i32, [10 x i8] }
|
|
|
|
@G = external global %T
|
|
|
|
; CHECK: Function: test
|
|
; CHECK-NOT: MayAlias:
|
|
|
|
define void @test() {
|
|
%D = getelementptr %T* @G, i64 0, i32 0
|
|
%E = getelementptr %T* @G, i64 0, i32 1, i64 5
|
|
%F = getelementptr i32* getelementptr (%T* @G, i64 0, i32 0), i64 0
|
|
%X = getelementptr [10 x i8]* getelementptr (%T* @G, i64 0, i32 1), i64 0, i64 5
|
|
|
|
ret void
|
|
}
|