HomePhabricator

[X86] Make __builtin_ia32_readeflags_u32 and __builtin_ia32_writeeflags_u32…

Authored by craig.topper on Apr 26 2018, 1:14 PM.

Description

[X86] Make builtin_ia32_readeflags_u32 and builtin_ia32_writeeflags_u32 only available on 32-bit targets.

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

Differential Revision: https://reviews.llvm.org/D46132

llvm-svn: 330987