Skip to content

Commit c840562

Browse files
committed
[X86] Derive ssmem and sdmem from X86MemOperand. NFCI
This changes the operand type from v4f32/v2f64 to iPTR which seems more correct. But that doesn't seem to do anything other than change the comments in X86GenDAGISel.inc. Probably because we use a ComplexPattern to do the matching so there's no autogenerated code to change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357959 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent c7c7194 commit c840562

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

lib/Target/X86/X86InstrFragmentsSIMD.td

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -681,18 +681,8 @@ def sse_load_f64 : ComplexPattern<v2f64, 5, "selectScalarSSELoad", [],
681681
[SDNPHasChain, SDNPMayLoad, SDNPMemOperand,
682682
SDNPWantRoot, SDNPWantParent]>;
683683

684-
def ssmem : Operand<v4f32> {
685-
let PrintMethod = "printdwordmem";
686-
let MIOperandInfo = (ops ptr_rc, i8imm, ptr_rc_nosp, i32imm, SEGMENT_REG);
687-
let ParserMatchClass = X86Mem32AsmOperand;
688-
let OperandType = "OPERAND_MEMORY";
689-
}
690-
def sdmem : Operand<v2f64> {
691-
let PrintMethod = "printqwordmem";
692-
let MIOperandInfo = (ops ptr_rc, i8imm, ptr_rc_nosp, i32imm, SEGMENT_REG);
693-
let ParserMatchClass = X86Mem64AsmOperand;
694-
let OperandType = "OPERAND_MEMORY";
695-
}
684+
def ssmem : X86MemOperand<"printdwordmem", X86Mem32AsmOperand>;
685+
def sdmem : X86MemOperand<"printqwordmem", X86Mem64AsmOperand>;
696686

697687
//===----------------------------------------------------------------------===//
698688
// SSE pattern fragments

0 commit comments

Comments
 (0)