SPARC v9 stack pointer bias.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 6 Apr 2013 21:38:57 +0000 (21:38 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 6 Apr 2013 21:38:57 +0000 (21:38 +0000)
commit03d9f7fda6cde43f88accbe7700f47f5515dfb47
tree86f79c9e9c5bb493036ea570b47ad40fdc25ff58
parent63742f1379da62a749a569fc76c5ac93e73040ee
SPARC v9 stack pointer bias.

64-bit SPARC v9 processes use biased stack and frame pointers, so the
current function's stack frame is located at %sp+BIAS .. %fp+BIAS where
BIAS = 2047.

This makes more local variables directly accessible via [%fp+simm13]
addressing.

llvm-svn: 178965
llvm/lib/Target/Sparc/SparcRegisterInfo.cpp
llvm/lib/Target/Sparc/SparcSubtarget.h
llvm/test/CodeGen/SPARC/64abi.ll