[Sema] Gcc compatibility of vector shift
authorAndrey Bokhanko <andreybokhanko@gmail.com>
Wed, 19 Oct 2016 12:06:10 +0000 (12:06 +0000)
committerAndrey Bokhanko <andreybokhanko@gmail.com>
Wed, 19 Oct 2016 12:06:10 +0000 (12:06 +0000)
commit9941ca8af6b4c39fd0b9e47dc7e593d884b55710
tree78b388f78a84e3437862043cedd7a5324b5ed8fa
parent7dcb6e572ec7d62cc6744df4452fc7ef80f20c36
[Sema] Gcc compatibility of vector shift

Gcc prints error if elements of left and right parts of a shift have different
sizes. This patch is provided the GCC compatibility.

Patch by Vladimir Yakovlev.

Differential Revision: https://reviews.llvm.org/D24669

llvm-svn: 284579
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaExpr.cpp
clang/test/CodeGen/vecshift.c
clang/test/Sema/vecshift.c