1 ; RUN: llc -march=hexagon -hexagon-gen-mux-threshold=0 < %s | FileCheck %s --check-prefix=CHECK0
2 ; RUN: llc -march=hexagon -hexagon-gen-mux-threshold=4 < %s | FileCheck %s --check-prefix=CHECK4
4 ; Generate mux with threshold = 0:
5 ; CHECK0: [[R0:r[0-9]+]] = add(r0,#-48)
6 ; CHECK0: [[P0:p[0-3]]] = cmpb.gtu([[R0]],#9)
7 ; CHECK0: r0 = mux([[P0]],#0,#1)
9 ; No mux for threshold = 4:
12 define zeroext i8 @f0(i8 zeroext %a0) #0 {
15 %v1 = icmp ult i8 %v0, 10
16 %v2 = zext i1 %v1 to i8
20 attributes #0 = { nounwind readnone }