1 ; This testcase ensures that CFL AA handles assignment in an inclusion-based
4 ; RUN: opt < %s -disable-basicaa -cfl-anders-aa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
5 ; RUN: opt < %s -aa-pipeline=cfl-anders-aa -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
7 ; CHECK-LABEL: Function: test_assign2
8 ; CHECK: NoAlias: i32* %b, i64* %a
9 ; CHECK: NoAlias: i32* %b, i32* %c
10 ; CHECK: NoAlias: i32* %b, i32* %d
11 ; CHECK: MayAlias: i32* %e, i64* %a
12 ; CHECK: MayAlias: i32* %b, i32* %e
13 ; CHECK: MayAlias: i32* %c, i32* %e
14 ; CHECK: MayAlias: i32* %d, i32* %e
15 define void @test_assign2(i1 %cond) {
16 %a = alloca i64, align 8
17 %b = alloca i32, align 4
19 %c = bitcast i64* %a to i32*
20 %d = bitcast i64* %a to i32*
21 %e = select i1 %cond, i32* %c, i32* %b