mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
More notes on bugs, unimplemented features, and suggested code improvements.
Written by Nate Begeman. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15235 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,12 +1,25 @@
|
|||||||
Currently unimplemented:
|
Currently unimplemented:
|
||||||
* cast fp to bool
|
* cast fp to bool
|
||||||
* signed right shift
|
* signed right shift of long by reg
|
||||||
|
|
||||||
Current bugs:
|
Current bugs:
|
||||||
* use of a cByte/cShort by setCC not first truncated or sign extended
|
|
||||||
(uByte r3 = 250, r3 + 100; setlt r3, 200 will get wrong result).
|
|
||||||
* conditional branches assume target is within 32k bytes
|
* conditional branches assume target is within 32k bytes
|
||||||
* large fixed-size allocas not correct
|
* large fixed-size allocas not correct, although should
|
||||||
|
be closer to working. Added code in PPCRegisterInfo.cpp
|
||||||
|
to do >16bit subtractions to the stack pointer.
|
||||||
|
|
||||||
|
Codegen improvements needed:
|
||||||
|
* we unconditionally emit save/restore of LR even if we don't use it
|
||||||
|
* no alias analysis causes us to generate slow code for Shootout/matrix
|
||||||
|
* setCondInst needs to know branchless versions of seteq/setne/etc
|
||||||
|
* cast elimination pass (uint -> sbyte -> short, kill the byte -> short)
|
||||||
|
|
||||||
|
Current hacks:
|
||||||
|
* lazy insert of GlobalBaseReg definition at front of first MBB
|
||||||
|
A prime candidate for sabre's "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:
|
Currently failing tests:
|
||||||
* Regression
|
* Regression
|
||||||
@@ -14,13 +27,9 @@ Currently failing tests:
|
|||||||
`- Benchmarks
|
`- Benchmarks
|
||||||
| `- Shootout-C++ : most programs fail, miscompilations
|
| `- Shootout-C++ : most programs fail, miscompilations
|
||||||
`- UnitTests
|
`- UnitTests
|
||||||
| `- 2002-05-02-CastTest
|
|
||||||
| `- 2003-05-07-VarArgs
|
|
||||||
| `- 2003-05-26-Shorts
|
| `- 2003-05-26-Shorts
|
||||||
| `- 2003-07-09-LoadShorts
|
| `- 2003-07-09-LoadShorts
|
||||||
| `- 2003-07-09-SignedArgs
|
| `- 2004-06-20-StaticBitfieldInt
|
||||||
| `- 2003-08-11-VaListArg
|
|
||||||
| `- 2003-05-22-VarSizeArray
|
|
||||||
`- C++Catch
|
`- C++Catch
|
||||||
`- SimpleC++Test
|
`- SimpleC++Test
|
||||||
`- ConditionalExpr
|
`- ConditionalExpr
|
||||||
@@ -34,8 +43,4 @@ Currently failing tests:
|
|||||||
| `- hbd: miscompilation
|
| `- hbd: miscompilation
|
||||||
| `- d (make_dparser): miscompilation
|
| `- d (make_dparser): miscompilation
|
||||||
`- Benchmarks
|
`- Benchmarks
|
||||||
`- McCat/12-IOtest: miscompilation
|
`- MallocBench/make: branch target too far
|
||||||
`- Ptrdist/bc: branch target too far
|
|
||||||
`- FreeBench/pifft
|
|
||||||
`- MallocBench/espresso: same as bc
|
|
||||||
`- MallocBench/make: same as bc
|
|
||||||
|
Reference in New Issue
Block a user