brintos

brintos / llvm-project-archived public Read only

0
0
Text · 923 B · 44ab88b Raw
34 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt -S -passes=jump-threading < %s | FileCheck %s3 4 5 6define void @f(i1 %arg) {7; CHECK-LABEL: define void @f(8; CHECK-SAME: i1 [[ARG:%.*]]) {9; CHECK-NEXT:  [[ENTRY:.*:]]10; CHECK-NEXT:    br label %[[FOR_COND1:.*]]11; CHECK:       [[FOR_COND1]]:12; CHECK-NEXT:    br i1 [[ARG]], label %[[LOR_RHS:.*]], label %[[LOR_RHS]]13; CHECK:       [[LOR_RHS]]:14; CHECK-NEXT:    br label %[[FOR_COND1]]15;16entry:17  br label %for.cond118 19if.end16:20  %phi1 = phi i32 [ undef, %for.cond1 ]21  %g.3 = phi i32 [ %g.1, %for.cond1 ]22  %sext = shl i32 %g.3, 1623  %conv20 = ashr exact i32 %sext, 1624  %tobool21 = icmp eq i32 %phi1, 025  br i1 %tobool21, label %lor.rhs, label %for.cond126 27for.cond1:28  %g.1 = phi i32 [ 0, %entry ], [ 0, %lor.rhs ], [ %g.3, %if.end16 ]29  br i1 %arg, label %lor.rhs, label %if.end1630 31lor.rhs:32  br label %for.cond133}34