Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/AMDGPU/trunc-cmp-constant.ll @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
96:6418606d0ead | 100:7d135dc70f03 |
---|---|
2 ; RUN: llc -march=amdgcn -mcpu=tonga -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 |
3 | 3 |
4 ; FUNC-LABEL {{^}}sextload_i1_to_i32_trunc_cmp_eq_0: | 4 ; FUNC-LABEL {{^}}sextload_i1_to_i32_trunc_cmp_eq_0: |
5 ; SI: buffer_load_ubyte [[LOAD:v[0-9]+]] | 5 ; SI: buffer_load_ubyte [[LOAD:v[0-9]+]] |
6 ; SI: v_and_b32_e32 [[TMP:v[0-9]+]], 1, [[LOAD]] | 6 ; SI: v_and_b32_e32 [[TMP:v[0-9]+]], 1, [[LOAD]] |
7 ; SI: v_cmp_eq_i32_e32 vcc, 1, [[TMP]]{{$}} | 7 ; SI: v_cmp_eq_i32_e32 vcc, 0, [[TMP]]{{$}} |
8 ; SI: s_xor_b64 s{{\[[0-9]+:[0-9]+\]}}, vcc, -1{{$}} | |
9 ; SI: v_cndmask_b32_e64 | 8 ; SI: v_cndmask_b32_e64 |
10 ; SI: buffer_store_byte | 9 ; SI: buffer_store_byte |
11 define void @sextload_i1_to_i32_trunc_cmp_eq_0(i1 addrspace(1)* %out, i1 addrspace(1)* %in) nounwind { | 10 define void @sextload_i1_to_i32_trunc_cmp_eq_0(i1 addrspace(1)* %out, i1 addrspace(1)* %in) nounwind { |
12 %load = load i1, i1 addrspace(1)* %in | 11 %load = load i1, i1 addrspace(1)* %in |
13 %ext = sext i1 %load to i32 | 12 %ext = sext i1 %load to i32 |