panfrost/bifrost_tests fails with ubsan
When building with -D b_sanitize=undefined
(and after the fix !24610 (merged)), bifrost_tests
crashes with:
../src/panfrost/compiler/bi_opt_constant_fold.c:75:17: runtime error: shift exponent 67372036 is too large for 32-bit type 'unsigned int'
#0 0x55d84edad588 in bi_fold_constant ../src/panfrost/compiler/bi_opt_constant_fold.c:75
#1 0x55d84eb4fe4c in constant_fold_pred ../src/panfrost/compiler/test/test-constant-fold.cpp:48
#2 0x55d84eb53c36 in ConstantFold_LimitedShiftsForTexturing_Test::TestBody() ../src/panfrost/compiler/test/test-constant-fold.cpp:172
#3 0x55d84f732017 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ../src/gtest/src/gtest.cc:2621
#4 0x55d84f716177 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ../src/gtest/src/gtest.cc:2657
#5 0x55d84f6b9e5d in testing::Test::Run() ../src/gtest/src/gtest.cc:2696
#6 0x55d84f6bcd0d in testing::TestInfo::Run() ../src/gtest/src/gtest.cc:2845
#7 0x55d84f6c0a04 in testing::TestSuite::Run() ../src/gtest/src/gtest.cc:3004
#8 0x55d84f6f234b in testing::internal::UnitTestImpl::RunAllTests() ../src/gtest/src/gtest.cc:5890
#9 0x55d84f7358bc in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ../src/gtest/src/gtest.cc:2621
#10 0x55d84f71a253 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) ../src/gtest/src/gtest.cc:2657
#11 0x55d84f6e777a in testing::UnitTest::Run() ../src/gtest/src/gtest.cc:5455
#12 0x55d84f76e32f in RUN_ALL_TESTS() ../src/gtest/include/gtest/gtest.h:2314
#13 0x55d84f76e37a in main ../src/gtest/src/gtest_main.cc:63
#14 0x7f1b5ac7b1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#15 0x7f1b5ac7b284 in __libc_start_main_impl ../csu/libc-start.c:360
#16 0x55d84eb48220 in _start (/builds/eric/mesa/_build/src/panfrost/compiler/bifrost_tests+0xbc5220)