Skip to content

Commit da2587c

Browse files
author
Evan Cheng
committed
Some clean up.
llvm-svn: 50929
1 parent bb48d55 commit da2587c

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

llvm/lib/Target/X86/X86InstrSSE.td

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -675,20 +675,21 @@ let Constraints = "$src1 = $dst" in {
675675
def MOVLPSrm : PSI<0x12, MRMSrcMem,
676676
(outs VR128:$dst), (ins VR128:$src1, f64mem:$src2),
677677
"movlps\t{$src2, $dst|$dst, $src2}",
678-
[(set VR128:$dst,
679-
(v4f32 (vector_shuffle VR128:$src1,
680-
(bc_v4f32 (v2f64 (scalar_to_vector (loadf64 addr:$src2)))),
681-
MOVLP_shuffle_mask)))]>;
678+
[(set VR128:$dst,
679+
(v4f32 (vector_shuffle VR128:$src1,
680+
(bc_v4f32 (v2f64 (scalar_to_vector (loadf64 addr:$src2)))),
681+
MOVLP_shuffle_mask)))]>;
682682
def MOVHPSrm : PSI<0x16, MRMSrcMem,
683683
(outs VR128:$dst), (ins VR128:$src1, f64mem:$src2),
684684
"movhps\t{$src2, $dst|$dst, $src2}",
685-
[(set VR128:$dst,
686-
(v4f32 (vector_shuffle VR128:$src1,
687-
(bc_v4f32 (v2f64 (scalar_to_vector (loadf64 addr:$src2)))),
688-
MOVHP_shuffle_mask)))]>;
685+
[(set VR128:$dst,
686+
(v4f32 (vector_shuffle VR128:$src1,
687+
(bc_v4f32 (v2f64 (scalar_to_vector (loadf64 addr:$src2)))),
688+
MOVHP_shuffle_mask)))]>;
689689
} // AddedComplexity
690690
} // Constraints = "$src1 = $dst"
691691

692+
692693
def MOVLPSmr : PSI<0x13, MRMDestMem, (outs), (ins f64mem:$dst, VR128:$src),
693694
"movlps\t{$src, $dst|$dst, $src}",
694695
[(store (f64 (vector_extract (bc_v2f64 (v4f32 VR128:$src)),
@@ -2265,16 +2266,17 @@ def MOVLQ128mr : PDI<0xD6, MRMDestMem, (outs), (ins i64mem:$dst, VR128:$src),
22652266

22662267
// Move to lower bits of a VR128 and zeroing upper bits.
22672268
// Loading from memory automatically zeroing upper bits.
2268-
let AddedComplexity = 20 in
2269-
def MOVZSD2PDrm : SDI<0x10, MRMSrcMem, (outs VR128:$dst), (ins f64mem:$src),
2270-
"movsd\t{$src, $dst|$dst, $src}",
2271-
[(set VR128:$dst,
2272-
(v2f64 (X86vzmovl (v2f64 (scalar_to_vector
2273-
(loadf64 addr:$src))))))]>;
2269+
let AddedComplexity = 20 in {
2270+
def MOVZSD2PDrm : SDI<0x10, MRMSrcMem, (outs VR128:$dst), (ins f64mem:$src),
2271+
"movsd\t{$src, $dst|$dst, $src}",
2272+
[(set VR128:$dst,
2273+
(v2f64 (X86vzmovl (v2f64 (scalar_to_vector
2274+
(loadf64 addr:$src))))))]>;
22742275

22752276
def : Pat<(v2f64 (X86vzmovl (memopv2f64 addr:$src))),
2276-
(MOVZSD2PDrm addr:$src)>;
2277+
(MOVZSD2PDrm addr:$src)>;
22772278
def : Pat<(v2f64 (X86vzload addr:$src)), (MOVZSD2PDrm addr:$src)>;
2279+
}
22782280

22792281
// movd / movq to XMM register zero-extends
22802282
let AddedComplexity = 15 in {
@@ -2301,9 +2303,9 @@ def MOVZQI2PQIrm : I<0x7E, MRMSrcMem, (outs VR128:$dst), (ins i64mem:$src),
23012303
(v2i64 (X86vzmovl (v2i64 (scalar_to_vector
23022304
(loadi64 addr:$src))))))]>, XS,
23032305
Requires<[HasSSE2]>;
2304-
}
23052306

23062307
def : Pat<(v2i64 (X86vzload addr:$src)), (MOVZQI2PQIrm addr:$src)>;
2308+
}
23072309

23082310
// Moving from XMM to XMM and clear upper 64 bits. Note, there is a bug in
23092311
// IA32 document. movq xmm1, xmm2 does clear the high bits.

0 commit comments

Comments
 (0)