1 ; RUN: llc -verify-machineinstrs < %s | FileCheck %s
2 target datalayout = "E-m:e-p:32:32-i64:64-n32"
3 target triple = "powerpc-unknown-linux-gnu"
5 ; Tests that the 'nest' parameter attribute causes the relevant parameter to be
6 ; passed in the right register (r11 for PPC).
8 define i8* @nest_receiver(i8* nest %arg) nounwind {
9 ; CHECK-LABEL: nest_receiver:
11 ; CHECK-NEXT: mr 3, 11
17 define i8* @nest_caller(i8* %arg) nounwind {
18 ; CHECK-LABEL: nest_caller:
20 ; CHECK-NEXT: bl nest_receiver
23 %result = call i8* @nest_receiver(i8* nest %arg)