Mercurial > hg > Members > tobaru > cbc > CbC_llvm
annotate test/CodeGen/AMDGPU/r600-legalize-umax-bug.ll @ 128:c347d3398279 default tip
fix
author | mir3636 |
---|---|
date | Wed, 06 Dec 2017 14:37:17 +0900 |
parents | 803732b1fca8 |
children |
rev | line source |
---|---|
121 | 1 ; RUN: llc -march=r600 -mcpu=cypress -start-after safe-stack %s -o - | FileCheck %s |
2 ; Don't crash | |
3 | |
4 ; CHECK: MAX_UINT | |
5 define amdgpu_kernel void @test(i64 addrspace(1)* %out) { | |
6 bb: | |
7 store i64 2, i64 addrspace(1)* %out | |
8 %tmp = load i64, i64 addrspace(1)* %out | |
9 br label %jump | |
10 | |
11 jump: ; 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 } |