OSDN Git Service

[AArch64] Implement __jcvt intrinsic from Armv8.3-A
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 16 Jul 2019 09:27:39 +0000 (09:27 +0000)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 16 Jul 2019 09:27:39 +0000 (09:27 +0000)
commita04532d48d9a856cf844ea4ba6df4a36dc8ddc82
tree0bb6f3597f711cd3d7fd8be1b4b56f636d89d732
parent9ed862c047da111002778f642c87dbd2dfdd8880
[AArch64] Implement __jcvt intrinsic from Armv8.3-A

The jcvt intrinsic defined in ACLE [1] is available when ARM_FEATURE_JCVT is defined.

This change introduces the AArch64 intrinsic, wires it up to the instruction and a new clang builtin function.
The __ARM_FEATURE_JCVT macro is now defined when an Armv8.3-A or higher target is used.
I've implemented the target detection logic in Clang so that this feature is enabled for architectures from armv8.3-a onwards (so -march=armv8.4-a also enables this, for example).

make check-all didn't show any new failures.

[1] https://developer.arm.com/docs/101028/latest/data-processing-intrinsics

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366197 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsAArch64.td
lib/Target/AArch64/AArch64InstrInfo.td
test/CodeGen/AArch64/fjcvtzs.ll [new file with mode: 0644]
utils/git-svn/git-llvm