summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/AMDGPU/reject-agpr-usage-before-gfx908.ll
blob: fb9964ddcec79343aa3a43b52a96916d04ec114d (plain)
1
2
3
4
5
6
7
8
9
; RUN: not llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefixes=GCN %s
; RUN: not llc -march=amdgcn -mcpu=gfx906 -verify-machineinstrs < %s 2>&1 | FileCheck -check-prefixes=GCN %s

; GCN:     couldn't allocate input reg for constraint 'a'

define amdgpu_kernel void @used_1a() {
  call void asm sideeffect "", "a"(i32 1)
  ret void
}