[LLVMbugs] [Bug 15685] New: OpenCL 'char' is not signed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 5 04:20:39 PDT 2013


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

            Bug ID: 15685
           Summary: OpenCL 'char' is not signed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kalle.raiskila at nokia.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When compiling OpenCL, the signedness of 'char' is platform dependant (as in
C), whereas the OpenCL spec (ยง6.1.1) defines 'char' to be signed.

check with e.g.: 
echo "int foo=(char)0xff;" | clang -x cl - -o - -emit-llvm -S

which compiles on PowerPC to:
@foo = global i32 255, align 4

but, on Intel:
@foo = global i32 -1, align 4

-- 
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/20130405/541f5046/attachment.html>


More information about the llvm-bugs mailing list