brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · b4556c7 Raw
43 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s | FileCheck %s --check-prefixes=CHECK,CHECK-SD3; RUN: llc < %s -global-isel | FileCheck %s --check-prefixes=CHECK,CHECK-GI4 5target triple = "arm64-apple-ios7.0"6 7define i64 @foo(ptr nocapture readonly %ptr, i64 %a, i64 %b, i64 %c) local_unnamed_addr #0 {8; CHECK-SD-LABEL: foo:9; CHECK-SD:       ; %bb.0: ; %entry10; CHECK-SD-NEXT:    lsr x8, x1, #3211; CHECK-SD-NEXT:    ldr w9, [x0, #4]12; CHECK-SD-NEXT:    cmn x3, x213; CHECK-SD-NEXT:    umull x8, w9, w814; CHECK-SD-NEXT:    cinc x0, x8, hs15; CHECK-SD-NEXT:    ret16;17; CHECK-GI-LABEL: foo:18; CHECK-GI:       ; %bb.0: ; %entry19; CHECK-GI-NEXT:    ldr x8, [x0]20; CHECK-GI-NEXT:    lsr x9, x1, #3221; CHECK-GI-NEXT:    cmn x3, x222; CHECK-GI-NEXT:    cset w10, hs23; CHECK-GI-NEXT:    lsr x8, x8, #3224; CHECK-GI-NEXT:    and x10, x10, #0x125; CHECK-GI-NEXT:    umaddl x0, w8, w9, x1026; CHECK-GI-NEXT:    ret27entry:28  %0 = lshr i64 %a, 3229  %1 = load i64, ptr %ptr, align 830  %2 = lshr i64 %1, 3231  %3 = mul nuw i64 %2, %032  %4 = add i64 %c, %b33  %5 = icmp ult i64 %4, %c34  %6 = zext i1 %5 to i6435  %7 = add i64 %3, %636  ret i64 %737}38 39attributes #0 = { norecurse nounwind readonly }40 41;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:42; CHECK: {{.*}}43