diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-10 05:13:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-10 05:13:43 +0000 |
commit | db66750753de3f6da8b4a3728dcbebb551f1328e (patch) | |
tree | 4a745fcf128def111ba4157cfd3c622741c33022 /lib/Target/X86 | |
parent | 3dc2e96eec566f8c4e88a34296d6f10b840d7d1e (diff) | |
download | external_llvm-db66750753de3f6da8b4a3728dcbebb551f1328e.zip external_llvm-db66750753de3f6da8b4a3728dcbebb551f1328e.tar.gz external_llvm-db66750753de3f6da8b4a3728dcbebb551f1328e.tar.bz2 |
Fix the x86-64 side of PR2108 by adding a v2f64 version of
MOVZQI2PQIrr. This would be better handled as a dag combine
(with the goal of eliminating the bitconvert) but I don't know
how to do that safely. Thoughts welcome.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/X86InstrSSE.td | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrSSE.td b/lib/Target/X86/X86InstrSSE.td index dbc04b0..442847c 100644 --- a/lib/Target/X86/X86InstrSSE.td +++ b/lib/Target/X86/X86InstrSSE.td @@ -2305,6 +2305,16 @@ def MOVZQI2PQIrr : RPDI<0x6E, MRMSrcReg, (outs VR128:$dst), (ins GR64:$src), MOVL_shuffle_mask)))]>; } +// Handle the v2f64 form of 'MOVZQI2PQIrr' for PR2108. FIXME: this would be +// better written as a dag combine xform. +let AddedComplexity = 15 in +def : Pat<(v2f64 (vector_shuffle immAllZerosV_bc, + (v2f64 (scalar_to_vector + (f64 (bitconvert GR64:$src)))), + MOVL_shuffle_mask)), + (MOVZQI2PQIrr GR64:$src)>, Requires<[HasSSE3]>; + + let AddedComplexity = 20 in { def MOVZDI2PDIrm : PDI<0x6E, MRMSrcMem, (outs VR128:$dst), (ins i32mem:$src), "movd\t{$src, $dst|$dst, $src}", |