}
@c = constant i32 42
+@g = global i32 42
define i32 @atomic_load_from_constant_global() {
; CHECK-LABEL: @atomic_load_from_constant_global(
ret i8 %v
}
+define void @atomic_load_from_non_constant_global() {
+; CHECK-LABEL: @atomic_load_from_non_constant_global(
+; CHECK-NEXT: [[TMP1:%.*]] = load atomic i32, i32* @g seq_cst, align 4
+; CHECK-NEXT: ret void
+;
+ load atomic i32, i32* @g seq_cst, align 4
+ ret void
+}
+
define void @volatile_load_from_constant_global() {
; CHECK-LABEL: @volatile_load_from_constant_global(
; CHECK-NEXT: [[TMP1:%.*]] = load volatile i32, i32* @c, align 4