llvm-6502/lib
Evan Cheng 403be7eafc Fixing truncate. Previously we were emitting truncate from r16 to r8 as
movw. That is we promote the destination operand to r16. So
        %CH = TRUNC_R16_R8 %BP
is emitted as
        movw %bp, %cx.

This is incorrect. If %cl is live, it would be clobbered.
Ideally we want to do the opposite, that is emitted it as
        movb ??, %ch
But this is not possible since %bp does not have a r8 sub-register.

We are now defining a new register class R16_ which is a subclass of R16
containing only those 16-bit registers that have r8 sub-registers (i.e.
AX - DX). We isel the truncate to two instructions, a MOV16to16_ to copy the
value to the R16_ class, followed by a TRUNC_R16_R8.

Due to bug 770, the register colaescer is not going to coalesce between R16 and
R16_. That will be fixed later so we can eliminate the MOV16to16_. Right now, it
can only be eliminated if we are lucky that source and destination registers are
the same.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28164 91177308-0d34-0410-b5e6-96231b3b80d8
2006-05-08 08:01:26 +00:00
..
Analysis
Archive Apply bug fix supplied by Greg Pettyjohn for a bug he found: '<invalid>' is not a legal path on Windows. 2006-05-06 23:25:53 +00:00
AsmParser
Bytecode Apply bug fix supplied by Greg Pettyjohn for a bug he found: '<invalid>' is not a legal path on Windows. 2006-05-06 23:25:53 +00:00
CodeGen Fix PR772 2006-05-08 01:35:01 +00:00
Debugger
ExecutionEngine Adjust to use proper TargetData copy ctor 2006-05-04 21:18:40 +00:00
Linker
Support
System Unlike Unix, Windows won't let a file be implicitly replaced via renaming without explicit permission. 2006-05-07 02:51:51 +00:00
Target Fixing truncate. Previously we were emitting truncate from r16 to r8 as 2006-05-08 08:01:26 +00:00
Transforms Move some code around. 2006-05-06 09:00:16 +00:00
VMCore Add assertions that verify that the actual arguments to a call or invoke match 2006-05-03 00:48:22 +00:00
Makefile