aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorLuke Geeson <luke.geeson@arm.com>2018-06-12 09:54:27 +0000
committerLuke Geeson <luke.geeson@arm.com>2018-06-12 09:54:27 +0000
commitdc54b3741431683db1e36088c5bf7fc258d06da7 (patch)
tree3622eac4f7112b2c71f4a4489ecf029f84db877d /clang/lib/Sema/SemaChecking.cpp
parentdc82aa44e63cbec7d23f3d88242cda682cdbdfb9 (diff)
downloadllvm-dc54b3741431683db1e36088c5bf7fc258d06da7.zip
llvm-dc54b3741431683db1e36088c5bf7fc258d06da7.tar.gz
llvm-dc54b3741431683db1e36088c5bf7fc258d06da7.tar.bz2
[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 llvm-svn: 334489
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 6648ffc..d5945ef 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -1499,10 +1499,10 @@ bool Sema::CheckNeonBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) {
switch (BuiltinID) {
default:
return false;
-#define GET_NEON_IMMEDIATE_CHECK
-#include "clang/Basic/arm_neon.inc"
-#include "clang/Basic/arm_fp16.inc"
-#undef GET_NEON_IMMEDIATE_CHECK
+ #define GET_NEON_IMMEDIATE_CHECK
+ #include "clang/Basic/arm_neon.inc"
+ #include "clang/Basic/arm_fp16.inc"
+ #undef GET_NEON_IMMEDIATE_CHECK
}
return SemaBuiltinConstantArgRange(TheCall, i, l, u + l);