You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
parent
5cd5df71cc
commit
8e12397d70
21
external/llvm/test/CodeGen/AMDGPU/unknown-processor.ll
vendored
Normal file
21
external/llvm/test/CodeGen/AMDGPU/unknown-processor.ll
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
; RUN: llc -march=amdgcn -mtriple=amdgcn---amdgiz -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=GCN %s
|
||||
; RUN: llc -march=r600 -mtriple=r600---amdgiz -mcpu=unknown -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefix=ERROR -check-prefix=R600 %s
|
||||
target datalayout = "A5"
|
||||
|
||||
; 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, addrspace(5)
|
||||
store volatile i32 0, i32 addrspace(5)* %alloca
|
||||
ret void
|
||||
}
|
Reference in New Issue
Block a user