1; Test that multiple select statements using the same condition are expanded
2; into a single conditional branch.
3;
4; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
5
6define void @test(i32 signext %positive, double %base, double %offset, double* %rmin, double* %rmax) {
7entry:
8; CHECK: cijlh %r2, 0,
9; CHECK-NOT: cij
10; CHECK-NOT: je
11; CHECK-NOT: jlh
12
13  %tobool = icmp eq i32 %positive, 0
14  %add = fadd double %base, %offset
15  %min = select i1 %tobool, double %add, double %base
16  %max = select i1 %tobool, double %base, double %add
17  store double %min, double* %rmin, align 8
18  store double %max, double* %rmax, align 8
19  ret void
20}
21
22