<div dir="ltr"><div><p style="margin:0px">The attached patch adds a pattern for X86Broadcast. This is the error message I'm currently seeing when I compile the test case:<br></p><p style="margin:0px;font-size:11px;font-family:Menlo"><span style="font-family:arial;font-size:small"><br></span></p><p style="margin:0px;font-size:11px;font-family:Menlo">LLVM ERROR: Cannot select: 0x7fda11827200: v2f64 = X86ISD::VBROADCAST 0x7fda12024918 [ORD=2] [ID=14]</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">  0x7fda12024918: f64,ch = load 0x7fda1150bcd0, 0x7fda12024600, 0x7fda12025050<LD8[ConstantPool]> [ORD=2] [ID=12]</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">    0x7fda12024600: i64 = X86ISD::WrapperRIP 0x7fda12024c30 [ID=10]</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">      0x7fda12024c30: i64 = TargetConstantPool<double -1.000000e+00> 0 [ID=8]</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">    0x7fda12025050: i64 = undef [ID=2]</p></div><div><br></div>This fixes PR21050.</div>