1 ; Check that we don't insert unnecessary CC spills
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu
5 declare signext i32 @f()
7 define signext i32 @test(i32* %ptr) {
11 %0 = load i32, i32* %ptr, align 4
12 %tobool = icmp eq i32 %0, 0
13 %call = tail call signext i32 @f()
14 %1 = icmp slt i32 %call, 40
15 %2 = or i1 %tobool, %1
16 %retv = select i1 %2, i32 %call, i32 40