mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 00:50:58 +00:00
R600: Add support for i32 loads from the constant address space on Cayman
Tested-By: Aaron Watry <awatry@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa57da12f7
commit
d67d029b6d
@ -1755,6 +1755,15 @@ def VTX_READ_GLOBAL_128_cm : VTX_READ_128_cm <1,
|
||||
[(set v4i32:$dst_gpr, (global_load ADDRVTX_READ:$src_gpr))]
|
||||
>;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Constant Loads
|
||||
// XXX: We are currently storing all constants in the global address space.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
def CONSTANT_LOAD_cm : VTX_READ_32_cm <1,
|
||||
[(set i32:$dst_gpr, (constant_load ADDRVTX_READ:$src_gpr))]
|
||||
>;
|
||||
|
||||
} // End isCayman
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck --check-prefix=R600-CHECK %s
|
||||
; RUN: llc < %s -march=r600 -mcpu=cayman | FileCheck --check-prefix=R600-CHECK %s
|
||||
; RUN: llc < %s -march=r600 -mcpu=SI | FileCheck --check-prefix=SI-CHECK %s
|
||||
|
||||
; Load an i8 value from the global address space.
|
||||
|
Loading…
Reference in New Issue
Block a user