[X86] Fix the Sema checks for getmant builtins to only allow 4 and 8 for rounding...
authorCraig Topper <craig.topper@intel.com>
Tue, 28 May 2019 23:26:22 +0000 (23:26 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 28 May 2019 23:26:22 +0000 (23:26 +0000)
commit902f649217efcf51ac852216ac9be54fccc3a9dc
tree3e866f468d2e31720a131446b3e816062409865a
parent88aed8da61f1756717503dd2953ccef01a7a3c4a
[X86] Fix the Sema checks for getmant builtins to only allow 4 and 8 for rounding immediates.

These don't support embedded rounding so we shouldn't be setting HasRC. That way we only
allow current direction and suppress all exceptions.

llvm-svn: 361897
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/builtins-x86.c