1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -O0 < %s | FileCheck %s
3 target triple = "powerpc64le--linux-gnu"
5 define i1 @Test(double %a) {
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: xscvdpsxws 0, 1
9 ; CHECK-NEXT: mffprwz 3, 0
10 ; CHECK-NEXT: cmplwi 3, 65534
11 ; CHECK-NEXT: crmove 20, 2
14 ; CHECK-NEXT: isel 3, 3, 4, 20
17 %conv = fptoui double %a to i16
18 %cmp = icmp eq i16 %conv, -2