diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-05-05 21:58:02 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-05-05 21:58:02 +0000 |
| commit | 6bd426830289afa7eb41949413b13803c6058e17 (patch) | |
| tree | 3f6e1b7c01efe2c86f6c690ff48143f7189d6834 /llvm/lib/Target/Hexagon | |
| parent | 7b4e465ac626274b760ccfe2760653bb97fcaa7c (diff) | |
| download | bcm5719-llvm-6bd426830289afa7eb41949413b13803c6058e17.tar.gz bcm5719-llvm-6bd426830289afa7eb41949413b13803c6058e17.zip | |
[Hexagon] Fix the offset ranges for vector memory instructions
llvm-svn: 268690
Diffstat (limited to 'llvm/lib/Target/Hexagon')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp index 2a5ea5b2053..0ae999239a4 100644 --- a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp +++ b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp @@ -70,10 +70,10 @@ static cl::opt<bool> BranchRelaxAsmLarge("branch-relax-asm-large", /// /// Constants for Hexagon instructions. /// -const int Hexagon_MEMV_OFFSET_MAX_128B = 2047; // #s7 -const int Hexagon_MEMV_OFFSET_MIN_128B = -2048; // #s7 -const int Hexagon_MEMV_OFFSET_MAX = 1023; // #s6 -const int Hexagon_MEMV_OFFSET_MIN = -1024; // #s6 +const int Hexagon_MEMV_OFFSET_MAX_128B = 896; // #s4: -8*128...7*128 +const int Hexagon_MEMV_OFFSET_MIN_128B = -1024; // #s4 +const int Hexagon_MEMV_OFFSET_MAX = 448; // #s4: -8*64...7*64 +const int Hexagon_MEMV_OFFSET_MIN = -512; // #s4 const int Hexagon_MEMW_OFFSET_MAX = 4095; const int Hexagon_MEMW_OFFSET_MIN = -4096; const int Hexagon_MEMD_OFFSET_MAX = 8191; @@ -92,10 +92,10 @@ const int Hexagon_MEMH_AUTOINC_MAX = 14; const int Hexagon_MEMH_AUTOINC_MIN = -16; const int Hexagon_MEMB_AUTOINC_MAX = 7; const int Hexagon_MEMB_AUTOINC_MIN = -8; -const int Hexagon_MEMV_AUTOINC_MAX = 192; -const int Hexagon_MEMV_AUTOINC_MIN = -256; -const int Hexagon_MEMV_AUTOINC_MAX_128B = 384; -const int Hexagon_MEMV_AUTOINC_MIN_128B = -512; +const int Hexagon_MEMV_AUTOINC_MAX = 192; // #s3 +const int Hexagon_MEMV_AUTOINC_MIN = -256; // #s3 +const int Hexagon_MEMV_AUTOINC_MAX_128B = 384; // #s3 +const int Hexagon_MEMV_AUTOINC_MIN_128B = -512; // #s3 // Pin the vtable to this file. void HexagonInstrInfo::anchor() {} |

