AArch64/ARM64: emit all vector FP comparisons as such.
authorTim Northover <tnorthover@apple.com>
Fri, 18 Apr 2014 09:31:07 +0000 (09:31 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 18 Apr 2014 09:31:07 +0000 (09:31 +0000)
commit66643da8fc5f05c3efc23cb2c168e3b57b7ab9b4
treecd65af196c2ade83b390442c1f08817fa4e46f29
parent937290d7ed33e1955e2a76649678acfa5e69ede1
AArch64/ARM64: emit all vector FP comparisons as such.

ARM64 was scalarizing some vector comparisons which don't quite map to
AArch64's compare and mask instructions. AArch64's approach of sacrificing a
little efficiency to emulate them with the limited set available was better, so
I ported it across.

More "inspired by" than copy/paste since the backend's internal expectations
were a bit different, but the tests were invaluable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206570 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM64/ARM64ISelLowering.cpp
test/CodeGen/AArch64/neon-compare-instructions.ll