llvm-6502/test
Hal Finkel a548afc98f Prepare to make r0 an allocatable register on PPC
Currently the PPC r0 register is unconditionally reserved. There are two reasons
for this:

 1. r0 is treated specially (as the constant 0) by certain instructions, and so
    cannot be used with those instructions as a regular register.

 2. r0 is used as a temporary register in the CR-register spilling process
    (where, under some circumstances, we require two GPRs).

This change addresses the first reason by introducing a restricted register
class (without r0) for use by those instructions that treat r0 specially. These
register classes have a new pseudo-register, ZERO, which represents the r0-as-0
use. This has the side benefit of making the existing target code simpler (and
easier to understand), and will make it clear to the register allocator that
uses of r0 as 0 don't conflict will real uses of the r0 register.

Once the CR spilling code is improved, we'll be able to allocate r0.

Adding these extra register classes, for some reason unclear to me, causes
requests to the target to copy 32-bit registers to 64-bit registers. The
resulting code seems correct (and causes no test-suite failures), and the new
test case covers this new kind of asymmetric copy.

As r0 is still reserved, no functionality change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177423 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-19 18:51:05 +00:00
..
Analysis Optimize sext <4 x i8> and <4 x i16> to <4 x i64>. 2013-03-19 18:38:27 +00:00
Archive
Assembler Correct invalid debug info metadata 2013-03-12 19:04:24 +00:00
Bindings/Ocaml
Bitcode
BugPoint
CodeGen Prepare to make r0 an allocatable register on PPC 2013-03-19 18:51:05 +00:00
DebugInfo Split out filename & directory from DIFile to start generalizing over DIScopes 2013-03-17 21:13:55 +00:00
ExecutionEngine
Feature
FileCheck
Instrumentation [asan] when creating string constants, set unnamed_attr and align 1 so that equal strings are merged by the linker. Observed up to 1% binary size reduction. Thanks to Anton Korobeynikov for the suggestion 2013-03-18 09:38:39 +00:00
Integer
JitListener
Linker
MC Post process ADC/SBB and use a shorter encoding if they use a sign extended immediate. 2013-03-18 03:34:55 +00:00
Object [llvm-readobj] Add ELF .dynamic table dumping. 2013-02-20 02:37:12 +00:00
Other
Scripts
TableGen
tools
Transforms Emit the linkage name instead of the function name, when available. This means 2013-03-19 01:37:55 +00:00
Unit Fixup for r176933: more careful setup of path to llvm-symbolizer 2013-03-15 07:27:49 +00:00
Verifier
YAMLParser
CMakeLists.txt Add llvm-symbolizer as test dependency. 2013-03-13 09:35:18 +00:00
lit.cfg Fixup for r176933: more careful setup of path to llvm-symbolizer 2013-03-15 07:27:49 +00:00
lit.site.cfg.in
Makefile In r169695, the address space limit for tests was replaced with a data 2013-03-12 12:38:10 +00:00
Makefile.tests
TestRunner.sh