]> granicus.if.org Git - clang/commit
[AArch64] Corrected FP16 Intrinsic range checks in Clang + added Sema tests
authorLuke Geeson <luke.geeson@arm.com>
Tue, 12 Jun 2018 09:54:27 +0000 (09:54 +0000)
committerLuke Geeson <luke.geeson@arm.com>
Tue, 12 Jun 2018 09:54:27 +0000 (09:54 +0000)
commit362dc486cc5027ac5562131239604047e1352f50
treedce5c67ce862794e124e1248e4756cb20255c480
parentcabce844f33a56eb517eee37c99192f34c5f9ee6
[AArch64] Corrected FP16 Intrinsic range checks in Clang + added Sema tests

Summary:
This fixes the ranges for the vcvth family of FP16 intrinsics in the clang front end. Previously it was accepting incorrect ranges
-Changed builtin range checking in SemaChecking
-added tests SemaCheck changes - included in  their own file since no similar one exists
-modified existing tests to reflect new ranges

Reviewers: SjoerdMeijer, javed.absar

Reviewed By: SjoerdMeijer

Subscribers: kristof.beyls, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334489 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/arm_fp16.td
lib/Sema/SemaChecking.cpp
test/CodeGen/aarch64-v8.2a-fp16-intrinsics.c
test/Sema/aarch64-neon-fp16-ranges.c [new file with mode: 0644]
utils/TableGen/NeonEmitter.cpp