blob: b7ed34bbf09b77262d66d0321421d2c24558d4d0 [file] [log] [blame]
Bjorn Petterssonb14afd42017-01-09 12:03:50 +00001; RUN: llc -march=r600 -mcpu=cypress -start-after safe-stack %s -o - | FileCheck %s
2; Don't crash
3
4; CHECK: MAX_UINT
Matt Arsenault3dbeefa2017-03-21 21:39:51 +00005define amdgpu_kernel void @test(i64 addrspace(1)* %out) {
Bjorn Petterssonb14afd42017-01-09 12:03:50 +00006bb:
7 store i64 2, i64 addrspace(1)* %out
8 %tmp = load i64, i64 addrspace(1)* %out
9 br label %jump
10
11jump: ; preds = %bb
12 %tmp1 = icmp ugt i64 %tmp, 4
13 %umax = select i1 %tmp1, i64 %tmp, i64 4
14 store i64 %umax, i64 addrspace(1)* %out
15 ret void
16}