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

Reply via email to