mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
db43217a24
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
19 lines
427 B
LLVM
19 lines
427 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 readonly
|
|
define signext i32 @test(i32* nocapture readonly %P) #0 {
|
|
entry:
|
|
%0 = load i32, i32* %P, align 4
|
|
%shr = lshr i32 %0, 24
|
|
ret i32 %shr
|
|
|
|
; CHECK-LABEL: @test
|
|
; CHECK: lbz 3, 0(3)
|
|
; CHECK: blr
|
|
}
|
|
|
|
attributes #0 = { nounwind readonly }
|
|
|