From 2260e4149a164f5a9d97b6c27381cff3945dc0e3 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 13 Jul 2018 22:27:53 +0000 Subject: [PATCH] [X86] Use the correct types in some recently added isel patterns. These were supposed to be integer types since we are selecting integer instructions. Found while preparing to remove these patterns for another patch. llvm-svn: 337057 --- llvm/lib/Target/X86/X86InstrSSE.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86InstrSSE.td b/llvm/lib/Target/X86/X86InstrSSE.td index 10c0a7f..8f19584 100644 --- a/llvm/lib/Target/X86/X86InstrSSE.td +++ b/llvm/lib/Target/X86/X86InstrSSE.td @@ -6408,7 +6408,7 @@ let Predicates = [UseAVX] in { def : Pat<(v2f64 (X86Movsd VR128:$src1, VR128:$src2)), (VBLENDPDrri VR128:$src1, VR128:$src2, (i8 1))>; - def : Pat<(v2f64 (X86Movsd VR128:$src1, VR128:$src2)), + def : Pat<(v2i64 (X86Movsd VR128:$src1, VR128:$src2)), (VPBLENDWrri VR128:$src1, VR128:$src2, (i8 0xf))>; } @@ -6446,7 +6446,7 @@ let Predicates = [UseSSE41, OptForSpeed] in { def : Pat<(v2f64 (X86Movsd VR128:$src1, VR128:$src2)), (BLENDPDrri VR128:$src1, VR128:$src2, (i8 1))>; - def : Pat<(v2f64 (X86Movsd VR128:$src1, VR128:$src2)), + def : Pat<(v2i64 (X86Movsd VR128:$src1, VR128:$src2)), (PBLENDWrri VR128:$src1, VR128:$src2, (i8 0xf))>; } -- 2.7.4