1 ; RUN: opt -globalopt < %s -S -o - | FileCheck %s
3 @GV1 = internal global i64 1
4 @GV2 = internal global i32 0
6 ; CHECK: @GV1 = internal unnamed_addr constant i64 1
7 ; CHECK: @GV2 = internal unnamed_addr global i32 0
11 %0 = load atomic i8, i8* bitcast (i64* @GV1 to i8*) acquire, align 8
16 define void @test2a() {
18 store atomic i32 10, i32* @GV2 seq_cst, align 4
21 define i32 @test2b() {
23 %atomic-load = load atomic i32, i32* @GV2 seq_cst, align 4