Skip to content

Commit

Permalink
[AMDGPU] Regenerate some MIR checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 4, 2023
1 parent 0e1b3ed commit 110319f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions llvm/test/CodeGen/AMDGPU/waitcnt-overflow.mir
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ body: |
; GFX9-NEXT: $vgpr4 = V_MAC_F32_e32 0, $vgpr5, $vgpr4, implicit $mode, implicit $exec
; GFX9-NEXT: $vgpr6 = V_MAC_F32_e32 0, $vgpr7, $vgpr6, implicit $mode, implicit $exec
; GFX9-NEXT: S_ENDPGM 0
;
; GFX10-LABEL: name: max-counter-lgkmcnt
; GFX10: liveins: $vgpr99
; GFX10-NEXT: {{ $}}
Expand Down Expand Up @@ -79,6 +80,7 @@ body: |
; GFX10-NEXT: S_WAITCNT 52863
; GFX10-NEXT: $vgpr6 = V_MAC_F32_e32 0, $vgpr7, $vgpr6, implicit $mode, implicit $exec
; GFX10-NEXT: S_ENDPGM 0
;
; GFX11-LABEL: name: max-counter-lgkmcnt
; GFX11: liveins: $vgpr99
; GFX11-NEXT: {{ $}}
Expand Down Expand Up @@ -219,6 +221,7 @@ body: |
; GFX9-NEXT: $vgpr2 = V_MAC_F32_e32 0, $vgpr3, $vgpr2, implicit $mode, implicit $exec
; GFX9-NEXT: $vgpr3 = V_MAC_F32_e32 0, $vgpr4, $vgpr3, implicit $mode, implicit $exec
; GFX9-NEXT: S_ENDPGM 0
;
; GFX10-LABEL: name: max-counter-vmcnt
; GFX10: liveins: $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr4
; GFX10-NEXT: {{ $}}
Expand Down Expand Up @@ -296,6 +299,7 @@ body: |
; GFX10-NEXT: $vgpr2 = V_MAC_F32_e32 0, $vgpr3, $vgpr2, implicit $mode, implicit $exec
; GFX10-NEXT: $vgpr3 = V_MAC_F32_e32 0, $vgpr4, $vgpr3, implicit $mode, implicit $exec
; GFX10-NEXT: S_ENDPGM 0
;
; GFX11-LABEL: name: max-counter-vmcnt
; GFX11: liveins: $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr4
; GFX11-NEXT: {{ $}}
Expand Down Expand Up @@ -468,6 +472,7 @@ body: |
; GFX9-NEXT: EXP 0, $vgpr1, $vgpr1, $vgpr1, $vgpr1, -1, -1, 15, implicit $exec
; GFX9-NEXT: $vgpr0 = V_MAC_F32_e32 0, $vgpr1, $vgpr0, implicit $mode, implicit $exec
; GFX9-NEXT: S_ENDPGM 0
;
; GFX10-LABEL: name: max-counter-expcnt
; GFX10: liveins: $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr4, $vgpr0, $vgpr1
; GFX10-NEXT: {{ $}}
Expand All @@ -482,6 +487,7 @@ body: |
; GFX10-NEXT: EXP 0, $vgpr1, $vgpr1, $vgpr1, $vgpr1, -1, -1, 15, implicit $exec
; GFX10-NEXT: $vgpr0 = V_MAC_F32_e32 0, $vgpr1, $vgpr0, implicit $mode, implicit $exec
; GFX10-NEXT: S_ENDPGM 0
;
; GFX11-LABEL: name: max-counter-expcnt
; GFX11: liveins: $sgpr0_sgpr1_sgpr2_sgpr3, $sgpr4, $vgpr0, $vgpr1
; GFX11-NEXT: {{ $}}
Expand Down
5 changes: 5 additions & 0 deletions llvm/test/CodeGen/AMDGPU/waitcnt-preexisting-vscnt.mir
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ body: |
; GFX10-NEXT: S_WAITCNT 112
; GFX10-NEXT: FLAT_STORE_DWORD $vgpr0_vgpr1, $vgpr0, 0, 0, implicit $exec, implicit $flat_scr
; GFX10-NEXT: S_ENDPGM 0
;
; GFX11-LABEL: name: test_waitcnt_preexisting_vscnt_unmodified
; GFX11: liveins: $vgpr0_vgpr1, $vgpr2
; GFX11-NEXT: {{ $}}
Expand Down Expand Up @@ -55,6 +56,7 @@ body: |
; GFX10-NEXT: S_WAITCNT 112
; GFX10-NEXT: FLAT_STORE_DWORD $vgpr0_vgpr1, $vgpr0, 0, 0, implicit $exec, implicit $flat_scr
; GFX10-NEXT: S_ENDPGM 0
;
; GFX11-LABEL: name: test_waitcnt_preexisting_vscnt_needs_vscnt
; GFX11: liveins: $vgpr0_vgpr1, $vgpr2
; GFX11-NEXT: {{ $}}
Expand Down Expand Up @@ -92,6 +94,7 @@ body: |
; GFX10-NEXT: S_WAITCNT 112
; GFX10-NEXT: FLAT_STORE_DWORD $vgpr0_vgpr1, $vgpr0, 0, 0, implicit $exec, implicit $flat_scr
; GFX10-NEXT: S_ENDPGM 0
;
; GFX11-LABEL: name: test_waitcnt_preexisting_vscnt_with_other_waitcnt
; GFX11: liveins: $vgpr0_vgpr1, $vgpr2
; GFX11-NEXT: {{ $}}
Expand Down Expand Up @@ -130,6 +133,7 @@ body: |
; GFX10-NEXT: S_WAITCNT 112
; GFX10-NEXT: FLAT_STORE_DWORD $vgpr0_vgpr1, $vgpr0, 0, 0, implicit $exec, implicit $flat_scr
; GFX10-NEXT: S_ENDPGM 0
;
; GFX11-LABEL: name: test_waitcnt_preexisting_vscnt_combined
; GFX11: liveins: $vgpr0_vgpr1, $vgpr2
; GFX11-NEXT: {{ $}}
Expand Down Expand Up @@ -169,6 +173,7 @@ body: |
; GFX10-NEXT: S_WAITCNT 112
; GFX10-NEXT: FLAT_STORE_DWORD $vgpr0_vgpr1, $vgpr0, 0, 0, implicit $exec, implicit $flat_scr
; GFX10-NEXT: S_ENDPGM 0
;
; GFX11-LABEL: name: test_waitcnt_preexisting_vscnt_combined_both_types
; GFX11: liveins: $vgpr0_vgpr1, $vgpr2
; GFX11-NEXT: {{ $}}
Expand Down

0 comments on commit 110319f

Please sign in to comment.