add regression test for LLVM's PR21255