2014-07-20 06:11:02 +00:00
|
|
|
; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
|
|
|
|
|
2014-10-01 17:15:17 +00:00
|
|
|
; SI-LABEL: {{^}}sext_bool_icmp_ne:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI: v_cmp_ne_i32
|
|
|
|
; SI-NEXT: v_cndmask_b32
|
|
|
|
; SI-NOT: v_cmp_ne_i32
|
|
|
|
; SI-NOT: v_cndmask_b32
|
|
|
|
; SI: s_endpgm
|
2014-07-20 06:11:02 +00:00
|
|
|
define void @sext_bool_icmp_ne(i1 addrspace(1)* %out, i32 %a, i32 %b) nounwind {
|
|
|
|
%icmp0 = icmp ne i32 %a, %b
|
|
|
|
%ext = sext i1 %icmp0 to i32
|
|
|
|
%icmp1 = icmp ne i32 %ext, 0
|
|
|
|
store i1 %icmp1, i1 addrspace(1)* %out
|
|
|
|
ret void
|
|
|
|
}
|