1 ; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=a2 | FileCheck -check-prefix=CHECK-A2 %s
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -mcpu=a2q | FileCheck -check-prefix=CHECK-A2Q %s
3 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-bgq-linux -mcpu=a2 | FileCheck -check-prefix=CHECK-BGQ %s
4 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
5 target triple = "powerpc64-unknown-linux-gnu"
7 declare i32 @bar(i8* %a) nounwind;
8 define i32 @foo() nounwind {
11 %r = call i32 @bar(i8* %p)
15 ; Without QPX, the allocated stack frame is 240 bytes, but with QPX
16 ; (because we require 32-byte alignment), it is 256 bytes.
18 ; CHECK-A2: stdu 1, -240(1)
20 ; CHECK-A2Q: stdu 1, -256(1)
22 ; CHECK-BGQ: stdu 1, -256(1)