Akira Hatanaka
46c323ab23
[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
6bdcfb22d7
Fix test cases.
...
llvm-svn: 158435
2012-06-14 01:21:00 +00:00
Akira Hatanaka
0435101a38
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
a80ec224bf
Fix test cases.
...
llvm-svn: 156697
2012-05-12 03:25:16 +00:00
Akira Hatanaka
b3ecf903f1
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
1b46e841a2
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
874523adc5
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
b119dd5891
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
9d1e8420ff
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
6e1bd851dc
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
0fa595f073
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