2017-11-06 22:32:33 +08:00
|
|
|
; RUN: llc -march=amdgcn -mtriple=amdgcn---amdgiz -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s
|
|
|
|
; RUN: llc -march=r600 -mtriple=r600---amdgiz -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s
|
|
|
|
target datalayout = "A5"
|
2016-06-03 02:37:16 +08:00
|
|
|
|
|
|
|
; Should not crash when the processor is not recognized and the
|
|
|
|
; wavefront size feature not set.
|
|
|
|
|
|
|
|
; Should also not have fragments of r600 and gcn isa mixed.
|
|
|
|
|
|
|
|
; ERROR: 'unknown' is not a recognized processor for this target (ignoring processor)
|
|
|
|
|
|
|
|
; GCN-NOT: MOV
|
|
|
|
; GCN: buffer_store_dword
|
|
|
|
; GCN: ScratchSize: 8{{$}}
|
|
|
|
|
|
|
|
; R600: MOV
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @foo() {
|
2017-11-06 22:32:33 +08:00
|
|
|
%alloca = alloca i32, align 4, addrspace(5)
|
|
|
|
store volatile i32 0, i32 addrspace(5)* %alloca
|
2016-06-03 02:37:16 +08:00
|
|
|
ret void
|
|
|
|
}
|