Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/AMDGPU/anyext.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | test/CodeGen/R600/anyext.ll@60c9769439b8 |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
1 ; RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck %s | |
2 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s | |
3 | |
4 ; CHECK-LABEL: {{^}}anyext_i1_i32: | |
5 ; CHECK: v_cndmask_b32_e64 | |
6 define void @anyext_i1_i32(i32 addrspace(1)* %out, i32 %cond) { | |
7 entry: | |
8 %0 = icmp eq i32 %cond, 0 | |
9 %1 = zext i1 %0 to i8 | |
10 %2 = xor i8 %1, -1 | |
11 %3 = and i8 %2, 1 | |
12 %4 = zext i8 %3 to i32 | |
13 store i32 %4, i32 addrspace(1)* %out | |
14 ret void | |
15 } |