File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -1768,10 +1768,10 @@ def : GCNPat<
1768
1768
(S_SEXT_I32_I16 $src)
1769
1769
>;
1770
1770
1771
- def : GCNPat <
1772
- (int_amdgcn_s_wait_event_export_ready),
1773
- (S_WAIT_EVENT (i16 0))
1774
- >;
1771
+ let SubtargetPredicate = isNotGFX12Plus in
1772
+ def : GCNPat < (int_amdgcn_s_wait_event_export_ready), (S_WAIT_EVENT (i16 0))>;
1773
+ let SubtargetPredicate = isGFX12Plus in
1774
+ def : GCNPat <(int_amdgcn_s_wait_event_export_ready), (S_WAIT_EVENT (i16 1)) >;
1775
1775
1776
1776
// The first 10 bits of the mode register are the core FP mode on all
1777
1777
// subtargets.
Original file line number Diff line number Diff line change 1
- ; RUN: llc -global-isel=0 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1100 < %s | FileCheck -check-prefix=GCN %s
2
- ; RUN: llc -global-isel -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1100 < %s | FileCheck -check-prefix=GCN %s
1
+ ; RUN: llc -global-isel=0 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1100 < %s | FileCheck -check-prefixes=GCN,GFX11 %s
2
+ ; RUN: llc -global-isel=1 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1100 < %s | FileCheck -check-prefixes=GCN,GFX11 %s
3
+ ; RUN: llc -global-isel=0 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1200 < %s | FileCheck -check-prefixes=GCN,GFX12 %s
4
+ ; RUN: llc -global-isel=1 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1200 < %s | FileCheck -check-prefixes=GCN,GFX12 %s
3
5
4
6
; GCN-LABEL: {{^}}test_wait_event:
5
- ; GCN: s_wait_event 0x0
7
+ ; GFX11: s_wait_event 0x0
8
+ ; GFX12: s_wait_event 0x1
6
9
7
10
define amdgpu_ps void @test_wait_event () #0 {
8
11
entry:
You can’t perform that action at this time.
0 commit comments