comparison test/CodeGen/R600/select-i1.ll @ 83:60c9769439b8

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents 54457678186b
children
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
1 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s 1 ; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
2 ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
2 3
3 ; FIXME: This should go in existing select.ll test, except the current testcase there is broken on SI 4 ; FIXME: This should go in existing select.ll test, except the current testcase there is broken on SI
4 5
5 ; FUNC-LABEL: @select_i1 6 ; FUNC-LABEL: {{^}}select_i1:
6 ; SI: V_CNDMASK_B32 7 ; SI: v_cndmask_b32
7 ; SI-NOT: V_CNDMASK_B32 8 ; SI-NOT: v_cndmask_b32
8 define void @select_i1(i1 addrspace(1)* %out, i32 %cond, i1 %a, i1 %b) nounwind { 9 define void @select_i1(i1 addrspace(1)* %out, i32 %cond, i1 %a, i1 %b) nounwind {
9 %cmp = icmp ugt i32 %cond, 5 10 %cmp = icmp ugt i32 %cond, 5
10 %sel = select i1 %cmp, i1 %a, i1 %b 11 %sel = select i1 %cmp, i1 %a, i1 %b
11 store i1 %sel, i1 addrspace(1)* %out, align 4 12 store i1 %sel, i1 addrspace(1)* %out, align 4
12 ret void 13 ret void