blob: dfb58d54796c98453b44d08ac3a6ed0286f9fc1f [file] [log] [blame]
Tom Stellard49f8bfd2015-01-06 18:00:21 +00001; RUN: llc -march=amdgcn -mcpu=SI -mattr=-promote-alloca -verify-machineinstrs < %s
Tom Stellard8dd392e2014-10-09 18:09:15 +00002
3; Test that INSERT_SUBREG instructions don't have non-register operands after
4; instruction selection.
5
6; Make sure this doesn't crash
7; CHECK-LABEL: test:
8define void @test(i64 addrspace(1)* %out) {
9entry:
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
14 ret void
15}