mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
1b84bf2554
We now produce the desired code as noted in the README.txt file. Remove the README entry and add a regression test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225209 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
400 B
LLVM
19 lines
400 B
LLVM
; RUN: llc -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* %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 }
|
|
|