mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
f5f70685b6
SparcV9 and PowerPC64 without target triples, since they are both 64-bit big-endian targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15688 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
LICENSE.TXT | ||
Makefile | ||
PowerPC.td | ||
PowerPCInstrInfo.cpp | ||
PowerPCInstrInfo.h | ||
PowerPCPEI.cpp | ||
PowerPCRegisterInfo.cpp | ||
PowerPCRegisterInfo.h | ||
PowerPCTargetMachine.h | ||
PPC32AsmPrinter.cpp | ||
PPC32ISelSimple.cpp | ||
PPC32JITInfo.h | ||
PPC64AsmPrinter.cpp | ||
PPC64CodeEmitter.cpp | ||
PPC64ISelSimple.cpp | ||
PPC64JITInfo.h | ||
PPC64TargetMachine.h | ||
PPC.h | ||
PPCAsmPrinter.cpp | ||
PPCBranchSelector.cpp | ||
PPCCodeEmitter.cpp | ||
PPCInstrBuilder.h | ||
PPCInstrFormats.td | ||
PPCInstrInfo.td | ||
PPCJITInfo.h | ||
PPCRegisterInfo.td | ||
PPCTargetMachine.cpp | ||
PPCTargetMachine.h | ||
README.txt |
TODO: * implement cast fp to bool * implement signed right shift by reg * 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) * PowerPCPEI.cpp needs to be replaced by shiny new target hook * 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 Current hacks: * lazy insert of GlobalBaseReg definition at front of first MBB A prime candidate for sabre's future "slightly above ISel" passes. * cast code is huge, unwieldy. Should probably be broken up into smaller pieces. * visitLoadInst is getting awfully cluttered as well. 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 | `- siod: llc bus error | `- hbd: miscompilation | `- d (make_dparser): miscompilation `- Benchmarks `- MallocBench/make: miscompilation