blob: 25a700a943d2aa0b4a0bab9bc459ac483e2ff924 [file] [log] [blame]
Matt Arsenault8e001942016-06-02 18:37:16 +00001; 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
Matt Arsenault3dbeefa2017-03-21 21:39:51 +000016define amdgpu_kernel void @foo() {
Matt Arsenault8e001942016-06-02 18:37:16 +000017 %alloca = alloca i32, align 4
18 store volatile i32 0, i32* %alloca
19 ret void
20}