mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 15:39:00 +00:00
38caf19333
Currently we have a number of tests that fail with -verify-machineinstrs. To detect this cases earlier we add the option to the testcases with the exception of tests that will currently fail with this option. PR 27456 keeps track of this failures. No code review, as discussed with Hal Finkel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277624 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
639 B
LLVM
27 lines
639 B
LLVM
; RUN: llc -verify-machineinstrs < %s | FileCheck %s
|
|
target datalayout = "E-m:e-p:32:32-i64:64-n32"
|
|
target triple = "powerpc-unknown-linux-gnu"
|
|
|
|
; Tests that the 'nest' parameter attribute causes the relevant parameter to be
|
|
; passed in the right register (r11 for PPC).
|
|
|
|
define i8* @nest_receiver(i8* nest %arg) nounwind {
|
|
; CHECK-LABEL: nest_receiver:
|
|
; CHECK: # BB#0:
|
|
; CHECK-NEXT: mr 3, 11
|
|
; CHECK-NEXT: blr
|
|
|
|
ret i8* %arg
|
|
}
|
|
|
|
define i8* @nest_caller(i8* %arg) nounwind {
|
|
; CHECK-LABEL: nest_caller:
|
|
; CHECK: mr 11, 3
|
|
; CHECK-NEXT: bl nest_receiver
|
|
; CHECK: blr
|
|
|
|
%result = call i8* @nest_receiver(i8* nest %arg)
|
|
ret i8* %result
|
|
}
|
|
|