2016-12-10 03:49:48 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=kaveri -verify-machineinstrs < %s | FileCheck -check-prefix=CI -check-prefix=GCN %s
|
|
|
|
; RUN: llc -march=amdgcn -mcpu=fiji -verify-machineinstrs < %s | FileCheck -check-prefix=VI-NOXNACK -check-prefix=GCN %s
|
2016-12-10 03:49:54 +08:00
|
|
|
|
|
|
|
; RUN: llc -march=amdgcn -mcpu=carrizo -mattr=-xnack -verify-machineinstrs < %s | FileCheck -check-prefix=VI-NOXNACK -check-prefix=GCN %s
|
|
|
|
; RUN: llc -march=amdgcn -mcpu=stoney -mattr=-xnack -verify-machineinstrs < %s | FileCheck -check-prefix=VI-NOXNACK -check-prefix=GCN %s
|
|
|
|
|
2016-12-10 03:49:48 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=carrizo -verify-machineinstrs < %s | FileCheck -check-prefix=VI-XNACK -check-prefix=GCN %s
|
2017-01-25 06:02:15 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=stoney -verify-machineinstrs < %s | FileCheck -check-prefix=VI-XNACK -check-prefix=GCN %s
|
2016-07-27 00:45:50 +08:00
|
|
|
|
2016-12-10 03:49:48 +08:00
|
|
|
; RUN: llc -march=amdgcn -mtriple=amdgcn--amdhsa -mcpu=kaveri -verify-machineinstrs < %s | FileCheck -check-prefix=HSA-CI -check-prefix=GCN %s
|
|
|
|
; RUN: llc -march=amdgcn -mtriple=amdgcn--amdhsa -mcpu=carrizo -mattr=-xnack -verify-machineinstrs < %s | FileCheck -check-prefix=HSA-VI-NOXNACK -check-prefix=GCN %s
|
|
|
|
; RUN: llc -march=amdgcn -mtriple=amdgcn--amdhsa -mcpu=carrizo -mattr=+xnack -verify-machineinstrs < %s | FileCheck -check-prefix=HSA-VI-XNACK -check-prefix=GCN %s
|
2015-12-18 01:05:09 +08:00
|
|
|
|
|
|
|
; GCN-LABEL: {{^}}no_vcc_no_flat:
|
2016-12-10 03:49:48 +08:00
|
|
|
; HSA-CI: is_xnack_enabled = 0
|
|
|
|
; HSA-VI-NOXNACK: is_xnack_enabled = 0
|
|
|
|
; HSA-VI-XNACK: is_xnack_enabled = 1
|
2016-07-27 00:45:50 +08:00
|
|
|
|
2016-12-10 03:49:48 +08:00
|
|
|
; CI: ; NumSgprs: 8
|
|
|
|
; VI-NOXNACK: ; NumSgprs: 8
|
|
|
|
; VI-XNACK: ; NumSgprs: 12
|
2015-12-18 01:05:09 +08:00
|
|
|
define void @no_vcc_no_flat() {
|
|
|
|
entry:
|
|
|
|
call void asm sideeffect "", "~{SGPR7}"()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; GCN-LABEL: {{^}}vcc_no_flat:
|
2016-12-10 03:49:48 +08:00
|
|
|
; HSA-CI: is_xnack_enabled = 0
|
|
|
|
; HSA-VI-NOXNACK: is_xnack_enabled = 0
|
|
|
|
; HSA-VI-XNACK: is_xnack_enabled = 1
|
2016-07-27 00:45:50 +08:00
|
|
|
|
2016-12-10 03:49:48 +08:00
|
|
|
; CI: ; NumSgprs: 10
|
|
|
|
; VI-NOXNACK: ; NumSgprs: 10
|
|
|
|
; VI-XNACK: ; NumSgprs: 12
|
2015-12-18 01:05:09 +08:00
|
|
|
define void @vcc_no_flat() {
|
|
|
|
entry:
|
|
|
|
call void asm sideeffect "", "~{SGPR7},~{VCC}"()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; GCN-LABEL: {{^}}no_vcc_flat:
|
2016-12-10 03:49:48 +08:00
|
|
|
; HSA-CI: is_xnack_enabled = 0
|
|
|
|
; HSA-VI-NOXNACK: is_xnack_enabled = 0
|
|
|
|
; HSA-VI-XNACK: is_xnack_enabled = 1
|
2016-07-27 00:45:50 +08:00
|
|
|
|
2016-12-10 03:49:48 +08:00
|
|
|
; CI: ; NumSgprs: 8
|
|
|
|
; VI-NOXNACK: ; NumSgprs: 8
|
|
|
|
; VI-XNACK: ; NumSgprs: 12
|
|
|
|
; HSA-CI: ; NumSgprs: 8
|
|
|
|
; HSA-VI-NOXNACK: ; NumSgprs: 8
|
|
|
|
; HSA-VI-XNACK: ; NumSgprs: 12
|
2015-12-18 01:05:09 +08:00
|
|
|
define void @no_vcc_flat() {
|
|
|
|
entry:
|
|
|
|
call void asm sideeffect "", "~{SGPR7},~{FLAT_SCR}"()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; GCN-LABEL: {{^}}vcc_flat:
|
2016-07-27 00:45:50 +08:00
|
|
|
; HSA-NOXNACK: is_xnack_enabled = 0
|
|
|
|
; HSA-XNACK: is_xnack_enabled = 1
|
|
|
|
|
2016-12-10 03:49:48 +08:00
|
|
|
; CI: ; NumSgprs: 10
|
|
|
|
; VI-NOXNACK: ; NumSgprs: 10
|
|
|
|
; VI-XNACK: ; NumSgprs: 12
|
|
|
|
; HSA-CI: ; NumSgprs: 10
|
|
|
|
; HSA-VI-NOXNACK: ; NumSgprs: 10
|
|
|
|
; HSA-VI-XNACK: ; NumSgprs: 12
|
2015-12-18 01:05:09 +08:00
|
|
|
define void @vcc_flat() {
|
|
|
|
entry:
|
|
|
|
call void asm sideeffect "", "~{SGPR7},~{VCC},~{FLAT_SCR}"()
|
|
|
|
ret void
|
|
|
|
}
|