1# RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs -run-pass  post-RA-hazard-rec %s -o - | FileCheck -check-prefixes=GCN,GFX9 %s
2# RUN: llc -march=amdgcn -mcpu=fiji -verify-machineinstrs -run-pass  post-RA-hazard-rec %s -o - | FileCheck -check-prefixes=GCN,VI %s
3# RUN: llc -march=amdgcn -mcpu=hawaii -verify-machineinstrs -run-pass  post-RA-hazard-rec %s -o - | FileCheck -check-prefixes=GCN,CI %s
4# RUN: llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs -run-pass  post-RA-hazard-rec %s -o - | FileCheck -check-prefixes=GCN,SI %s
5
6---
7name: m0_sendmsg
8body: |
9  ; GCN-LABEL: name: m0_sendmsg
10  ; GCN:  $m0 = S_MOV_B32 -1
11  ; VI-NEXT: S_NOP 0
12  ; GFX9-NEXT: S_NOP 0
13  ; GCN-NEXT: S_SENDMSG 3, implicit $exec, implicit $m0
14
15  bb.0:
16    $m0 = S_MOV_B32 -1
17    S_SENDMSG 3, implicit $exec, implicit $m0
18    S_ENDPGM 0
19...
20---
21
22name: m0_sendmsghalt
23body: |
24  ; GCN-LABEL: name: m0_sendmsghalt
25  ; GCN:  $m0 = S_MOV_B32 -1
26  ; VI-NEXT: S_NOP 0
27  ; GFX9-NEXT: S_NOP 0
28  ; GCN-NEXT: S_SENDMSGHALT 3, implicit $exec, implicit $m0
29
30  bb.0:
31    $m0 = S_MOV_B32 -1
32    S_SENDMSGHALT 3, implicit $exec, implicit $m0
33    S_ENDPGM 0
34...
35---
36
37name: m0_ttracedata
38body: |
39  ; GCN-LABEL: name: m0_ttracedata
40  ; GCN:  $m0 = S_MOV_B32 -1
41  ; VI-NEXT: S_NOP 0
42  ; GFX9-NEXT: S_NOP 0
43  ; GCN-NEXT: S_TTRACEDATA implicit $m0
44
45  bb.0:
46    $m0 = S_MOV_B32 -1
47    S_TTRACEDATA implicit $m0
48    S_ENDPGM 0
49...
50