[RISCV] Update tests after #124825
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / unknown-processor.ll
blob9cfba8b2e5c04abd27fb16a5a8326a87e15bac35
1 ; RUN: llc -mtriple=amdgcn-- -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s
2 ; RUN: llc -mtriple=r600-- -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s
3 target datalayout = "A5"
5 ; Should not crash when the processor is not recognized and the
6 ; wavefront size feature not set.
8 ; Should also not have fragments of r600 and gcn isa mixed.
10 ; ERROR: 'unknown' is not a recognized processor for this target (ignoring processor)
12 ; GCN-NOT: MOV
13 ; GCN: buffer_store_dword
14 ; GCN: ScratchSize: 8{{$}}
16 ; R600: MOV
17 define amdgpu_kernel void @foo() {
18   %alloca = alloca i32, align 4, addrspace(5)
19   store volatile i32 0, ptr addrspace(5) %alloca
20   ret void