add regressiom test for LLVM's PR21274