Home | History | Annotate | Download | only in AMDGPU
      1 ; RUN: llc < %s -march=amdgcn -mcpu=kaveri -verify-machineinstrs | FileCheck %s --check-prefix=GCN --check-prefix=CI
      2 ; RUN: llc < %s -march=amdgcn -mcpu=fiji -verify-machineinstrs | FileCheck %s --check-prefix=GCN --check-prefix=VI
      3 
      4 ; GCN-LABEL: {{^}}no_vcc_no_flat:
      5 ; GCN: ; NumSgprs: 8
      6 define void @no_vcc_no_flat() {
      7 entry:
      8   call void asm sideeffect "", "~{SGPR7}"()
      9   ret void
     10 }
     11 
     12 ; GCN-LABEL: {{^}}vcc_no_flat:
     13 ; GCN: ; NumSgprs: 10
     14 define void @vcc_no_flat() {
     15 entry:
     16   call void asm sideeffect "", "~{SGPR7},~{VCC}"()
     17   ret void
     18 }
     19 
     20 ; GCN-LABEL: {{^}}no_vcc_flat:
     21 ; CI: ; NumSgprs: 12
     22 ; VI: ; NumSgprs: 14
     23 define void @no_vcc_flat() {
     24 entry:
     25   call void asm sideeffect "", "~{SGPR7},~{FLAT_SCR}"()
     26   ret void
     27 }
     28 
     29 ; GCN-LABEL: {{^}}vcc_flat:
     30 ; CI: ; NumSgprs: 12
     31 ; VI: ; NumSgprs: 14
     32 define void @vcc_flat() {
     33 entry:
     34   call void asm sideeffect "", "~{SGPR7},~{VCC},~{FLAT_SCR}"()
     35   ret void
     36 }
     37