1; RUN: llc -march=amdgcn -mcpu=unknown < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s 2; RUN: llc -march=r600 -mcpu=unknown < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s 3 4; Should not crash when the processor is not recognized and the 5; wavefront size feature not set. 6 7; Should also not have fragments of r600 and gcn isa mixed. 8 9; ERROR: 'unknown' is not a recognized processor for this target (ignoring processor) 10 11; GCN-NOT: MOV 12; GCN: buffer_store_dword 13; GCN: ScratchSize: 8{{$}} 14 15; R600: MOV 16define void @foo() { 17 %alloca = alloca i32, align 4 18 store volatile i32 0, i32* %alloca 19 ret void 20} 21