<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Intel Clear";
panose-1:2 11 6 4 2 2 3 2 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:13.0pt;
font-family:"Intel Clear",sans-serif;
color:#1F497D;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Intel Clear",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText"><a name="_MailEndCompose">Ok - thx Matthias<o:p></o:p></a></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I'll escalate this - will keep you posted.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Regards;<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal"><img width="470" height="73" id="Picture_x0020_1" src="cid:image001.gif@01D0EEEF.A987FB40" alt="image001"><span lang="FR"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:Wingdings;color:#999999">,</span><b><span lang="PT-BR" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#999999"> E-mail:
</span></b><b><span lang="FR" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#999999"><a href="mailto:laurent.duhem@intel.com" title="mailto:laurent.duhem@intel.com"><span lang="PT-BR" style="color:blue">laurent.duhem@intel.com</span></a></span></b><span lang="PT-BR" style="font-size:12.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:Wingdings;color:#999999">)</span><b><span lang="FR" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#999999"> Office:
</span></b><b><span lang="FR" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">+33 158877271<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:Wingdings;color:#999999">)</span><b><span lang="FR" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#999999"> Mobile:
</span></b><b><span lang="FR" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">+33 621415972<o:p></o:p></span></b></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoPlainText">-----Original Message-----<br>
From: Matthias Kretz [mailto:m.kretz@gsi.de] <br>
Sent: Friday, September 11, 2015 4:51 PM<br>
To: vc@compeng.uni-frankfurt.de<br>
Cc: Duhem, Laurent; Oertel, Klaus-Dieter<br>
Subject: Re: Vc issue<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hi,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I just found a workaround in ICC's zmmintrin.h. If I #define __INTEL_COMPILER_USE_INTRINSIC_PROTOTYPES the old (and documented) interface is restored. See:<o:p></o:p></p>
<p class="MsoPlainText"><a href="https://github.com/VcDevel/Vc/commit/f86080d0e0195257d3b2142ab7f13023d10cbc63"><span style="color:#1F497D;text-decoration:none">https://github.com/VcDevel/Vc/commit/f86080d0e0195257d3b2142ab7f13023d10cbc63</span></a><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Maybe this helps to track down the issue in ICC.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Cheers,<o:p></o:p></p>
<p class="MsoPlainText"> Matthias<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">On Thursday 10 September 2015 17:16:41 Matthias Kretz wrote:<o:p></o:p></p>
<p class="MsoPlainText">> On Thursday 10 September 2015 14:15:02 Duhem, Laurent wrote:<o:p></o:p></p>
<p class="MsoPlainText">> > I had a look at your ./mic/intrinsics.h file.<o:p></o:p></p>
<p class="MsoPlainText">> > <o:p></o:p></p>
<p class="MsoPlainText">> > Machine instruction for those kind of intrinsic have a field of 3
<o:p></o:p></p>
<p class="MsoPlainText">> > bits in the mnemonic to specify the conversion argument (so called
<o:p></o:p></p>
<p class="MsoPlainText">> > MVEX.SSS field) – same for the memory hint: the hint is represented by one bit ( MVEX.EH).<o:p></o:p></p>
<p class="MsoPlainText">> > <o:p></o:p></p>
<p class="MsoPlainText">> > Hence the compiler can’t generate the final machine instruction
<o:p></o:p></p>
<p class="MsoPlainText">> > unless the conversion and hit are a fixed compile time constant.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> I know. And that's the case here. The argument used for conv is a
<o:p></o:p></p>
<p class="MsoPlainText">> constant expression. And that's not the issue for the compilation
<o:p></o:p></p>
<p class="MsoPlainText">> error. ICC doesn't complain about the argument not being an immediate
<o:p></o:p></p>
<p class="MsoPlainText">> value - it doesn't even get so far as to check it. ICC fails earlier.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> This testcase should hopefully make it clear:<o:p></o:p></p>
<p class="MsoPlainText">> #include <immintrin.h><o:p></o:p></p>
<p class="MsoPlainText">> struct A<o:p></o:p></p>
<p class="MsoPlainText">> {<o:p></o:p></p>
<p class="MsoPlainText">> constexpr operator _MM_DOWNCONV_EPI32_ENUM() const { return
<o:p></o:p></p>
<p class="MsoPlainText">> _MM_DOWNCONV_EPI32_NONE; }<o:p></o:p></p>
<p class="MsoPlainText">> constexpr operator _MM_UPCONV_EPI32_ENUM() const { return
<o:p></o:p></p>
<p class="MsoPlainText">> _MM_UPCONV_EPI32_NONE; } };<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> int f(_MM_DOWNCONV_EPI32_ENUM) { return 0; }<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> int main()<o:p></o:p></p>
<p class="MsoPlainText">> {<o:p></o:p></p>
<p class="MsoPlainText">> f(A());<o:p></o:p></p>
<p class="MsoPlainText">> _mm512_i32extscatter_epi32(nullptr, __m512i(), __m512i(), A(), 1, 0);<o:p></o:p></p>
<p class="MsoPlainText">> return 0;<o:p></o:p></p>
<p class="MsoPlainText">> }<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> The expression f(A()) is not ambiguous, while <o:p></o:p></p>
<p class="MsoPlainText">> _mm512_i32extscatter_epi32(..., A(), ...) is. This would be impossible
<o:p></o:p></p>
<p class="MsoPlainText">> if the fourth parameter of<o:p></o:p></p>
<p class="MsoPlainText">> _mm512_i32extscatter_epi32 were of type _MM_DOWNCONV_EPI32_ENUM. The
<o:p></o:p></p>
<p class="MsoPlainText">> compiler error says the parameter is of type unsigned int: 'error:
<o:p></o:p></p>
<p class="MsoPlainText">> more than one conversion function from "A" to "unsigned int" applies'.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> My complaint is about the type of the conv argument of <o:p>
</o:p></p>
<p class="MsoPlainText">> _mm512_i32extscatter_epi32. It's unsigned int. It was <o:p>
</o:p></p>
<p class="MsoPlainText">> _MM_DOWNCONV_EPI32_ENUM in previous ICC versions and it still is
<o:p></o:p></p>
<p class="MsoPlainText">> documented as _MM_DOWNCONV_EPI32_ENUM in the ICC 16 documentation.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> _______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">> Vc mailing list<o:p></o:p></p>
<p class="MsoPlainText">> <a href="mailto:Vc@compeng.uni-frankfurt.de"><span style="color:#1F497D;text-decoration:none">Vc@compeng.uni-frankfurt.de</span></a><o:p></o:p></p>
<p class="MsoPlainText">> <a href="https://compeng.uni-frankfurt.de/mailman/listinfo/vc">
<span style="color:#1F497D;text-decoration:none">https://compeng.uni-frankfurt.de/mailman/listinfo/vc</span></a><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
</div>
<p>---------------------------------------------------------------------<br>
Intel Corporation SAS (French simplified joint stock company)<br>
Registered headquarters: "Les Montalets"- 2, rue de Paris, <br>
92196 Meudon Cedex, France<br>
Registration Number: 302 456 199 R.C.S. NANTERRE<br>
Capital: 4,572,000 Euros</p>
<p>This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.</p></body>
</html>