Akira Hatanaka
0f693a8a77
[mips] Custom-legalize BR_JT.
...
In N64-static, GOT address is needed to compute the branch address.
llvm-svn: 176580
2013-03-06 21:32:03 +00:00
Akira Hatanaka
843aca9328
Fix test cases.
...
llvm-svn: 158435
2012-06-14 01:21:00 +00:00
Akira Hatanaka
df5205ef3d
Implement a DAGCombine in MipsISelLowering.cpp which transforms the following
...
pattern:
(add v0, (add v1, abs_lo(tjt))) => (add (add v0, v1), abs_lo(tjt))
"tjt" is a TargetJumpTable node.
llvm-svn: 158419
2012-06-13 20:33:18 +00:00
Akira Hatanaka
763ab85690
Fix test cases.
...
llvm-svn: 156697
2012-05-12 03:25:16 +00:00
Akira Hatanaka
2020e27d6d
Do not use $gp as a dedicated global register if the target ABI is not O32.
...
llvm-svn: 155522
2012-04-25 01:24:52 +00:00
Akira Hatanaka
8483a6c47d
Have TargetLowering::getPICJumpTableRelocBase return a node that points to the
...
GOT if jump table uses 64-bit gp-relative relocation.
llvm-svn: 154341
2012-04-09 20:32:12 +00:00
Akira Hatanaka
f0b08445f6
Add a new MachineJumpTableInfo entry type, EK_GPRel64BlockAddress, which is
...
needed to emit a 64-bit gp-relative relocation entry. Make changes necessary
for emitting jump tables which have entries with directive .gpdword. This patch
does not implement the parts needed for direct object emission or JIT.
llvm-svn: 149668
2012-02-03 04:33:00 +00:00
Akira Hatanaka
34e3df76f9
Have LowerJumpTable support Mips64. Modify 2010-07-20-Switch.ll to test N64 and
...
O32 with relocation-model=pic too.
llvm-svn: 145850
2011-12-05 21:03:03 +00:00
Chris Lattner
6a144a2227
Upgrade syntax of tests using volatile instructions to use 'load volatile' instead of 'volatile load', which is archaic.
...
llvm-svn: 145171
2011-11-27 06:54:59 +00:00
Dan Gohman
c32af340fc
Change the default scheduler from Latency to ILP, since Latency
...
is going away.
llvm-svn: 142810
2011-10-24 17:45:02 +00:00
Bruno Cardoso Lopes
160695fecb
Fix PR7174, a couple o Mips fixes:
...
- Fix a typo for PIC check during jmp table lowering
- Also fix the "first jump table basic block is not
considered only reachable by fall through" problem, use this
ad-hoc solution until I come up with something better.
Patch by stetorvs@gmail.com
llvm-svn: 108820
2010-07-20 08:37:04 +00:00