forked from OSchip/llvm-project
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:
parent
2f02863bf2
commit
67e881d112
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue