mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
[Hexagon] Fix instruction descriptor flags for memory access size
llvm-svn: 254613
This commit is contained in:
parent
ee432f5070
commit
fe24354d38
@ -90,12 +90,16 @@ namespace HexagonII {
|
||||
PostInc = 6 // Post increment addressing mode
|
||||
};
|
||||
|
||||
// MemAccessSize is represented as 1+log2(N) where N is size in bits.
|
||||
enum class MemAccessSize {
|
||||
NoMemAccess = 0, // Not a memory acces instruction.
|
||||
ByteAccess = 1, // Byte access instruction (memb).
|
||||
HalfWordAccess = 2, // Half word access instruction (memh).
|
||||
WordAccess = 3, // Word access instruction (memw).
|
||||
DoubleWordAccess = 4 // Double word access instruction (memd)
|
||||
DoubleWordAccess = 4, // Double word access instruction (memd)
|
||||
// 5, // We do not have a 16 byte vector access.
|
||||
Vector64Access = 7, // 64 Byte vector access instruction (vmem).
|
||||
Vector128Access = 8 // 128 Byte vector access instruction (vmem).
|
||||
};
|
||||
|
||||
// MCInstrDesc TSFlags
|
||||
@ -175,7 +179,7 @@ namespace HexagonII {
|
||||
AddrModeMask = 0x7,
|
||||
// Access size for load/store instructions.
|
||||
MemAccessSizePos = 43,
|
||||
MemAccesSizeMask = 0x7,
|
||||
MemAccesSizeMask = 0xf,
|
||||
|
||||
// Branch predicted taken.
|
||||
TakenPos = 47,
|
||||
|
Loading…
Reference in New Issue
Block a user