diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-09-22 20:09:02 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-09-22 20:09:02 +0000 |
commit | 67e881d11226f3d524f0ac7e194394057f66d7b5 (patch) | |
tree | 9b35647efcfb4eab450a70c4f613563aa857b9ad /libcxx/test/std/experimental/simd/simd.access/default.pass.cpp | |
parent | 2f02863bf2f29a6287a0be86e01a60bef27ddc97 (diff) | |
download | bcm5719-llvm-67e881d11226f3d524f0ac7e194394057f66d7b5.tar.gz bcm5719-llvm-67e881d11226f3d524f0ac7e194394057f66d7b5.zip |
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
Diffstat (limited to 'libcxx/test/std/experimental/simd/simd.access/default.pass.cpp')
-rw-r--r-- | libcxx/test/std/experimental/simd/simd.access/default.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/experimental/simd/simd.access/default.pass.cpp b/libcxx/test/std/experimental/simd/simd.access/default.pass.cpp index 6ce32cab867..d799675a9bc 100644 --- a/libcxx/test/std/experimental/simd/simd.access/default.pass.cpp +++ b/libcxx/test/std/experimental/simd/simd.access/default.pass.cpp @@ -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; |