You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
635 B

; RUN: llc -march=amdgcn -mcpu=unknown < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s
; RUN: llc -march=r600 -mcpu=unknown < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s
; 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
define void @foo() {
%alloca = alloca i32, align 4
store volatile i32 0, i32* %alloca
ret void
}