]> granicus.if.org Git - clang/commitdiff
[X86] Add some fp to integer conversion intrinsics to Sema::CheckX86BuiltinRoundingOr...
authorCraig Topper <craig.topper@intel.com>
Mon, 8 Apr 2019 17:05:57 +0000 (17:05 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 8 Apr 2019 17:05:57 +0000 (17:05 +0000)
If we don't check this in the frontend we'll get an isel error in the backend later. This is far less friendly to users.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@357924 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaChecking.cpp

index 693e09d8c692e7604eac41cd34469d7c710d01cf..a82544f109bbf5d29b88e31f36c0311706b75459 100644 (file)
@@ -3429,9 +3429,13 @@ bool Sema::CheckX86BuiltinRoundingOrSAE(unsigned BuiltinID, CallExpr *TheCall) {
   case X86::BI__builtin_ia32_cvtdq2ps512_mask:
   case X86::BI__builtin_ia32_cvtudq2ps512_mask:
   case X86::BI__builtin_ia32_cvtpd2ps512_mask:
+  case X86::BI__builtin_ia32_cvtpd2dq512_mask:
   case X86::BI__builtin_ia32_cvtpd2qq512_mask:
+  case X86::BI__builtin_ia32_cvtpd2udq512_mask:
   case X86::BI__builtin_ia32_cvtpd2uqq512_mask:
+  case X86::BI__builtin_ia32_cvtps2dq512_mask:
   case X86::BI__builtin_ia32_cvtps2qq512_mask:
+  case X86::BI__builtin_ia32_cvtps2udq512_mask:
   case X86::BI__builtin_ia32_cvtps2uqq512_mask:
   case X86::BI__builtin_ia32_cvtqq2pd512_mask:
   case X86::BI__builtin_ia32_cvtqq2ps512_mask: