1 ; RUN: llc < %s | FileCheck %s
2 target triple = "arm64-apple-ios7.0"
4 define i64 @foo(i64* nocapture readonly %ptr, i64 %a, i64 %b, i64 %c) local_unnamed_addr #0 {
5 ; CHECK: ldr w8, [x0, #4]
6 ; CHECK: lsr x9, x1, #32
8 ; CHECK: mul x8, x8, x9
9 ; CHECK: cinc x0, x8, hs
13 %1 = load i64, i64* %ptr, align 8
15 %3 = mul nuw i64 %2, %0
17 %5 = icmp ult i64 %4, %c
18 %6 = zext i1 %5 to i64
23 attributes #0 = { norecurse nounwind readonly }