]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/R600/anyext.ll
Vendor import of llvm RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1):
[FreeBSD/FreeBSD.git] / test / CodeGen / R600 / anyext.ll
1 ; RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck %s
2
3 ; CHECK-LABEL: {{^}}anyext_i1_i32:
4 ; CHECK: v_cndmask_b32_e64
5 define void @anyext_i1_i32(i32 addrspace(1)* %out, i32 %cond) {
6 entry:
7   %0 = icmp eq i32 %cond, 0
8   %1 = zext i1 %0 to i8
9   %2 = xor i8 %1, -1
10   %3 = and i8 %2, 1
11   %4 = zext i8 %3 to i32
12   store i32 %4, i32 addrspace(1)* %out
13   ret void
14 }