1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs < %s | FileCheck %s
4 target datalayout = "e-m:e-i64:64-n32:64-S128-v256:256:256-v512:512:512"
5 target triple = "powerpc64le-unknown-linux-gnu"
7 %struct = type { [4 x i32], [20 x i8] }
9 declare dso_local i32 @foo1(%struct* byval(%struct) %var)
10 declare dso_local void @foo(%struct* %var)
12 ; FIXME: for the byval parameter %x, now the memory for local variable and
13 ; for parameter save area are overlap.
15 ; the local variable space is r1 + 40 ~ r1 + 76
16 ; the parameter save area is r1 + 32 ~ r1 + 68
18 define dso_local i32 @bar() {
20 ; CHECK: addi 30, 1, 40
22 ; CHECK: lxvd2x 0, 30, 3
24 ; CHECK: stxvd2x 0, 1, 3
26 ; CHECK: lxvd2x 0, 0, 30
27 ; CHECK: stxvd2x 0, 1, 3
31 %x = alloca %struct, align 4
32 call void @foo(%struct* %x)
33 %r = call i32 @foo1(%struct* byval(%struct) %x)