llvm.org GIT mirror llvm / c95a737 test / CodeGen / AMDGPU / read-register-invalid-type-i64.ll
c95a737

Tree @c95a737 (Download .tar.gz)

read-register-invalid-type-i64.ll @c95a737raw · history · 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 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"}