llvm-6502/test/CodeGen/AArch64/legalize-bug-bogus-cpu.ll
Hao Liu 80021c5cf8 PR20557: Fix the bug that bogus cpu parameter crashes llc on AArch64 backend.
Initial patch by Oleg Ranevskyy.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220945 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-31 02:35:34 +00:00

9 lines
253 B
LLVM

; 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
}