r230615 - [X86] Correct immediate range checking for blendps/blendpd/blendpd256 builtins.
Craig Topper
craig.topper at gmail.com
Wed Feb 25 22:23:15 PST 2015
Author: ctopper
Date: Thu Feb 26 00:23:15 2015
New Revision: 230615
URL: http://llvm.org/viewvc/llvm-project?rev=230615&view=rev
Log:
[X86] Correct immediate range checking for blendps/blendpd/blendpd256 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=230615&r1=230614&r2=230615&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Thu Feb 26 00:23:15 2015
@@ -885,10 +885,8 @@ bool Sema::CheckX86BuiltinFunctionCall(u
case X86::BI__builtin_ia32_vinsertf128_pd256:
case X86::BI__builtin_ia32_vinsertf128_ps256:
case X86::BI__builtin_ia32_vinsertf128_si256:
- case X86::BI__builtin_ia32_insert128i256:
- case X86::BI__builtin_ia32_blendpd: i = 2, l = 0; u = 1; break;
- case X86::BI__builtin_ia32_blendps:
- case X86::BI__builtin_ia32_blendpd256:
+ case X86::BI__builtin_ia32_insert128i256: i = 2, l = 0; u = 1; break;
+ case X86::BI__builtin_ia32_blendpd:
case X86::BI__builtin_ia32_sha1rnds4: i = 2, l = 0; u = 3; break;
case X86::BI__builtin_ia32_vpermil2pd:
case X86::BI__builtin_ia32_vpermil2pd256:
@@ -922,6 +920,8 @@ bool Sema::CheckX86BuiltinFunctionCall(u
case X86::BI__builtin_ia32_roundpd:
case X86::BI__builtin_ia32_roundps256:
case X86::BI__builtin_ia32_roundpd256: i = 1, l = 0; u = 15; break;
+ case X86::BI__builtin_ia32_blendps:
+ case X86::BI__builtin_ia32_blendpd256:
case X86::BI__builtin_ia32_roundss:
case X86::BI__builtin_ia32_roundsd: i = 2, l = 0; u = 15; break;
case X86::BI__builtin_ia32_cmpps:
More information about the cfe-commits
mailing list