mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 11:10:12 +00:00
caa4f4a263
to renumber everything. Similar elimination should be applied to other operand enum values that are only used to format printing in the .s file. llvm-svn: 15755 |
||
---|---|---|
.. | ||
LICENSE.TXT | ||
Makefile | ||
PowerPC.h | ||
PowerPC.td | ||
PowerPCBranchSelector.cpp | ||
PowerPCFrameInfo.h | ||
PowerPCInstrBuilder.h | ||
PowerPCInstrFormats.td | ||
PowerPCInstrInfo.cpp | ||
PowerPCInstrInfo.h | ||
PowerPCInstrInfo.td | ||
PowerPCJITInfo.h | ||
PowerPCRegisterInfo.cpp | ||
PowerPCRegisterInfo.h | ||
PowerPCRegisterInfo.td | ||
PowerPCTargetMachine.cpp | ||
PowerPCTargetMachine.h | ||
PPC32AsmPrinter.cpp | ||
PPC32CodeEmitter.cpp | ||
PPC32ISelSimple.cpp | ||
PPC32JITInfo.h | ||
PPC32TargetMachine.h | ||
PPC64AsmPrinter.cpp | ||
PPC64CodeEmitter.cpp | ||
PPC64ISelSimple.cpp | ||
PPC64JITInfo.h | ||
PPC64TargetMachine.h | ||
README.txt |
TODO: * implement cast fp to bool * implement algebraic shift right long by reg * implement scheduling info * implement powerpc-64 for darwin * implement powerpc-64 for aix * fix rlwimi generation to be use-and-def * fix ulong to double: floatdidf assumes signed longs. so if the high but of a ulong just happens to be set, you get the wrong sign. The fix for this is to call cmpdi2 to compare against zero, if so shift right by one, convert to fp, and multiply by (add to itself). the sequence would look like: {r3:r4} holds ulong a; li r5, 0 li r6, 0 (set r5:r6 to ulong 0) call cmpdi2 ==> sets r3 <, =, > 0 if r3 > 0 call floatdidf as usual else shift right ulong a, 1 (we could use emitShift) call floatdidf fadd f1, f1, f1 (fp left shift by 1) * setCondInst needs to know branchless versions of seteq/setne/etc * cast elimination pass (uint -> sbyte -> short, kill the byte -> short) * should hint to the branch select pass that it doesn't need to print the second unconditional branch, so we don't end up with things like: b .LBBl42__2E_expand_function_8_674 ; loopentry.24 b .LBBl42__2E_expand_function_8_42 ; NewDefault b .LBBl42__2E_expand_function_8_42 ; NewDefault Currently failing tests: * SingleSource `- Regression | `- casts (ulong to fp failure) `- Benchmarks | `- Shootout-C++ : most programs fail, miscompilations `- UnitTests | `- C++Catch | `- SimpleC++Test | `- ConditionalExpr (also C++) * MultiSource |- Applications | `- burg: miscompilation | `- hbd: miscompilation | `- d (make_dparser): miscompilation `- Benchmarks `- MallocBench/gs: miscompilation