• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: not llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs < %s 2>&1 | FileCheck %s
2
3; CHECK: invalid register "flat_scratch_lo" for subtarget.
4
5declare i32 @llvm.read_register.i32(metadata) #0
6
7define amdgpu_kernel void @test_invalid_read_flat_scratch_lo(i32 addrspace(1)* %out) nounwind {
8  store volatile i32 0, i32 addrspace(3)* undef
9  %m0 = call i32 @llvm.read_register.i32(metadata !0)
10  store i32 %m0, i32 addrspace(1)* %out
11  ret void
12}
13
14!0 = !{!"flat_scratch_lo"}
15