blob: 0ed601095164f1ea92066ae2c85fefb3f0d7d19c [file] [log] [blame]
Matt Arsenaulte261b6e2014-07-20 06:11:02 +00001; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
2
Tom Stellard79243d92014-10-01 17:15:17 +00003; SI-LABEL: {{^}}sext_bool_icmp_ne:
Matt Arsenaulte261b6e2014-07-20 06:11:02 +00004; SI: V_CMP_NE_I32
5; SI-NEXT: V_CNDMASK_B32
6; SI-NOT: V_CMP_NE_I32
7; SI-NOT: V_CNDMASK_B32
8; SI: S_ENDPGM
9define void @sext_bool_icmp_ne(i1 addrspace(1)* %out, i32 %a, i32 %b) nounwind {
10 %icmp0 = icmp ne i32 %a, %b
11 %ext = sext i1 %icmp0 to i32
12 %icmp1 = icmp ne i32 %ext, 0
13 store i1 %icmp1, i1 addrspace(1)* %out
14 ret void
15}