2017-08-08 02:30:35 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tahiti -mattr=-promote-alloca -verify-machineinstrs < %s
|
2015-01-28 01:27:15 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-promote-alloca -verify-machineinstrs < %s
|
2014-10-10 02:09:15 +08:00
|
|
|
|
|
|
|
; Test that INSERT_SUBREG instructions don't have non-register operands after
|
|
|
|
; instruction selection.
|
|
|
|
|
|
|
|
; Make sure this doesn't crash
|
|
|
|
; CHECK-LABEL: test:
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @test(i64 addrspace(1)* %out) {
|
2014-10-10 02:09:15 +08:00
|
|
|
entry:
|
2018-02-03 00:07:16 +08:00
|
|
|
%tmp0 = alloca [16 x i32], addrspace(5)
|
|
|
|
%tmp1 = ptrtoint [16 x i32] addrspace(5)* %tmp0 to i32
|
2014-10-10 02:09:15 +08:00
|
|
|
%tmp2 = sext i32 %tmp1 to i64
|
|
|
|
store i64 %tmp2, i64 addrspace(1)* %out
|
|
|
|
ret void
|
|
|
|
}
|