Compile x86-64-and-mask.ll into:
authorChris Lattner <sabre@nondot.org>
Wed, 27 Feb 2008 05:47:54 +0000 (05:47 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 27 Feb 2008 05:47:54 +0000 (05:47 +0000)
commitd0ba2a9c146df8deb355fd5e375f52671109600f
tree8be940e034d6e97828cebb2c98fd336a19a5ed03
parentd36531249a9a9500e516148e7e72d4c0a7a4d0ee
Compile x86-64-and-mask.ll into:

_test:
movl %edi, %eax
ret

instead of:

_test:
        movl    $4294967295, %ecx
        movq    %rdi, %rax
        andq    %rcx, %rax
        ret

It would be great to write this as a Pat pattern that used subregs
instead of a 'pseudo' instruction, but I don't know how to do that
in td files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47658 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/README-X86-64.txt
lib/Target/X86/X86Instr64bit.td
test/CodeGen/X86/x86-64-and-mask.ll [new file with mode: 0644]