Evan Cheng be3bf42331 Fix a x86-64 codegen deficiency. Allow gv + offset when using rip addressing mode.
Before:
_main:
        subq    $8, %rsp
        leaq    _X(%rip), %rax
        movsd   8(%rax), %xmm1
        movss   _X(%rip), %xmm0
        call    _t
        xorl    %ecx, %ecx
        movl    %ecx, %eax
        addq    $8, %rsp
        ret
Now:
_main:
        subq    $8, %rsp
        movsd   _X+8(%rip), %xmm1
        movss   _X(%rip), %xmm0
        call    _t
        xorl    %ecx, %ecx
        movl    %ecx, %eax
        addq    $8, %rsp
        ret

Notice there is another idiotic codegen issue that needs to be fixed asap:
xorl    %ecx, %ecx
movl    %ecx, %eax


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46850 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-07 08:53:49 +00:00
..
2007-08-30 16:07:20 +00:00
2007-10-14 05:57:21 +00:00
2007-07-19 23:53:29 +00:00
2007-07-19 23:13:04 +00:00
2007-07-19 23:13:04 +00:00
2007-06-29 00:27:18 +00:00
2007-06-29 23:17:15 +00:00
2007-06-29 21:40:30 +00:00
2007-08-13 18:42:37 +00:00
2007-09-18 22:56:31 +00:00
2007-10-05 01:44:22 +00:00
2007-10-12 09:10:27 +00:00
2007-10-13 03:10:54 +00:00
2007-10-13 03:10:54 +00:00
2007-10-15 16:35:13 +00:00
2007-10-16 19:29:47 +00:00
2007-10-19 22:05:00 +00:00
2007-11-02 17:36:58 +00:00
2007-11-16 23:55:08 +00:00
2007-09-25 17:50:55 +00:00
2007-10-29 22:07:18 +00:00
2007-09-25 17:50:55 +00:00
2008-01-24 06:35:44 +00:00
2007-11-24 05:39:29 +00:00
2007-10-08 22:20:32 +00:00
2007-12-29 08:19:39 +00:00
2008-01-17 19:59:44 +00:00
2007-10-12 07:49:48 +00:00
2007-08-15 13:45:35 +00:00
2008-01-15 22:22:02 +00:00
2007-06-29 00:27:18 +00:00
2007-12-06 22:12:45 +00:00
2007-12-29 19:24:06 +00:00
2007-07-19 23:13:04 +00:00