r297590 - [AVX-512] Add range check for locality hint immediate on scatter/gather prefetch builtins.

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 12 15:19:10 PDT 2017


Author: ctopper
Date: Sun Mar 12 17:19:10 2017
New Revision: 297590

URL: http://llvm.org/viewvc/llvm-project?rev=297590&view=rev
Log:
[AVX-512] Add range check for locality hint immediate on scatter/gather prefetch builtins.

Modified:
    cfe/trunk/lib/Sema/SemaChecking.cpp

Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=297590&r1=297589&r2=297590&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Sun Mar 12 17:19:10 2017
@@ -2193,6 +2193,16 @@ bool Sema::CheckX86BuiltinFunctionCall(u
   case X86::BI__builtin_ia32_pternlogq256_maskz:
     i = 3; l = 0; u = 255;
     break;
+  case X86::BI__builtin_ia32_gatherpfdpd:
+  case X86::BI__builtin_ia32_gatherpfdps:
+  case X86::BI__builtin_ia32_gatherpfqpd:
+  case X86::BI__builtin_ia32_gatherpfqps:
+  case X86::BI__builtin_ia32_scatterpfdpd:
+  case X86::BI__builtin_ia32_scatterpfdps:
+  case X86::BI__builtin_ia32_scatterpfqpd:
+  case X86::BI__builtin_ia32_scatterpfqps:
+    i = 4; l = 1; u = 2;
+    break;
   case X86::BI__builtin_ia32_pcmpestrm128:
   case X86::BI__builtin_ia32_pcmpestri128:
   case X86::BI__builtin_ia32_pcmpestria128:




More information about the cfe-commits mailing list