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

           Summary: darwin-string-literals test failure on ppc32 for utf-16
                    string
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Keywords: miscompilation, portability
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=2969)
 --> (http://llvm.org/bugs/attachment.cgi?id=2969)
llvm-ir file produced by test.

The test is being run on powerpc-apple-darwin9.6.0 

The test expects

@__utf16_string_ = internal global [35 x i8] c"h\00e\00l\00l\00o\00 \00\92!
\00\03& \00\90! \00w\00o\00r\00l\00d\00\00", section "__TEXT,__ustring", align
2

to be produced. The test produces

@__utf16_string_ = internal global [35 x i8] c"\00h\00e\00l\00l\00o\00 !\92\00
&\03\00 !\90\00 \00w\00o\00r\00l\00d\00", section "__TEXT,__ustring", align 2

See attached .ll file.


-- 
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