From: Craig Topper Date: Thu, 26 Feb 2015 06:23:15 +0000 (+0000) Subject: [X86] Correct immediate range checking for blendps/blendpd/blendpd256 builtins. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dab0c3f047dfed57d13ffd2bfcb561d710cc544d;p=clang [X86] Correct immediate range checking for blendps/blendpd/blendpd256 builtins. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230615 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index eb6bffcd48..7d5aed9f5e 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -885,10 +885,8 @@ bool Sema::CheckX86BuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { 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(unsigned BuiltinID, CallExpr *TheCall) { 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: