-; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx600 -verify-machineinstrs < %s | FileCheck -check-prefixes=FUNC,GCN %s
-; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx700 -verify-machineinstrs < %s | FileCheck -check-prefixes=FUNC,GCN %s
-; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx800 -verify-machineinstrs < %s | FileCheck -check-prefixes=FUNC,GCN %s
-; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefixes=FUNC,GCN %s
+; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx600 -verify-machineinstrs < %s | FileCheck -check-prefixes=FUNC,GCN,GCN9 %s
+; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx700 -verify-machineinstrs < %s | FileCheck -check-prefixes=FUNC,GCN,GCN9 %s
+; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -verify-machineinstrs < %s | FileCheck -check-prefixes=FUNC,GCN,GCN9 %s
+; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefixes=FUNC,GCN,GCN9 %s
+; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx1010 -verify-machineinstrs < %s | FileCheck -check-prefixes=FUNC,GCN,GCN10 %s
; FUNC-LABEL: {{^}}system_acquire:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
-; GCN-NEXT: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @system_acquire() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN: s_endpgm
define amdgpu_kernel void @system_release() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
-; GCN: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @system_acq_rel() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
-; GCN: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @system_seq_cst() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0){{$}}
-; GCN-NEXT: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @system_one_as_acquire() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0){{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN: s_endpgm
define amdgpu_kernel void @system_one_as_release() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0){{$}}
-; GCN: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @system_one_as_acq_rel() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0){{$}}
-; GCN: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @system_one_as_seq_cst() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
-; GCN-NEXT: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @agent_acquire() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN: s_endpgm
define amdgpu_kernel void @agent_release() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
-; GCN: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @agent_acq_rel() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
-; GCN: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @agent_seq_cst() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0){{$}}
-; GCN-NEXT: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @agent_one_as_acquire() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0){{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN: s_endpgm
define amdgpu_kernel void @agent_one_as_release() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0){{$}}
-; GCN: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @agent_one_as_acq_rel() {
entry:
; GCN: %bb.0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_waitcnt vmcnt(0){{$}}
-; GCN: buffer_wbinvl1{{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
+; GCN-NOT: buffer_wbinvl1{{$}}
; GCN: s_endpgm
define amdgpu_kernel void @agent_one_as_seq_cst() {
entry:
; FUNC-LABEL: {{^}}workgroup_acquire:
; GCN: %bb.0
-; GCN-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN9-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_endpgm
define amdgpu_kernel void @workgroup_acquire() {
; FUNC-LABEL: {{^}}workgroup_release:
; GCN: %bb.0
-; GCN-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN9-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_endpgm
define amdgpu_kernel void @workgroup_release() {
; FUNC-LABEL: {{^}}workgroup_acq_rel:
; GCN: %bb.0
-; GCN-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN9-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_endpgm
define amdgpu_kernel void @workgroup_acq_rel() {
; FUNC-LABEL: {{^}}workgroup_seq_cst:
; GCN: %bb.0
; GCN-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN9-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_endpgm
define amdgpu_kernel void @workgroup_seq_cst() {
; FUNC-LABEL: {{^}}workgroup_one_as_acquire:
; GCN: %bb.0
-; GCN-NOT: s_waitcnt vmcnt(0){{$}}
+; GCN9-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt vmcnt(0)
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_endpgm
define amdgpu_kernel void @workgroup_one_as_acquire() {
; FUNC-LABEL: {{^}}workgroup_one_as_release:
; GCN: %bb.0
-; GCN-NOT: s_waitcnt vmcnt(0){{$}}
+; GCN9-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt vmcnt(0)
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_endpgm
define amdgpu_kernel void @workgroup_one_as_release() {
; FUNC-LABEL: {{^}}workgroup_one_as_acq_rel:
; GCN: %bb.0
-; GCN-NOT: s_waitcnt vmcnt(0){{$}}
+; GCN9-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt vmcnt(0)
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_endpgm
define amdgpu_kernel void @workgroup_one_as_acq_rel() {
; FUNC-LABEL: {{^}}workgroup_one_as_seq_cst:
; GCN: %bb.0
-; GCN-NOT: s_waitcnt vmcnt(0){{$}}
+; GCN9-NOT: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
+; GCN10: s_waitcnt vmcnt(0)
+; GCN10: s_waitcnt_vscnt null, 0x0
; GCN-NOT: ATOMIC_FENCE
; GCN: s_endpgm
define amdgpu_kernel void @workgroup_one_as_seq_cst() {