summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorReed Kotler <rkotler@mips.com>2013-02-13 20:28:27 +0000
committerReed Kotler <rkotler@mips.com>2013-02-13 20:28:27 +0000
commitf662cff68902ce072e4442810dffe9769ba2dfe7 (patch)
tree63c02b9bcff961669040f2c08f3fe926ad428761 /clang/lib/Format/Format.cpp
parent7a4c8a783c28ec0886b34d2de7f44333f1933cc9 (diff)
downloadbcm5719-llvm-f662cff68902ce072e4442810dffe9769ba2dfe7.tar.gz
bcm5719-llvm-f662cff68902ce072e4442810dffe9769ba2dfe7.zip
For Mips 16, add the optimization where the 16 bit form of addiu sp can be used
if the offset fits in 11 bits. This makes use of the fact that the abi requires sp to be 8 byte aligned so the actual offset can fit in 8 bits. It will be shifted left and sign extended before being actually used. The assembler or direct object emitter will shift right the 11 bit signed field by 3 bits. We don't need to deal with that here. llvm-svn: 175073
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud