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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@342820 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -165,7 +165,7 @@ void test_access() {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
auto c = a;
|
auto c = a;
|
||||||
(void)(a[0] + (c[0] <<= a[0]));
|
(void)(a[0] + (c[0] <<= b[0]));
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
auto c = a;
|
auto c = a;
|
||||||
|
|||||||
Reference in New Issue
Block a user