aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2012-07-03 09:24:10 +0200
committerUros Bizjak <uros@gcc.gnu.org>2012-07-03 09:24:10 +0200
commit68a12ef35b38746594c034a71d74dd6d68b775c0 (patch)
tree8849e6d14281c455d4dfeb286d419086995bcc7f /libgomp/testsuite
parent43283548c184deca6ba9df2f31fe38e9a12738f2 (diff)
downloadgcc-68a12ef35b38746594c034a71d74dd6d68b775c0.zip
gcc-68a12ef35b38746594c034a71d74dd6d68b775c0.tar.gz
gcc-68a12ef35b38746594c034a71d74dd6d68b775c0.tar.bz2
xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
gcc/ 2012-07-03 Uros Bizjak <ubizjak@gmail.com> * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause. libgomp/ 2012-07-03 Uros Bizjak <ubizjak@gmail.com> * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause. * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto. libitm/ 2012-07-03 Uros Bizjak <ubizjak@gmail.com> * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause. From-SVN: r189194
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r--libgomp/testsuite/libgomp.c/sort-1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.c/sort-1.c b/libgomp/testsuite/libgomp.c/sort-1.c
index 269d69da..3743065 100644
--- a/libgomp/testsuite/libgomp.c/sort-1.c
+++ b/libgomp/testsuite/libgomp.c/sort-1.c
@@ -100,7 +100,7 @@ static inline void
busy_wait (void)
{
#if defined __i386__ || defined __x86_64__
- __asm volatile ("rep; nop" : : : "memory");
+ __builtin_ia32_pause ();
#elif defined __ia64__
__asm volatile ("hint @pause" : : : "memory");
#elif defined __sparc__ && (defined __arch64__ || defined __sparc_v9__)