diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/mpx-os-support.h')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/mpx-os-support.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/mpx-os-support.h b/gcc/testsuite/gcc.target/i386/mpx/mpx-os-support.h deleted file mode 100644 index 8c9294d33a5..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/mpx-os-support.h +++ /dev/null @@ -1,16 +0,0 @@ -/* Check if the OS supports executing MPX instructions. */ - -#define XCR_XFEATURE_ENABLED_MASK 0x0 - -#define XSTATE_BNDREGS 0x8 - -static int -mpx_os_support (void) -{ - unsigned int eax, edx; - unsigned int ecx = XCR_XFEATURE_ENABLED_MASK; - - __asm__ ("xgetbv" : "=a" (eax), "=d" (edx) : "c" (ecx)); - - return (eax & XSTATE_BNDREGS) != 0; -} |