llvm-6502/test/CodeGen
Benjamin Kramer 162ee5c725 Add a neat little two's complement hack for x86.
On x86 we can't encode an immediate LHS of a sub directly. If the RHS comes from a XOR with a constant we can
fold the negation into the xor and add one to the immediate of the sub. Then we can turn the sub into an add,
which can be commuted and encoded efficiently.

This code is generated for __builtin_clz and friends.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136167 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-26 22:42:13 +00:00
..
Alpha make the asmparser reject function and type redefinitions. 'Merging' hasn't been 2011-06-17 07:06:44 +00:00
ARM FileCheck'ize test. 2011-07-26 20:49:44 +00:00
Blackfin more tests not making the jump into the brave new world. 2011-07-09 16:57:10 +00:00
CBackend more tests not making the jump into the brave new world. 2011-07-09 16:57:10 +00:00
CellSPU make the asmparser reject function and type redefinitions. 'Merging' hasn't been 2011-06-17 07:06:44 +00:00
CPP manually upgrade a bunch of tests to modern syntax, and remove some that 2011-06-17 03:14:27 +00:00
Generic Comment correction. 2011-07-12 03:39:22 +00:00
MBlaze
Mips Lower memory barriers to sync instructions. 2011-07-19 23:30:50 +00:00
MSP430 Fix register-dependent test in MSP430. 2011-05-04 01:01:39 +00:00
PowerPC Add MCObjectFileInfo and sink the MCSections initialization code from 2011-07-20 05:58:47 +00:00
PTX PTX: corrected tests that were failing 2011-06-25 19:41:17 +00:00
SPARC make the asmparser reject function and type redefinitions. 'Merging' hasn't been 2011-06-17 07:06:44 +00:00
SystemZ manually upgrade a bunch of tests to modern syntax, and remove some that 2011-06-17 03:14:27 +00:00
Thumb Change some ARM subtarget features to be single bit yes/no in order to sink them down to MC layer. Also fix tests. 2011-07-07 03:55:05 +00:00
Thumb2 Introduce MCCodeGenInfo, which keeps information that can affect codegen 2011-07-19 06:37:02 +00:00
X86 Add a neat little two's complement hack for x86. 2011-07-26 22:42:13 +00:00
XCore Add intrinsics for the zext / sext instructions. 2011-07-19 13:28:50 +00:00