brintos

brintos / llvm-project-archived public Read only

0
0
Text · 854 B · 2025ac4 Raw
29 lines · plain
1; RUN: llc -mtriple=arm-linux-gnu < %s | FileCheck %s --check-prefix=AAPCS2; RUN: llc -mtriple=arm-linux-gnu -target-abi=apcs < %s | \3; RUN: FileCheck %s --check-prefix=APCS4; RUN: llc -mtriple=arm-linux-gnueabi -target-abi=apcs < %s | \5; RUN: FileCheck %s --check-prefix=APCS6 7; RUN: llc -mtriple=arm-linux-gnueabi < %s | FileCheck %s --check-prefix=AAPCS8; RUN: llc -mtriple=arm-linux-gnueabi -target-abi=aapcs < %s | \9; RUN: FileCheck %s --check-prefix=AAPCS10; RUN: llc -mtriple=arm-linux-gnu -target-abi=aapcs < %s | \11; RUN: FileCheck %s --check-prefix=AAPCS12 13; The stack is 8 byte aligned on AAPCS and 4 on APCS, so we should get a BIC14; only on APCS.15 16define void @g() {17; APCS: sub	sp, sp, #818; APCS: bic	sp, sp, #719 20; AAPCS: sub	sp, sp, #821; AAPCS-NOT: bic22 23  %c = alloca i8, align 824  call void @f(ptr %c)25  ret void26}27 28declare void @f(ptr)29