Matt Arsenault | e261b6e | 2014-07-20 06:11:02 +0000 | [diff] [blame^] | 1 | ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s |
| 2 | |
| 3 | ; SI-LABEL: @sext_bool_icmp_ne |
| 4 | ; 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 |
| 9 | define 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 | } |