llvm-6502/test/CodeGen
Chris Lattner cee56e7d33 generalize the previous code to use the full generality of LEA
for i32/i64 expressions (we could also do i16 on cpus where
i16 lea is fast, but I didn't add this).  On the example, we now
generate:

_test:
	movl	4(%esp), %eax
	cmpl	$42, (%eax)
	setl	%al
	movzbl	%al, %eax
	leal	4(%eax,%eax,8), %eax
	ret

instead of:

_test:
	movl	4(%esp), %eax
	cmpl	$41, (%eax)
	movl	$4, %ecx
	movl	$13, %eax
	cmovg	%ecx, %eax
	ret



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66869 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-13 05:53:31 +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 generalize the previous code to use the full generality of LEA 2009-03-13 05:53:31 +00:00
XCore Add the private linkage. 2009-01-15 20:18:42 +00:00