1 ; Test that multiple select statements using the same condition are expanded
2 ; into a single conditional branch.
4 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
6 define void @test(i32 signext %positive, double %base, double %offset, double* %rmin, double* %rmax) {
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