1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -march=hexagon -O2 < %s | FileCheck %s
4 define i32 @f0(i32 %a0, i32 %a1) #0 {
6 ; CHECK: .cfi_startproc
7 ; CHECK-NEXT: // %bb.0: // %b0
9 ; CHECK-NEXT: p0 = cmp.gt(r1,#99)
10 ; CHECK-NEXT: p1 = cmp.gt(r1,r0)
13 ; CHECK-NEXT: r0 = mux(p0,##321,#123)
16 ; CHECK-NEXT: if (p1) r0 = #0
17 ; CHECK-NEXT: jumpr r31
20 %v0 = icmp slt i32 %a0, %a1
21 br i1 %v0, label %b1, label %b2
27 %v1 = icmp slt i32 %a1, 100
28 %v2 = select i1 %v1, i32 123, i32 321