AArch64: The pattern match should check the range of the immediate value.
authorHao Liu <Hao.Liu@arm.com>
Fri, 29 Nov 2013 02:11:22 +0000 (02:11 +0000)
committerHao Liu <Hao.Liu@arm.com>
Fri, 29 Nov 2013 02:11:22 +0000 (02:11 +0000)
commit7fd70e7b0c9c12183d9a3b084e5789622d0414fa
treeed0c20904ec59be389ceba4332442d4d8eb89665
parentd4685468fd351a914c434bc4842d61eb5c95d503
AArch64: The pattern match should check the range of the immediate value.
Or we can generate some illegal instructions.
E.g. shrn2 v0.4s, v1.2d, #35. The legal range should be in [1, 16].

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195941 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrNEON.td
test/CodeGen/AArch64/neon-diagnostics.ll
test/CodeGen/AArch64/neon-scalar-cvt.ll
test/CodeGen/AArch64/neon-scalar-shift-imm.ll