[LLVMbugs] [Bug 6893] New: cbe creates illegal c from 'insertvalue'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 22 05:40:00 PDT 2010


           Summary: cbe creates illegal c from 'insertvalue'
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kalle.raiskila at nokia.com
                CC: llvmbugs at cs.uiuc.edu

Compiling the following code with the cbe produces bad C

  define void @tester(){
    %vitem = insertvalue [2 x float] zeroinitializer, float 3.0, 0 ; 
    ret void

~/tmp$ gcc -c tmp.c
tmp.c: In function 'tester':
tmp.c:147: error: 'struct l_unnamed0' has no member named 'field0'

'struct l_unnamed0' is defined as:
  /* Structure contents */
  struct l_unnamed0 { float array[2]; };

gcc error comes from:
  struct l_unnamed0 llvm_cbe_vitem;
  llvm_cbe_vitem.field0 = 0x1.8p+1;

llvm version tested: r102057

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