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