llvm-6502/test
Chris Lattner 0a1c997c27 fix an x86 fast isel issue where we'd completely give up on folding an address
when we have a global variable base an an index.  Instead, just give up on
folding the global variable.

Before we'd geenrate:

_test:                                  ## @test
## BB#0:
	movq	_rtx_length@GOTPCREL(%rip), %rax
	leaq	(%rax), %rax
	addq	%rdi, %rax
	movzbl	(%rax), %eax
	ret

now we generate:

_test:                                  ## @test
## BB#0:
	movq	_rtx_length@GOTPCREL(%rip), %rax
	movzbl	(%rax,%rdi), %eax
	ret

The difference is even more significant when there is a scale
involved.

This fixes rdar://9289558 - total fail with addr mode formation at -O0/x86-64


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129664 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-17 17:47:38 +00:00
..
Analysis
Archive
Assembler Reapply r129401 with patch for clang. 2011-04-13 00:36:11 +00:00
Bindings/Ocaml
Bitcode
BugPoint
CodeGen fix an x86 fast isel issue where we'd completely give up on folding an address 2011-04-17 17:47:38 +00:00
DebugInfo Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
ExecutionEngine
Feature Revert r129235 pending a vetting of the EH rewrite. 2011-04-10 23:18:04 +00:00
FrontendAda
FrontendC Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
FrontendC++
FrontendFortran
FrontendObjC
FrontendObjC++
Integer
lib
Linker
LLVMC
MC Thumb2 BFC was insufficiently encoded. 2011-04-15 22:52:15 +00:00
Object
Other
Scripts
TableGen Fix a ton of comment typos found by codespell. Patch by 2011-04-15 05:18:47 +00:00
Transforms Add test cases for Jay's r129641 and fix a 32-bit-centric testcase in a file with a 64-bit datalayout. 2011-04-16 14:31:50 +00:00
Unit
Verifier
CMakeLists.txt Fix compiler command line used by lit.py when working with NMake 2011-04-12 22:10:38 +00:00
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
site.exp.in
TestRunner.sh