llvm.org GIT mirror llvm / release_36 test / CodeGen / AArch64 / legalize-bug-bogus-cpu.ll
release_36

Tree @release_36 (Download .tar.gz)

legalize-bug-bogus-cpu.ll @release_36raw · history · blame

1
2
3
4
5
6
7
8
; RUN: llc -march=aarch64 -mcpu=bogus -o - %s

; Fix the bug in PR20557. Set mcpu to a bogus name, llc will crash in type
; legalization.
define <4 x float> @fneg4(<4 x float> %x) {
  %sub = fsub <4 x float> zeroinitializer, %x
  ret <4 x float> %sub
}