File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
llvm/test/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -422,6 +422,7 @@ define void @no_atomic_vector_store(<2 x float> %p, i8* %p2) {
422
422
}
423
423
424
424
@c = constant i32 42
425
+ @g = global i32 42
425
426
426
427
define i32 @atomic_load_from_constant_global () {
427
428
; CHECK-LABEL: @atomic_load_from_constant_global(
@@ -441,6 +442,15 @@ define i8 @atomic_load_from_constant_global_bitcast() {
441
442
ret i8 %v
442
443
}
443
444
445
+ define void @atomic_load_from_non_constant_global () {
446
+ ; CHECK-LABEL: @atomic_load_from_non_constant_global(
447
+ ; CHECK-NEXT: [[TMP1:%.*]] = load atomic i32, i32* @g seq_cst, align 4
448
+ ; CHECK-NEXT: ret void
449
+ ;
450
+ load atomic i32 , i32* @g seq_cst , align 4
451
+ ret void
452
+ }
453
+
444
454
define void @volatile_load_from_constant_global () {
445
455
; CHECK-LABEL: @volatile_load_from_constant_global(
446
456
; CHECK-NEXT: [[TMP1:%.*]] = load volatile i32, i32* @c, align 4
You can’t perform that action at this time.
0 commit comments