[ARM,MVE] Add intrinsics for int <-> float conversion.
authorSimon Tatham <simon.tatham@arm.com>
Mon, 17 Feb 2020 17:04:21 +0000 (17:04 +0000)
committerSimon Tatham <simon.tatham@arm.com>
Tue, 18 Feb 2020 09:34:50 +0000 (09:34 +0000)
commitdf3ed6c0fe31094941e4cd814cdf924b63993c4e
tree533c15f05213a0b3ce6213db2549cd4714ef376a
parent90dc78bc62784faaa55afb0320cf3c2187d80ac6
[ARM,MVE] Add intrinsics for int <-> float conversion.

Summary:
This adds the unpredicated versions of the family of vcvtq intrinsics
that convert between a vector of floats and a vector of the same size
of integer. These are represented in IR using the standard fptosi,
fptoui, sitofp and uitofp operations, which existing LLVM codegen
already handles.

Reviewers: dmgreen, miyuki, MarkMurrayARM, ostannard

Reviewed By: MarkMurrayARM

Subscribers: kristof.beyls, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D74332
clang/include/clang/Basic/arm_mve.td
clang/include/clang/Basic/arm_mve_defs.td
clang/test/CodeGen/arm-mve-intrinsics/vcvt.c