2015-01-06 19:00:21 +01:00
|
|
|
; RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck %s
|
2015-01-27 18:27:15 +01:00
|
|
|
; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s
|
2014-02-14 00:34:13 +01:00
|
|
|
|
2014-10-01 19:15:17 +02:00
|
|
|
; CHECK-LABEL: {{^}}anyext_i1_i32:
|
2014-11-05 15:50:53 +01:00
|
|
|
; CHECK: v_cndmask_b32_e64
|
2014-02-14 00:34:13 +01:00
|
|
|
define void @anyext_i1_i32(i32 addrspace(1)* %out, i32 %cond) {
|
|
|
|
entry:
|
|
|
|
%0 = icmp eq i32 %cond, 0
|
|
|
|
%1 = zext i1 %0 to i8
|
|
|
|
%2 = xor i8 %1, -1
|
|
|
|
%3 = and i8 %2, 1
|
|
|
|
%4 = zext i8 %3 to i32
|
|
|
|
store i32 %4, i32 addrspace(1)* %out
|
|
|
|
ret void
|
|
|
|
}
|