1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll
Ehsan Amiri db43217a24 Adding -verify-machineinstrs option to PowerPC tests
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.

llvm-svn: 277624
2016-08-03 18:17:35 +00:00

24 lines
569 B
LLVM

; RUN: llc -verify-machineinstrs -mcpu=ppc64 < %s | FileCheck %s
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-unknown-linux-gnu"
; Function Attrs: nounwind
define void @bar() #0 {
entry:
tail call void @xxx([2 x i64] [i64 4607182418800017408, i64 4611686018427387904]) #0
ret void
; CHECK-LABEL: @bar
; CHECK-DAG: li [[REG1:[0-9]+]], 1023
; CHECK-DAG: li [[REG2:[0-9]+]], {{1$}}
; CHECK-DAG: sldi 3, [[REG1]], 52
; CHECK-DAG: sldi 4, [[REG2]], 62
; CHECK: bl xxx
; CHECK: blr
}
declare void @xxx([2 x i64])
attributes #0 = { nounwind }