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: addi 3, 3, 15
10 ; BE-NEXT: rldicr 3, 3, 0, 59
11 ; BE-NEXT: addi 4, 3, 16
12 ; BE-NEXT: addi 5, 3, 31
13 ; BE-NEXT: std 4, -8(1)
14 ; BE-NEXT: rldicr 4, 5, 0, 59
15 ; BE-NEXT: lvx 2, 0, 3
16 ; BE-NEXT: addi 3, 4, 16
17 ; BE-NEXT: std 3, -8(1)
18 ; BE-NEXT: lvx 3, 0, 4
21 ; LE-LABEL: test_large_vec_vaarg:
23 ; LE-NEXT: ld 3, -8(1)
24 ; LE-NEXT: addi 3, 3, 15
25 ; LE-NEXT: rldicr 3, 3, 0, 59
26 ; LE-NEXT: addi 4, 3, 16
27 ; LE-NEXT: std 4, -8(1)
28 ; LE-NEXT: lxvd2x 0, 0, 3
29 ; LE-NEXT: ld 3, -8(1)
30 ; LE-NEXT: addi 3, 3, 15
31 ; LE-NEXT: rldicr 3, 3, 0, 59
32 ; LE-NEXT: addi 4, 3, 16
33 ; LE-NEXT: std 4, -8(1)
34 ; LE-NEXT: xxswapd 34, 0
35 ; LE-NEXT: lxvd2x 0, 0, 3
36 ; LE-NEXT: xxswapd 35, 0
38 %args = alloca ptr, align 4
39 %x = va_arg ptr %args, <8 x i32>