29 lines · plain
1; RUN: llc -mtriple=aarch64 -O0 -fast-isel < %s | FileCheck %s2 3; Function Attrs: nounwind4define i32 @foo() #0 {5entry:6 %c = alloca i87; CHECK: add x0, sp, #128 %s = alloca i169; CHECK-NEXT: add x1, sp, #810 %i = alloca i3211; CHECK-NEXT: add x2, sp, #412 %call = call i32 @bar(ptr %c, ptr %s, ptr %i)13 %0 = load i8, ptr %c, align 114 %conv = zext i8 %0 to i3215 %add = add nsw i32 %call, %conv16 %1 = load i16, ptr %s, align 217 %conv1 = sext i16 %1 to i3218 %add2 = add nsw i32 %add, %conv119 %2 = load i32, ptr %i, align 420 %add3 = add nsw i32 %add2, %221 ret i32 %add322}23 24declare i32 @bar(ptr, ptr, ptr) #125 26attributes #0 = { nounwind "frame-pointer"="none" }27attributes #1 = { "frame-pointer"="none" }28 29