HomePhabricator

AMDGPU: Correct encoding for global instructions

Authored by arsenm on Jul 19 2017, 10:17 PM.

Description

AMDGPU: Correct encoding for global instructions

The soffset field needs to be be set to 0x7f to disable it,
not 0. 0 is interpreted as an SGPR offset.

This should be enough to get basic usage of the global instructions
working. Technically it is possible to use an SGPR_32 offset,
but I'm not sure if it's correct with 64-bit pointers, but
that is not handled now. This should also be cleaned up
to be more similar to how different MUBUF modes are handled,
and to have InstrMappings between the different types.

llvm-svn: 308583

Details

Committed
arsenmJul 19 2017, 10:17 PM
Parents
rGe6bb895ab535: [LICM] Make sinkRegion and hoistRegion non-recursive
Branches
Unknown
Tags
Unknown