[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / Transforms / Scalarizer / global-bug-2.ll
blob31eeb9de3fde8c7fec3d58bd627dcab31c88a3d9
1 ; RUN: opt < %s -passes='function(scalarizer)' -S | FileCheck %s
3 ; The scalarizer used to change the name of the global variable
4 ; Check that the we don't do that any longer.
6 ; CHECK: @c.a = global i16 0, align 1
8 @c.a = global i16 0, align 1
10 define void @c() {
11 entry:
12   br label %for.cond1
14 for.cond1:                                        ; preds = %for.cond1, %entry
15   %d.sroa.0.0 = phi <4 x i16*> [ <i16* @c.a, i16* @c.a, i16* @c.a, i16* @c.a>, %entry ], [ %d.sroa.0.1.vec.insert, %for.cond1 ]
16   %d.sroa.0.0.vec.extract = extractelement <4 x i16*> %d.sroa.0.0, i32 0
17   %d.sroa.0.1.vec.insert = shufflevector <4 x i16*> <i16* @c.a, i16* null, i16* undef, i16* undef>, <4 x i16*> %d.sroa.0.0, <4 x i32> <i32 0, i32 1, i32 6, i32 7>
18   br label %for.cond1