mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
265b1cdf1c
Summary: And define them to have noop casts with address spaces 0-255. Reviewers: pekka.jaaskelainen Subscribers: pekka.jaaskelainen, llvm-commits Differential Revision: http://reviews.llvm.org/D12678 llvm-svn: 246990
13 lines
395 B
LLVM
13 lines
395 B
LLVM
; RUN: llc < %s -march=mips -mcpu=mips2 | FileCheck %s -check-prefix=ALL
|
|
|
|
; Address spaces 1-255 are software defined.
|
|
define i32* @cast(i32 *%arg) {
|
|
%1 = addrspacecast i32* %arg to i32 addrspace(1)*
|
|
%2 = addrspacecast i32 addrspace(1)* %1 to i32 addrspace(2)*
|
|
%3 = addrspacecast i32 addrspace(2)* %2 to i32 addrspace(0)*
|
|
ret i32* %3
|
|
}
|
|
|
|
; ALL-LABEL: cast:
|
|
; ALL: move $2, $4
|