1 ; RUN: llc -march=amdgcn -mcpu=SI -mattr=-promote-alloca -verify-machineinstrs < %s
3 ; Test that INSERT_SUBREG instructions don't have non-register operands after
4 ; instruction selection.
6 ; Make sure this doesn't crash
8 define void @test(i64 addrspace(1)* %out) {
10 %tmp0 = alloca [16 x i32]
11 %tmp1 = ptrtoint [16 x i32]* %tmp0 to i32
12 %tmp2 = sext i32 %tmp1 to i64
13 store i64 %tmp2, i64 addrspace(1)* %out