blob: 8e248fdfea4ce81a741410e176c7aff5f0736436 [file] [log] [blame]
; RUN: not llc -march=amdgcn -verify-machineinstrs < %s 2>&1 | FileCheck %s
; CHECK: invalid type for register "m0".
declare i64 @llvm.read_register.i64(metadata) #0
define amdgpu_kernel void @test_invalid_read_m0(i64 addrspace(1)* %out) #0 {
%exec = call i64 @llvm.read_register.i64(metadata !0)
store i64 %exec, i64 addrspace(1)* %out
ret void
}
!0 = !{!"m0"}