| ; RUN: llc -mcpu=pwr7 -mattr=-altivec -verify-machineinstrs \ |
| ; RUN: -mtriple=powerpc-unknown-aix < %s | FileCheck %s --check-prefix 32BIT |
| ; RUN: llc -mcpu=pwr7 -mattr=-altivec -verify-machineinstrs \ |
| ; RUN: -mtriple=powerpc64-unknown-aix < %s | FileCheck %s --check-prefix 64BIT |
| ; Use an overaligned buffer to force base-pointer usage. Test verifies: |
| ; - base pointer register (r30) is saved/defined/restored. |
| ; - stack frame is allocated with correct alignment. |
| ; - Address of %AlignedBuffer is calculated based off offset from the stack |
| define float @caller(float %f) { |
| %AlignedBuffer = alloca [32 x i32], align 32 |
| %Pointer = getelementptr inbounds [32 x i32], [32 x i32]* %AlignedBuffer, i64 0, i64 0 |
| call void @callee(i32* %Pointer) |
| declare void @callee(i32*) |
| ; 32BIT: subfic 0, 0, -224 |
| ; 64BIT: subfic 0, 0, -288 |