brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 5f4b1db Raw
43 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s3;4; CGP will duplicate and sink the 'icmp' to the users. Test that it does the5; same for the 'and' so that tmll:s result and the nilf is eliminated.6 7define void @fun(i32 %Arg) {8; CHECK-LABEL: fun:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    ahi %r2, 111; CHECK-NEXT:    lhi %r0, 012; CHECK-NEXT:    cijlh %r0, 0, .LBB0_213; CHECK-NEXT:  # %bb.1: # %bb114; CHECK-NEXT:    tmll %r2, 1615; CHECK-NEXT:    lochie %r0, 116; CHECK-NEXT:    st %r0, 0(%r1)17; CHECK-NEXT:    br %r1418; CHECK-NEXT:  .LBB0_2: # %bb219; CHECK-NEXT:    tmll %r2, 1620; CHECK-NEXT:    lhi %r0, 1621; CHECK-NEXT:    lochie %r0, 422; CHECK-NEXT:    st %r0, 0(%r1)23; CHECK-NEXT:    br %r1424entry:25  %A = add i32 %Arg, 126  %N = and i32 %A, 1627  %i4 = icmp eq i32 %N, 028  br i1 undef, label %bb1, label %bb229 30bb1:31  %i9 = zext i1 %i4 to i3232  store i32 %i9, ptr undef33  br label %bb334 35bb2:36  %i13 = select i1 %i4, i32 4, i32 1637  store i32 %i13, ptr undef38  br label %bb339 40bb3:41  ret void42}43