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
14 for.cond1: ; preds = %for.cond1, %entry
15 %d.sroa.0.0 = phi <4 x ptr> [ <ptr @c.a, ptr @c.a, ptr @c.a, ptr @c.a>, %entry ], [ %d.sroa.0.1.vec.insert, %for.cond1 ]
16 %d.sroa.0.0.vec.extract = extractelement <4 x ptr> %d.sroa.0.0, i32 0
17 %d.sroa.0.1.vec.insert = shufflevector <4 x ptr> <ptr @c.a, ptr null, ptr undef, ptr undef>, <4 x ptr> %d.sroa.0.0, <4 x i32> <i32 0, i32 1, i32 6, i32 7>