[MIPS GlobalISel] Select MSA vector generic and builtin add
[llvm-core.git] / test / CodeGen / AArch64 / arm64-never-combine-csr-local-stack-bump-for-size.ll
blob273fb31e16c3b5b677aa1f312317df3ecdef4cff
1 ; RUN: llc < %s -mtriple=arm64-apple-ios7.0 -disable-post-ra | FileCheck %s
3 ; CHECK-LABEL: main:
4 ; CHECK:       stp     x29, x30, [sp, #-16]!
5 ; CHECK-NEXT:  stp     xzr, xzr, [sp, #-16]!
6 ; CHECK:       adrp    x0, l_.str@PAGE
7 ; CHECK:       add     x0, x0, l_.str@PAGEOFF
8 ; CHECK-NEXT:  bl      _puts
9 ; CHECK-NEXT:   add     sp, sp, #16
10 ; CHECK-NEXT:   ldp     x29, x30, [sp], #16
11 ; CHECK-NEXT:   ret
13 @.str = private unnamed_addr constant [7 x i8] c"hello\0A\00"
15 define i32 @main() nounwind ssp optsize {
16 entry:
17   %local1 = alloca i64, align 8
18   %local2 = alloca i64, align 8
19   store i64 0, i64* %local1
20   store i64 0, i64* %local2
21   %call = call i32 @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i32 0, i32 0))
22   ret i32 %call
25 declare i32 @puts(i8*)