<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic hello, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Bug-when-using-elemental-functions-and-chars/m-p/994603#M28087</link>
    <description>hello,
with Intel composer XE 2013 which also has Cilk, this issue does not come.
which compiler did you check with? I am not sure we can do anthing with gcc cilkplus branch. 
though if you need more clarification, you can send the details for analysis.</description>
    <pubDate>Fri, 12 Oct 2012 05:26:37 GMT</pubDate>
    <dc:creator>Milind_Kulkarni__Int</dc:creator>
    <dc:date>2012-10-12T05:26:37Z</dc:date>
    <item>
      <title>Bug when using elemental functions and chars</title>
      <link>https://community.intel.com/t5/Software-Archive/Bug-when-using-elemental-functions-and-chars/m-p/994602#M28086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;i have a small program using an elemental function to compute the edit distance of two strings:&lt;/P&gt;
&lt;P&gt;[cpp]&lt;/P&gt;
&lt;P&gt;__attribute__((vector))&lt;BR /&gt;int compare(char x, char y) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (x == y) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return(1);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return(0);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; char a[3] = {'A','A','A'};&lt;BR /&gt;&amp;nbsp; &amp;nbsp; char b[3] = {'A','A','A'};&lt;BR /&gt;&amp;nbsp; &amp;nbsp; int c[3];&lt;BR /&gt;&amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 3; i++) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c&lt;I&gt; = compare(a&lt;I&gt;, b&lt;I&gt;);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cout &amp;lt;&amp;lt; c&lt;I&gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;BR /&gt;}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;When compiling, i receive the following error message:&lt;/P&gt;
&lt;P&gt;test.cpp: In function ‘__vector(4) int compare._simdsimd_B4m_v1(char, char)’:&lt;BR /&gt;test.cpp:9:5: internal compiler error: in convert_move, at expr.c:353&lt;BR /&gt; int compare(char x, char y) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;/P&gt;
&lt;P&gt;This does not happen, if i use an array of integers instead of chars.&lt;/P&gt;
&lt;P&gt;I use the latest version of the gcc cilkplus-branch (checked out today).&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2012 13:34:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Bug-when-using-elemental-functions-and-chars/m-p/994602#M28086</guid>
      <dc:creator>leifblaese</dc:creator>
      <dc:date>2012-09-26T13:34:04Z</dc:date>
    </item>
    <item>
      <title>hello,</title>
      <link>https://community.intel.com/t5/Software-Archive/Bug-when-using-elemental-functions-and-chars/m-p/994603#M28087</link>
      <description>hello,
with Intel composer XE 2013 which also has Cilk, this issue does not come.
which compiler did you check with? I am not sure we can do anthing with gcc cilkplus branch. 
though if you need more clarification, you can send the details for analysis.</description>
      <pubDate>Fri, 12 Oct 2012 05:26:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Bug-when-using-elemental-functions-and-chars/m-p/994603#M28087</guid>
      <dc:creator>Milind_Kulkarni__Int</dc:creator>
      <dc:date>2012-10-12T05:26:37Z</dc:date>
    </item>
  </channel>
</rss>

