1 ; RUN: not llc -march=amdgcn -verify-machineinstrs < %s 2>&1 | FileCheck %s
3 ; CHECK: invalid type for register "exec".
5 declare i32 @llvm.read_register.i32(metadata) #0
7 define amdgpu_kernel void @test_invalid_read_exec(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