1 ; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
3 ; Tests that the 'nest' parameter attribute causes the relevant parameter to be
4 ; passed in the right register.
6 define ptr @nest_receiver(ptr nest %arg) nounwind {
7 ; CHECK-LABEL: nest_receiver:
9 ; CHECK-NEXT: mov r0, r12
10 ; CHECK-NEXT: mov pc, lr
14 define ptr @nest_caller(ptr %arg) nounwind {
15 ; CHECK-LABEL: nest_caller:
17 ; CHECK-NEXT: bl nest_receiver
19 %result = call ptr @nest_receiver(ptr nest %arg)