]> granicus.if.org Git - llvm/commit
[AArch64] Explicitly use v1i64 type for llvm.aarch64.neon.abs.i64 .
authorEli Friedman <efriedma@codeaurora.org>
Tue, 15 Jan 2019 00:15:24 +0000 (00:15 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Tue, 15 Jan 2019 00:15:24 +0000 (00:15 +0000)
commitb11690da65add4cded1efbc10b90001ddb9974a2
tree215c958b752e667698bb87244240b5a0a4eaf016
parent3afec904927eb0db5fbada22af83013bfdfb7d42
[AArch64] Explicitly use v1i64 type for llvm.aarch64.neon.abs.i64 .

Otherwise, with D56544, the intrinsic will be expanded to an integer
csel, which is probably not what the user expected.  This matches the
general convention of using "v1" types to represent scalar integer
operations in vector registers.

While I'm here, also add some error checking so we don't generate
illegal ABS nodes.

Differential Revision: https://reviews.llvm.org/D56616

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351141 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/arm64-vabs.ll