r239896 - Fix clang/test/Headers/x86intrin-2.c. _readfsbase_u32() is provided in not i686 but x86-64.
NAKAMURA Takumi
geek4civic at gmail.com
Wed Jun 17 03:40:52 PDT 2015
Author: chapuni
Date: Wed Jun 17 05:40:51 2015
New Revision: 239896
URL: http://llvm.org/viewvc/llvm-project?rev=239896&view=rev
Log:
Fix clang/test/Headers/x86intrin-2.c. _readfsbase_u32() is provided in not i686 but x86-64.
Modified:
cfe/trunk/test/Headers/x86intrin-2.c
Modified: cfe/trunk/test/Headers/x86intrin-2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/x86intrin-2.c?rev=239896&r1=239895&r2=239896&view=diff
==============================================================================
--- cfe/trunk/test/Headers/x86intrin-2.c (original)
+++ cfe/trunk/test/Headers/x86intrin-2.c Wed Jun 17 05:40:51 2015
@@ -92,9 +92,11 @@ int __attribute__((__target__("rdrnd")))
return _rdrand16_step(p);
}
+#if defined(__x86_64__)
unsigned int __attribute__((__target__("fsgsbase"))) readfsbase_u32_wrap(void) {
return _readfsbase_u32();
}
+#endif
unsigned int __attribute__((__target__("rtm"))) xbegin_wrap(void) {
return _xbegin();
More information about the cfe-commits
mailing list