1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s | FileCheck %s
3 target triple = "arm64-apple-ios7.0"
5 define i64 @foo(ptr nocapture readonly %ptr, i64 %a, i64 %b, i64 %c) local_unnamed_addr #0 {
7 ; CHECK: ; %bb.0: ; %entry
8 ; CHECK-NEXT: lsr x8, x1, #32
9 ; CHECK-NEXT: ldr w9, [x0, #4]
10 ; CHECK-NEXT: cmn x3, x2
11 ; CHECK-NEXT: umull x8, w9, w8
12 ; CHECK-NEXT: cinc x0, x8, hs
16 %1 = load i64, ptr %ptr, align 8
18 %3 = mul nuw i64 %2, %0
20 %5 = icmp ult i64 %4, %c
21 %6 = zext i1 %5 to i64
26 attributes #0 = { norecurse nounwind readonly }