]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/PowerPC/ppc32-i1-stack-arguments-abi-bug.ll
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / CodeGen / PowerPC / ppc32-i1-stack-arguments-abi-bug.ll
1 ; RUN: llc -verify-machineinstrs < %s -mcpu=ppc32 -mattr=+crbits | FileCheck %s
2 target triple = "powerpc-unknown-linux-gnu"
3
4 define void @check_callee(
5   i32, i32, i32, i32,
6   i32, i32, i32, i32,
7   i1 zeroext %s1
8 ) {
9   call void @check_caller(
10     i32 9, i32 9, i32 9, i32 9,
11     i32 9, i32 9, i32 9, i32 9,
12     i1 zeroext %s1)
13   ret void
14 }
15
16 ; CHECK-LABEL: @check_callee
17 ; CHECK: lbz {{[0-9]+}}, 27(1)
18 ; CHECK: stw {{[0-9]+}}, 8(1)
19
20 declare void @check_caller(
21   i32, i32, i32, i32,
22   i32, i32, i32, i32,
23   i1 zeroext
24 )