• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=ppc64 -mcpu=a2 | FileCheck -check-prefix=CHECK-A2 %s
2; RUN: llc < %s -march=ppc64 -mcpu=a2q | FileCheck -check-prefix=CHECK-A2Q %s
3; RUN: llc < %s -march=ppc64 -mtriple=powerpc64-bgq-linux -mcpu=a2 | FileCheck -check-prefix=CHECK-BGQ %s
4target 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"
5target triple = "powerpc64-unknown-linux-gnu"
6
7declare i32 @bar(i8* %a) nounwind;
8define i32 @foo() nounwind {
9  %p = alloca i8, i8 115
10  store i8 0, i8* %p
11  %r = call i32 @bar(i8* %p)
12  ret i32 %r
13}
14
15; Without QPX, the allocated stack frame is 240 bytes, but with QPX
16; (because we require 32-byte alignment), it is 256 bytes.
17; CHECK-A2: @foo
18; CHECK-A2: stdu 1, -240(1)
19; CHECK-A2Q: @foo
20; CHECK-A2Q: stdu 1, -256(1)
21; CHECK-BGQ: @foo
22; CHECK-BGQ: stdu 1, -256(1)
23
24