llvm-6502/test/CodeGen
Chris Lattner 97a29a5fee optimize the case of cond ? 42 : 41 and friends. This compiles the
example to:

_test:
	movl	4(%esp), %eax
	cmpl	$41, (%eax)
	setg	%al
	movzbl	%al, %eax
	orl	$4294967294, %eax
	ret

instead of:

        movl    4(%esp), %eax
        cmpl    $41, (%eax)
	movl	$4294967294, %ecx
	movl	$4294967295, %eax
	cmova	%ecx, %eax
	ret

which is smaller in code size and faster. rdar://6668608



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66868 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-13 05:22:11 +00:00
..
Alpha Fix Alpha test and support for private linkage. 2009-01-15 21:51:46 +00:00
ARM add no-unwind, remove duplicate run line. 2009-03-12 05:56:37 +00:00
CBackend Fix PR2907 by digging through constant expressions to find FP constants that 2008-10-22 04:53:16 +00:00
CellSPU Used "-enable-unsafe-fp-math" to allow this transformation - (a * b -c) = c - a *b. 2009-01-31 06:50:54 +00:00
CPP Put CPPBackend tests into their own directory and run them only if they're 2008-07-10 22:35:32 +00:00
Generic wire up support for emitting "special" values from inline asm 2009-03-10 05:37:13 +00:00
IA64 Add the private linkage. 2009-01-15 20:18:42 +00:00
Mips Add the private linkage. 2009-01-15 20:18:42 +00:00
PowerPC Private linkage support for PPC / Darwin. 2009-01-25 06:32:01 +00:00
SPARC Add the private linkage. 2009-01-15 20:18:42 +00:00
X86 optimize the case of cond ? 42 : 41 and friends. This compiles the 2009-03-13 05:22:11 +00:00
XCore Add the private linkage. 2009-01-15 20:18:42 +00:00