]> granicus.if.org Git - clang/commit
[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)
commit601d56c9e03b01b8646d82af4245775571a39ad9
treee783f25108e49dce2d3b1c785899ff3a231e28aa
parentd94ab6756afdddb44ae1c164eb1b23b547e3356f
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361897 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/builtins-x86.c