2016-10-29 04:31:47 +08:00
|
|
|
; RUN: not llc -march=amdgcn -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR %s
|
|
|
|
|
|
|
|
; ERROR: error: scalar registers limit of 104 exceeded (106) in use_too_many_sgprs_tahiti
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @use_too_many_sgprs_tahiti() #0 {
|
2017-06-09 03:03:20 +08:00
|
|
|
call void asm sideeffect "", "~{s[0:7]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[8:15]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[16:23]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[24:31]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[32:39]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[40:47]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[48:55]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[56:63]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[64:71]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[72:79]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[80:87]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[88:95]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[96:103]}" ()
|
|
|
|
call void asm sideeffect "", "~{vcc}" ()
|
2016-10-29 04:31:47 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; ERROR: error: scalar registers limit of 104 exceeded (106) in use_too_many_sgprs_bonaire
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @use_too_many_sgprs_bonaire() #1 {
|
2017-06-09 03:03:20 +08:00
|
|
|
call void asm sideeffect "", "~{s[0:7]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[8:15]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[16:23]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[24:31]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[32:39]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[40:47]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[48:55]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[56:63]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[64:71]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[72:79]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[80:87]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[88:95]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[96:103]}" ()
|
|
|
|
call void asm sideeffect "", "~{vcc}" ()
|
2016-10-29 04:31:47 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2017-04-18 03:48:30 +08:00
|
|
|
; ERROR: error: scalar registers limit of 104 exceeded (108) in use_too_many_sgprs_bonaire_flat_scr
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @use_too_many_sgprs_bonaire_flat_scr() #1 {
|
2017-06-09 03:03:20 +08:00
|
|
|
call void asm sideeffect "", "~{s[0:7]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[8:15]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[16:23]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[24:31]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[32:39]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[40:47]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[48:55]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[56:63]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[64:71]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[72:79]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[80:87]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[88:95]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[96:103]}" ()
|
|
|
|
call void asm sideeffect "", "~{vcc}" ()
|
|
|
|
call void asm sideeffect "", "~{flat_scratch}" ()
|
2016-10-29 04:31:47 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; ERROR: error: scalar registers limit of 96 exceeded (98) in use_too_many_sgprs_iceland
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @use_too_many_sgprs_iceland() #2 {
|
2017-06-09 03:03:20 +08:00
|
|
|
call void asm sideeffect "", "~{vcc}" ()
|
|
|
|
call void asm sideeffect "", "~{s[0:7]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[8:15]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[16:23]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[24:31]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[32:39]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[40:47]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[48:55]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[56:63]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[64:71]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[72:79]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[80:87]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[88:95]}" ()
|
2016-10-29 04:31:47 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-12-10 03:49:40 +08:00
|
|
|
; ERROR: error: addressable scalar registers limit of 102 exceeded (103) in use_too_many_sgprs_fiji
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @use_too_many_sgprs_fiji() #3 {
|
2017-06-09 03:03:20 +08:00
|
|
|
call void asm sideeffect "", "~{s[0:7]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[8:15]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[16:23]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[24:31]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[32:39]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[40:47]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[48:55]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[56:63]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[64:71]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[72:79]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[80:87]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[88:95]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[96:99]}" ()
|
|
|
|
call void asm sideeffect "", "~{s[100:101]}" ()
|
|
|
|
call void asm sideeffect "", "~{s102}" ()
|
2016-10-29 04:31:47 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { nounwind "target-cpu"="tahiti" }
|
|
|
|
attributes #1 = { nounwind "target-cpu"="bonaire" }
|
|
|
|
attributes #2 = { nounwind "target-cpu"="iceland" }
|
|
|
|
attributes #3 = { nounwind "target-cpu"="fiji" }
|