aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/AMDGPU/unknown-processor.ll
blob: e25f2235993f54b18193f36914e22266e3a291f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llc -march=amdgcn -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s
; RUN: llc -march=r600 -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s

; Should not crash when the processor is not recognized and the
; wavefront size feature not set.

; Should also not have fragments of r600 and gcn isa mixed.

; ERROR: 'unknown' is not a recognized processor for this target (ignoring processor)

; GCN-NOT: MOV
; GCN: buffer_store_dword
; GCN: ScratchSize: 8{{$}}

; R600: MOV
define amdgpu_kernel void @foo() {
  %alloca = alloca i32, align 4
  store volatile i32 0, i32* %alloca
  ret void
}