Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc < %s -march=ppc64 -mattr=+altivec | FileCheck %s
      2 
      3 target datalayout = "E-m:e-i64:64-n32:64"
      4 target triple = "powerpc64-unknown-linux-gnu"
      5 
      6 ; Verify that in the 64-bit Linux ABI, vector arguments take up space
      7 ; in the parameter save area.
      8 
      9 define i64 @callee(i64 %a, <4 x i32> %b, i64 %c, <4 x i32> %d, i64 %e) {
     10 entry:
     11   ret i64 %e
     12 }
     13 ; CHECK-LABEL: callee:
     14 ; CHECK: ld 3, 112(1)
     15 
     16 define void @caller(i64 %x, <4 x i32> %y) {
     17 entry:
     18   tail call void @test(i64 %x, <4 x i32> %y, i64 %x, <4 x i32> %y, i64 %x)
     19   ret void
     20 }
     21 ; CHECK-LABEL: caller:
     22 ; CHECK: std 3, 112(1)
     23 
     24 declare void @test(i64, <4 x i32>, i64, <4 x i32>, i64)
     25 
     26