Skip to content

Commit 5806f11

Browse files
committed
Tweak test case
Using different offsets for the two global loads just makes it more obvious that the second one could fail address translation even if the first one succeeds.
1 parent a928c61 commit 5806f11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/test/CodeGen/AMDGPU/wait-xcnt.mir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,8 +1088,8 @@ body: |
10881088
; GCN-NEXT: successors: %bb.2(0x80000000)
10891089
; GCN-NEXT: liveins: $vgpr0_vgpr1, $sgpr2
10901090
; GCN-NEXT: {{ $}}
1091-
; GCN-NEXT: $vgpr2 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
1092-
; GCN-NEXT: $vgpr3 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
1091+
; GCN-NEXT: $vgpr2 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 100, 0, implicit $exec
1092+
; GCN-NEXT: $vgpr3 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 200, 0, implicit $exec
10931093
; GCN-NEXT: {{ $}}
10941094
; GCN-NEXT: bb.2:
10951095
; GCN-NEXT: liveins: $sgpr2, $vgpr2
@@ -1105,8 +1105,8 @@ body: |
11051105
S_CBRANCH_SCC1 %bb.2, implicit $scc
11061106
bb.1:
11071107
liveins: $vgpr0_vgpr1, $sgpr2
1108-
$vgpr2 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
1109-
$vgpr3 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
1108+
$vgpr2 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 100, 0, implicit $exec
1109+
$vgpr3 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 200, 0, implicit $exec
11101110
bb.2:
11111111
liveins: $sgpr2, $vgpr2
11121112
$vgpr2 = V_MOV_B32_e32 $vgpr2, implicit $exec

0 commit comments

Comments
 (0)