brintos

brintos / llvm-project-archived public Read only

0
0
Text · 683 B · 6b317de Raw
21 lines · plain
1; RUN: llc -mtriple=amdgcn-- -mcpu=unknown < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s2; RUN: llc -mtriple=r600-- -mcpu=unknown < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s3 4; Should not crash when the processor is not recognized and the5; 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: MOV12; GCN: buffer_store_dword13; GCN: ScratchSize: 8{{$}}14 15; R600: MOV16define amdgpu_kernel void @foo() {17  %alloca = alloca i32, align 4, addrspace(5)18  store volatile i32 0, ptr addrspace(5) %alloca19  ret void20}21