[LLVMbugs] [Bug 11555] New: OpenCL counts can overflow

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 13 09:47:09 PST 2011


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

             Bug #: 11555
           Summary: OpenCL counts can overflow
           Product: clang
           Version: 3.0
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: schnetter at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


In OpenCL, shift counts should be taken modulo the size of the datatype. This
piece of code shows that this is not the case:

  if (((char)1 << (char)8) != (char)1) {
    printf("char FAIL\n");
  }

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list