[LLVMbugs] [Bug 10654] New: Assertion failed: (LHS.isSimple() && "Can only subscript lvalue vectors here!") with ext_vector_type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 13 21:20:24 PDT 2011


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

           Summary: Assertion failed: (LHS.isSimple() && "Can only
                    subscript lvalue vectors here!") with ext_vector_type
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: tonic at nondot.org, llvmbugs at cs.uiuc.edu


Testcase:
__attribute((ext_vector_type(4))) typedef int extv4;
extv4 v; 
void f(int i) { v.xzwy[i] = 10; }

Assertion failed: (LHS.isSimple() && "Can only subscript lvalue vectors
here!"), function EmitArraySubscriptExpr, file
/Users/efriedma/llvm/tools/clang/lib/CodeGen/CGExpr.cpp, line 1566.

There happens to be a similar construct to this in test/CodeGen/volatile.c,
although it's on the right-hand side on an assignment there.

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