mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
7ea14c2d15
Support required to build the Hexagon Linux kernel. Differential Revision: https://reviews.llvm.org/D51363 llvm-svn: 341658
14 lines
294 B
LLVM
14 lines
294 B
LLVM
; RUN: llc -mattr=+reserved-r19 -march=hexagon < %s | FileCheck %s
|
|
define dso_local i32 @r19f() #0 {
|
|
entry:
|
|
%0 = call i32 @llvm.read_register.i32(metadata !0)
|
|
ret i32 %0
|
|
}
|
|
|
|
declare i32 @llvm.read_register.i32(metadata) #1
|
|
|
|
!llvm.named.register.r19 = !{!0}
|
|
|
|
!0 = !{!"r19"}
|
|
; CHECK: r0 = r19
|