CodeGen: extend f16 conversions to permit types > float.
[oota-llvm.git] / test / CodeGen / R600 / selectcc.ll
1 ; RUN: llc -verify-machineinstrs -march=r600 -mcpu=redwood < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s
2 ; RUN: llc -verify-machineinstrs -march=r600 -mcpu=SI < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
3
4 ; FUNC-LABEL: @selectcc_i64
5 ; EG: XOR_INT
6 ; EG: XOR_INT
7 ; EG: OR_INT
8 ; EG: CNDE_INT
9 ; EG: CNDE_INT
10 ; SI: V_CMP_EQ_I64
11 ; SI: V_CNDMASK
12 ; SI: V_CNDMASK
13 define void @selectcc_i64(i64 addrspace(1) * %out, i64 %lhs, i64 %rhs, i64 %true, i64 %false) {
14 entry:
15   %0 = icmp eq i64 %lhs, %rhs
16   %1 = select i1 %0, i64 %true, i64 %false
17   store i64 %1, i64 addrspace(1)* %out
18   ret void
19 }