Fix UB in SIMD tests.

One of the SIMD tests attempted to left shift a value by 42, which
is UB when the left hand side is a 32 bit integer type.

This patch adjusts the test to use the value 4 instead of 42.

llvm-svn: 342820
This commit is contained in:
Eric Fiselier 2018-09-22 20:09:02 +00:00
parent 2f02863bf2
commit 67e881d112
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ void test_access() {
}
{
auto c = a;
(void)(a[0] + (c[0] <<= a[0]));
(void)(a[0] + (c[0] <<= b[0]));
}
{
auto c = a;