]> granicus.if.org Git - clang/commit
[AArch64] Fix scalar vuqadd intrinsics operands
authorDiogo N. Sampaio <diogo.sampaio@arm.com>
Mon, 8 Jul 2019 08:47:47 +0000 (08:47 +0000)
committerDiogo N. Sampaio <diogo.sampaio@arm.com>
Mon, 8 Jul 2019 08:47:47 +0000 (08:47 +0000)
commit02685f635b0cffa474cb50f4c26f3c4c2bd9139d
treea5fc2da760ec21509c786c3352c5dcdc036ef175
parenta93155db52b8b8b529af52100f471ac4810e911e
[AArch64] Fix scalar vuqadd intrinsics operands

Summary:
Change the vuqadd scalar instrinsics to have the second argument as unsigned values, not signed,
accordingly to https://developer.arm.com/architectures/instruction-sets/simd-isas/neon/intrinsics

So now the compiler correctly warns that a undefined negative float conversion is being done.

Reviewers: LukeCheeseman, john.brawn

Reviewed By: john.brawn

Subscribers: john.brawn, javed.absar, kristof.beyls, cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365300 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/arm_neon.td
test/CodeGen/aarch64-neon-intrinsics.c
test/CodeGen/aarch64-neon-vuqadd-float-conversion-warning.c [new file with mode: 0644]