1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -ppc-asm-full-reg-names -verify-machineinstrs -mtriple=powerpc64 \
3 ; RUN: < %s | FileCheck --check-prefix=BE %s
4 ; RUN: llc -ppc-asm-full-reg-names -verify-machineinstrs -mtriple=powerpc64le \
5 ; RUN: < %s | FileCheck --check-prefix=LE %s
7 define i32 @f(...) nounwind {
9 ; BE: # %bb.0: # %entry
14 ; LE: # %bb.0: # %entry
21 define i32 @f1(...) nounwind {
23 ; BE: # %bb.0: # %entry
25 ; BE-NEXT: addi r12, r1, 48
27 ; BE-NEXT: std r11, 48(r1)
28 ; BE-NEXT: std r4, 56(r1)
29 ; BE-NEXT: std r5, 64(r1)
30 ; BE-NEXT: std r6, 72(r1)
31 ; BE-NEXT: std r7, 80(r1)
32 ; BE-NEXT: std r8, 88(r1)
33 ; BE-NEXT: std r9, 96(r1)
34 ; BE-NEXT: std r10, 104(r1)
35 ; BE-NEXT: std r12, -8(r1)
39 ; LE: # %bb.0: # %entry
40 ; LE-NEXT: std r3, 32(r1)
41 ; LE-NEXT: addi r3, r1, 32
42 ; LE-NEXT: std r4, 40(r1)
43 ; LE-NEXT: std r5, 48(r1)
44 ; LE-NEXT: std r6, 56(r1)
45 ; LE-NEXT: std r7, 64(r1)
46 ; LE-NEXT: std r8, 72(r1)
47 ; LE-NEXT: std r9, 80(r1)
48 ; LE-NEXT: std r3, -8(r1)
50 ; LE-NEXT: std r10, 88(r1)
53 %va = alloca ptr, align 8
54 call void @llvm.va_start(ptr %va)
58 declare void @llvm.va_start(ptr) nounwind