summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins-x86.c
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2015-06-30 09:45:38 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2015-06-30 09:45:38 +0000
commita3c7b742083ce9c5e501804582266ad91efce71b (patch)
treea75584c4b27d5daf91a239c5571805ab642b787d /clang/test/CodeGen/builtins-x86.c
parent32c72aa099ff1163b557ddcf30d2dafecaadb12e (diff)
downloadbcm5719-llvm-a3c7b742083ce9c5e501804582266ad91efce71b.tar.gz
bcm5719-llvm-a3c7b742083ce9c5e501804582266ad91efce71b.zip
[X86] Add FXSR intrinsics
Add intrinsics for the FXSR instructions (FXSAVE/FXSAVE64/FXRSTOR/FXRSTOR64) These were previously declared in Intrin.h for MSVC compatibility, but now that we have them implemented, these declarations can be removed. llvm-svn: 241053
Diffstat (limited to 'clang/test/CodeGen/builtins-x86.c')
-rw-r--r--clang/test/CodeGen/builtins-x86.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtins-x86.c b/clang/test/CodeGen/builtins-x86.c
index 8a5b5a272d4..a239889e2b4 100644
--- a/clang/test/CodeGen/builtins-x86.c
+++ b/clang/test/CodeGen/builtins-x86.c
@@ -260,6 +260,10 @@ void f0() {
(void) __builtin_ia32_ldmxcsr(tmp_Ui);
tmp_Ui = __builtin_ia32_stmxcsr();
+ (void)__builtin_ia32_fxsave(tmp_vp);
+ (void)__builtin_ia32_fxsave64(tmp_vp);
+ (void)__builtin_ia32_fxrstor(tmp_vp);
+ (void)__builtin_ia32_fxrstor64(tmp_vp);
tmp_V4f = __builtin_ia32_cvtpi2ps(tmp_V4f, tmp_V2i);
tmp_V2i = __builtin_ia32_cvtps2pi(tmp_V4f);
tmp_i = __builtin_ia32_cvtss2si(tmp_V4f);
OpenPOWER on IntegriCloud