Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison test/CodeGen/R600/anyext.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 < %s -march=r600 -mcpu=verde -verify-machineinstrs | FileCheck %s | 1 ; RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck %s |
2 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s | |
2 | 3 |
3 ; CHECK-LABEL: @anyext_i1_i32 | 4 ; CHECK-LABEL: {{^}}anyext_i1_i32: |
4 ; CHECK: V_CNDMASK_B32_e64 | 5 ; CHECK: v_cndmask_b32_e64 |
5 define void @anyext_i1_i32(i32 addrspace(1)* %out, i32 %cond) { | 6 define void @anyext_i1_i32(i32 addrspace(1)* %out, i32 %cond) { |
6 entry: | 7 entry: |
7 %0 = icmp eq i32 %cond, 0 | 8 %0 = icmp eq i32 %cond, 0 |
8 %1 = zext i1 %0 to i8 | 9 %1 = zext i1 %0 to i8 |
9 %2 = xor i8 %1, -1 | 10 %2 = xor i8 %1, -1 |