[LLVMbugs] [Bug 17899] New: vector comparison 'less than' miscompiled on avx2

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 12 11:37:25 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=17899

            Bug ID: 17899
           Summary: vector comparison 'less than' miscompiled on avx2
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: kraiskil at ovi.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11526
  --> http://llvm.org/bugs/attachment.cgi?id=11526&action=edit
Sample reduced source to show the bug

The following OpenCL code is miscompiled when targeting core-avx2 CPU:s 
 c < (short16)0 ? b : a
Only 'less that' seems to be miscompiled, all other comparisons that I tried
give the correct result. Also all shorter that 16xi16 vectors work fine.

Attached is a tar.gz with complete example code. When compiling with CPU
corei7, the result is correct, when compiling with core-avx2 it is wrong:

$./run.sh corei7
res1.x=a
$./run.sh core-avx2
res1.x=b

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131112/09bb8298/attachment.html>


More information about the llvm-bugs mailing list