Tom Stellard | 49f8bfd | 2015-01-06 18:00:21 +0000 | [diff] [blame^] | 1 | ; RUN: llc -march=amdgcn -mcpu=SI -mattr=-promote-alloca -verify-machineinstrs < %s |
Tom Stellard | 8dd392e | 2014-10-09 18:09:15 +0000 | [diff] [blame] | 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 | } |