Regression of T12433
While trying to find a bug in my branch, I found that there seems to be a regression of test case T12433 (#12433 (closed)):
Expected output of T12433: 8
Compiling with GHC 9.2.2, using no optimizations or any opt. level works:
e.g.: ghc -O1 testsuite/tests/codeGen/should_run/T12433.hs && ./T12433
prints 8
Using GHC main HEAD (eb425eef418), flavour devel2:
/path/ghcmain/ghc/_build/stage1/bin/ghc T12433.hs && ./T12433
-- prints 8 works
Using any optimization level fails:
/path/ghcmain/ghc/_build/stage1/bin/ghc -O1 T12433.hs && ./T12433
-- prints 4229782
- Operating System: Ubuntu 20.04
- System Architecture: x86_64