R600: Try to use lower types for 64bit division if possible
[oota-llvm.git] / test / CodeGen / R600 / insert_subreg.ll
1 ; RUN: llc -march=amdgcn -mcpu=SI -mattr=-promote-alloca -verify-machineinstrs < %s
2
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:
8 define void @test(i64 addrspace(1)* %out) {
9 entry:
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 }