xref: /llvm-project/llvm/test/CodeGen/AArch64/legalize-bug-bogus-cpu.ll (revision 3d18c8cd265c0c0bf1d85226c4770a2dd0f86e8f)
1; RUN: llc < %s -mtriple=aarch64 -mcpu=bogus
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