[llvm-bugs] [Bug 28288] New: Error message in shift of vector values

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 24 02:23:32 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28288

            Bug ID: 28288
           Summary: Error message in shift of vector values
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: vbyakovlcl at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Compilation of a test case below fails with an error message.

$cat t.c
typedef unsigned vec __attribute__ ((vector_size (16)));

void
f (vec *x)
{
   *x = *x << 4 ;
}

$clang t.c
t.c:6:12: error: cannot convert between vector values of different size ('vec'
(vector of 4 'unsigned int' values) and 'int')
   *x = *x << 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/20160624/048e0565/attachment.html>


More information about the llvm-bugs mailing list