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