1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ;RUN: llc < %s --mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec | FileCheck %s -check-prefix=BE
3 ;RUN: llc < %s --mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec | FileCheck %s -check-prefix=LE
5 define <8 x i32> @test_large_vec_vaarg(i32 %n, ...) {
6 ; BE-LABEL: test_large_vec_vaarg:
9 ; BE-NEXT: std 4, 56(1)
10 ; BE-NEXT: std 5, 64(1)
11 ; BE-NEXT: std 6, 72(1)
12 ; BE-NEXT: std 7, 80(1)
13 ; BE-NEXT: std 8, 88(1)
14 ; BE-NEXT: std 9, 96(1)
15 ; BE-NEXT: std 10, 104(1)
16 ; BE-NEXT: addi 3, 3, 15
17 ; BE-NEXT: rldicr 3, 3, 0, 59
18 ; BE-NEXT: addi 4, 3, 16
19 ; BE-NEXT: addi 5, 3, 31
20 ; BE-NEXT: std 4, -8(1)
21 ; BE-NEXT: rldicr 4, 5, 0, 59
22 ; BE-NEXT: lvx 2, 0, 3
23 ; BE-NEXT: addi 3, 4, 16
24 ; BE-NEXT: std 3, -8(1)
25 ; BE-NEXT: lvx 3, 0, 4
28 ; LE-LABEL: test_large_vec_vaarg:
30 ; LE-NEXT: ld 3, -8(1)
31 ; LE-NEXT: std 4, 40(1)
32 ; LE-NEXT: std 5, 48(1)
33 ; LE-NEXT: std 6, 56(1)
34 ; LE-NEXT: std 7, 64(1)
35 ; LE-NEXT: addi 3, 3, 15
36 ; LE-NEXT: rldicr 3, 3, 0, 59
37 ; LE-NEXT: std 8, 72(1)
38 ; LE-NEXT: std 9, 80(1)
39 ; LE-NEXT: std 10, 88(1)
40 ; LE-NEXT: addi 4, 3, 31
41 ; LE-NEXT: addi 5, 3, 16
42 ; LE-NEXT: rldicr 4, 4, 0, 59
43 ; LE-NEXT: std 5, -8(1)
44 ; LE-NEXT: addi 5, 4, 16
45 ; LE-NEXT: lvx 2, 0, 3
46 ; LE-NEXT: std 5, -8(1)
47 ; LE-NEXT: lvx 3, 0, 4
49 %args = alloca i8*, align 4
50 %x = va_arg i8** %args, <8 x i32>