1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
3 ; RUN: -mcpu=pwr9 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
5 define hidden void @julia_tryparse_internal_45896() #0 {
6 ; CHECK-LABEL: julia_tryparse_internal_45896:
7 ; CHECK: # %bb.0: # %top
8 ; CHECK-NEXT: ld r3, 0(r3)
9 ; CHECK-NEXT: cmpldi r3, 0
10 ; CHECK-NEXT: beq cr0, .LBB0_6
11 ; CHECK-NEXT: # %bb.1: # %top
12 ; CHECK-NEXT: cmpldi r3, 10
13 ; CHECK-NEXT: beq cr0, .LBB0_3
14 ; CHECK-NEXT: # %bb.2: # %top
15 ; CHECK-NEXT: .LBB0_3: # %L294
16 ; CHECK-NEXT: bc 12, 4*cr5+lt, .LBB0_5
17 ; CHECK-NEXT: # %bb.4: # %L294
18 ; CHECK-NEXT: bc 4, 4*cr5+lt, .LBB0_7
19 ; CHECK-NEXT: .LBB0_5: # %L1057.preheader
20 ; CHECK-NEXT: .LBB0_6: # %fail194
21 ; CHECK-NEXT: .LBB0_7: # %L670
22 ; CHECK-NEXT: li r5, -3
23 ; CHECK-NEXT: sradi r4, r3, 63
24 ; CHECK-NEXT: rldic r5, r5, 4, 32
25 ; CHECK-NEXT: mulhdu r3, r3, r5
26 ; CHECK-NEXT: maddld r6, r4, r5, r3
27 ; CHECK-NEXT: cmpld cr1, r6, r3
28 ; CHECK-NEXT: mulhdu. r3, r4, r5
29 ; CHECK-NEXT: crorc 4*cr5+lt, 4*cr1+lt, eq
30 ; CHECK-NEXT: bc 4, 4*cr5+lt, .LBB0_9
31 ; CHECK-NEXT: # %bb.8: # %L917
32 ; CHECK-NEXT: .LBB0_9: # %L994
34 %0 = load i64, ptr undef, align 8
35 %1 = icmp ne i64 %0, 0
36 %2 = sext i64 %0 to i128
37 switch i64 %0, label %pass195 [
39 i64 16, label %L294.fold.split
43 L294.fold.split: ; preds = %top
47 %3 = add nsw i32 0, -48
48 %4 = zext i32 %3 to i128
50 switch i32 undef, label %L670 [
51 i32 -1031471104, label %L1057.preheader
52 i32 536870912, label %L1057.preheader
58 L1057.preheader: ; preds = %L294, %L294
62 %umul = call { i128, i1 } @llvm.umul.with.overflow.i128(i128 %2, i128 %5)
63 %umul.ov = extractvalue { i128, i1 } %umul, 1
64 %value_phi102 = and i1 %1, %umul.ov
65 %6 = or i1 %value_phi102, false
66 br i1 %6, label %L917, label %L994
74 fail194: ; preds = %top
77 pass195: ; preds = %top
81 ; Function Attrs: nounwind readnone speculatable willreturn
82 declare { i128, i1 } @llvm.umul.with.overflow.i128(i128, i128) #1