41 lines · plain
1; RUN: llc < %s -mtriple=arm64-eabi2 3; The target lowering for integer comparisons was replacing some DAG nodes4; during operation legalization, which resulted in dangling pointers,5; cycles in DAGs, and eventually crashes. This is the testcase for6; one of those crashes. (rdar://10653656)7 8define void @test(i1 zeroext %IsArrow, i1 %arg) nounwind ssp align 2 {9entry:10 br i1 %arg, label %return, label %lor.lhs.false11 12lor.lhs.false:13 br i1 %arg, label %return, label %if.end14 15if.end:16 %tmp.i = load i64, ptr undef, align 817 %and.i.i.i = and i64 %tmp.i, -1618 br i1 %IsArrow, label %if.else_crit_edge, label %if.end3219 20if.else_crit_edge:21 br i1 %arg, label %if.end32, label %return22 23if.end32:24 %0 = icmp ult i32 undef, 325 %1 = zext i64 %tmp.i to i32026 %.pn.v = select i1 %0, i320 128, i320 6427 %.pn = shl i320 %1, %.pn.v28 %ins346392 = or i320 %.pn, 029 store i320 %ins346392, ptr undef, align 830 br i1 %arg, label %sw.bb.i.i, label %exit31 32sw.bb.i.i:33 unreachable34 35exit:36 unreachable37 38return:39 ret void40}41