xref: /aosp_15_r20/external/llvm/test/CodeGen/AArch64/legalize-bug-bogus-cpu.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: llc -march=aarch64 -mcpu=bogus -o - %s
2
3; Fix the bug in PR20557. Set mcpu to a bogus name, llc will crash in type
4; legalization.
5define <4 x float> @fneg4(<4 x float> %x) {
6  %sub = fsub <4 x float> zeroinitializer, %x
7  ret <4 x float> %sub
8}
9