[Hexagon] Skip fixed-stack indexes in HexagonConstExtenders
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 20 Apr 2018 19:06:46 +0000 (19:06 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 20 Apr 2018 19:06:46 +0000 (19:06 +0000)
commit642120122c18ef6479e0047759c9cbe370483216
tree3a9459b8ac759e1fb4e87678bc6c2f965978ae1b
parent76238aac8b139f3ac1d2346d05b1bd63316f592a
[Hexagon] Skip fixed-stack indexes in HexagonConstExtenders

Fixed slots have negative values, and TRI::stackSlot2Index and
TRI::index2StackSlot do not handle negative numbers.

llvm-svn: 330468
llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
llvm/test/CodeGen/Hexagon/cext-opt-negative-fi.mir [new file with mode: 0644]