These builtins can't be handled by the backend on 64-bit targets. So error up front instead of throwing an isel error.
Fixes PR37225
Paths
| Differential D46132
[X86] Make __builtin_ia32_readeflags_u32 and __builtin_ia32_writeeflags_u32 only available on 32-bit targets. ClosedPublic Authored by craig.topper on Apr 26 2018, 9:45 AM.
Details
Summary These builtins can't be handled by the backend on 64-bit targets. So error up front instead of throwing an isel error. Fixes PR37225
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 26 2018, 12:56 PM Closed by commit rL330987: [X86] Make __builtin_ia32_readeflags_u32 and __builtin_ia32_writeeflags_u32… (authored by ctopper). · Explain WhyApr 26 2018, 1:18 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 144184 cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/Sema/SemaChecking.cpp
cfe/trunk/test/Sema/builtins-x86.c
|