ファイル
rocm-systems/tests/src
Yaxun (Sam) Liu 02848e0b80 Fix test hip_bitextract.cpp (#1784)
The randomly generated offset+width may exceeds 32, which causes
a left shift operation with 32-offset-width. As an unsigned number
that is greater than 32 and causes undefined behavior. When the
test is compiled without -mavx it is still OK. However when
the test is compiled with -mavx, the undefined behavior causes
wrong results and test failure.

This patch adjusts width so that offset+width<=32 always.
2020-01-10 13:46:57 +05:30
..
2019-08-05 09:51:36 +00:00
2019-11-18 12:19:22 +05:30
2016-01-26 20:14:33 -06:00
2016-04-20 12:25:40 -05:00