[llvm-bugs] [Bug 28661] New: [AVX512] incorrect code for boolean expression at -O0.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 22 01:08:17 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28661

            Bug ID: 28661
           Summary: [AVX512] incorrect code for boolean expression at -O0.
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: babokin at gmail.com
                CC: elena.demikhovsky at intel.com, igor.breger at intel.com,
                    llvm-bugs at lists.llvm.org, Vsevolod.Livinskij at frtk.ru
    Classification: Unclassified

Created attachment 16791
  --> https://llvm.org/bugs/attachment.cgi?id=16791&action=edit
reproducer

Simple test case triggers incorrect code generation on AVX512 at -O0.

#include <stdio.h>

int main() {
  bool b = true;
  bool res = ((bool)  (!(! b))) && true;

  printf("%d (expected 1)\n", res);
  return 0;
}


> clang++ -O0 knl_bool_bug.cpp -march=knl
> sde -knl -- ./a.out
0 (expected 1)

-- 
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/20160722/6186a036/attachment.html>


More information about the llvm-bugs mailing list