1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=amdgcn -mcpu=kaveri -verify-machineinstrs | FileCheck %s --check-prefix=GCN --check-prefix=CI --check-prefix=NO-XNACK 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=amdgcn -mcpu=fiji -verify-machineinstrs | FileCheck %s --check-prefix=GCN --check-prefix=VI --check-prefix=NO-XNACK 3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=amdgcn -mcpu=carrizo -mattr=+xnack -verify-machineinstrs | FileCheck %s --check-prefix=GCN --check-prefix=VI --check-prefix=XNACK 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; GCN-LABEL: {{^}}no_vcc_no_flat: 6*9880d681SAndroid Build Coastguard Worker; NO-XNACK: ; NumSgprs: 8 7*9880d681SAndroid Build Coastguard Worker; XNACK: ; NumSgprs: 12 8*9880d681SAndroid Build Coastguard Workerdefine void @no_vcc_no_flat() { 9*9880d681SAndroid Build Coastguard Workerentry: 10*9880d681SAndroid Build Coastguard Worker call void asm sideeffect "", "~{SGPR7}"() 11*9880d681SAndroid Build Coastguard Worker ret void 12*9880d681SAndroid Build Coastguard Worker} 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker; GCN-LABEL: {{^}}vcc_no_flat: 15*9880d681SAndroid Build Coastguard Worker; NO-XNACK: ; NumSgprs: 10 16*9880d681SAndroid Build Coastguard Worker; XNACK: ; NumSgprs: 12 17*9880d681SAndroid Build Coastguard Workerdefine void @vcc_no_flat() { 18*9880d681SAndroid Build Coastguard Workerentry: 19*9880d681SAndroid Build Coastguard Worker call void asm sideeffect "", "~{SGPR7},~{VCC}"() 20*9880d681SAndroid Build Coastguard Worker ret void 21*9880d681SAndroid Build Coastguard Worker} 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Worker; GCN-LABEL: {{^}}no_vcc_flat: 24*9880d681SAndroid Build Coastguard Worker; CI: ; NumSgprs: 12 25*9880d681SAndroid Build Coastguard Worker; VI: ; NumSgprs: 14 26*9880d681SAndroid Build Coastguard Workerdefine void @no_vcc_flat() { 27*9880d681SAndroid Build Coastguard Workerentry: 28*9880d681SAndroid Build Coastguard Worker call void asm sideeffect "", "~{SGPR7},~{FLAT_SCR}"() 29*9880d681SAndroid Build Coastguard Worker ret void 30*9880d681SAndroid Build Coastguard Worker} 31*9880d681SAndroid Build Coastguard Worker 32*9880d681SAndroid Build Coastguard Worker; GCN-LABEL: {{^}}vcc_flat: 33*9880d681SAndroid Build Coastguard Worker; CI: ; NumSgprs: 12 34*9880d681SAndroid Build Coastguard Worker; VI: ; NumSgprs: 14 35*9880d681SAndroid Build Coastguard Workerdefine void @vcc_flat() { 36*9880d681SAndroid Build Coastguard Workerentry: 37*9880d681SAndroid Build Coastguard Worker call void asm sideeffect "", "~{SGPR7},~{VCC},~{FLAT_SCR}"() 38*9880d681SAndroid Build Coastguard Worker ret void 39*9880d681SAndroid Build Coastguard Worker} 40