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: xori 3, 3, 65534
11 ; CHECK-NEXT: cntlzw 3, 3
12 ; CHECK-NEXT: srwi 3, 3, 5
13 ; CHECK-NEXT: # implicit-def: $x4
18 %conv = fptoui double %a to i16
19 %cmp = icmp eq i16 %conv, -2