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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to