88 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | \2; RUN: FileCheck %s -check-prefix=PPC32-LINUX-NOFP3 4; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu \5; RUN: -frame-pointer=all | FileCheck %s -check-prefix=PPC32-LINUX-FP6 7; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu | \8; RUN: FileCheck %s -check-prefix=PPC64-NOFP9 10; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \11; RUN: -frame-pointer=all | FileCheck %s -check-prefix=PPC64-FP12 13; RUN: llc -verify-machineinstrs < %s -mcpu=pwr4 -mattr=-altivec \14; RUN: -mtriple=powerpc-ibm-aix-xcoff | FileCheck %s -check-prefix=PPC32-AIX-NOFP15 16; RUN: llc -verify-machineinstrs < %s -mcpu=pwr4 -mattr=-altivec \17; RUN: -mtriple=powerpc-ibm-aix-xcoff -frame-pointer=all | FileCheck %s \18; RUN: -check-prefix=PPC32-AIX-FP19 20; RUN: llc -verify-machineinstrs < %s -mcpu=pwr4 -mattr=-altivec \21; RUN: -mtriple=powerpc64-ibm-aix-xcoff | FileCheck %s -check-prefix=PPC64-NOFP22 23; RUN: llc -verify-machineinstrs < %s -mcpu=pwr4 -mattr=-altivec \24; RUN: -mtriple=powerpc64-ibm-aix-xcoff -frame-pointer=all | FileCheck %s \25; RUN: -check-prefix=PPC64-FP26 27; - PPC64 SVR4ABI and AIX ABI:28; 288 bytes = 18*8 (FPRs) + 18*8 (GPRs, GPR13 reserved);29; - PPC32 SVR4ABI has no red zone;30; - PPC32 AIX ABI:31; 220 bytes = 18*8 (FPRs) + 19*4 (GPRs);32 33define ptr @in_stack_floor_32() {34 %tmp = alloca i32, i32 5535 ret ptr %tmp36}37 38define ptr @out_stack_floor_32() {39 %tmp = alloca i32, i32 5640 ret ptr %tmp41}42 43define ptr @in_stack_floor_64() {44 %tmp = alloca i32, i32 7245 ret ptr %tmp46}47 48define ptr @out_stack_floor_64() {49 %tmp = alloca i32, i32 7350 ret ptr %tmp51}52 53; PPC32-LINUX-NOFP-LABEL: in_stack_floor_3254; PPC32-LINUX-NOFP: stwu55 56; PPC32-LINUX-NOFP-LABEL: out_stack_floor_3257; PPC32-LINUX-NOFP: stwu58 59; PPC32-LINUX-FP-LABEL: in_stack_floor_3260; PPC32-LINUX-FP: stwu61 62; PPC32-LINUX-FP-LABEL: out_stack_floor_3263; PPC32-LINUX-FP: stwu64 65; PPC32-AIX-NOFP-LABEL: in_stack_floor_3266; PPC32-AIX-NOFP-NOT: stwu67 68; PPC32-AIX-NOFP-LABEL: out_stack_floor_3269; PPC32-AIX-NOFP: stwu 1, -256(1)70 71; PPC32-AIX-FP-LABEL: in_stack_floor_3272; PPC32-AIX-FP: stwu 1, -256(1)73 74; PPC32-AIX-FP-LABEL: out_stack_floor_3275; PPC32-AIX-FP: stwu 1, -256(1)76 77; PPC64-NOFP-LABEL: in_stack_floor_6478; PPC64-NOFP: addi 3, 1, -28879 80; PPC64-NOFP-LABEL: out_stack_floor_6481; PPC64-NOFP: stdu 1, -352(1)82 83; PPC64-FP-LABEL: in_stack_floor_6484; PPC64-FP: stdu 1, -352(1)85 86; PPC64-FP-LABEL: out_stack_floor_6487; PPC64-FP: stdu 1, -352(1)88