sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
authorUros Bizjak <ubizjak@gmail.com>
Mon, 30 May 2016 19:06:38 +0000 (21:06 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 30 May 2016 19:06:38 +0000 (21:06 +0200)
* config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".

From-SVN: r236895

gcc/ChangeLog
gcc/config/i386/sync.md

index c6a32261af83ba8cd026606b7f8d37e79dc46ac1..537d79c11c8f102733ff270e6bca5bf76753b1b0 100644 (file)
@@ -1,3 +1,7 @@
+2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
+
 2016-05-30  Andi Kleen  <ak@linux.intel.com>
 
        * auto-profile.c (read_profile): Replace asserts with errors
@@ -5,7 +9,7 @@
        * gcov-io.c (gcov_read_words): Dito.
 
 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
-       
+
        * tree-cfg.c (print_loop): Print likely upper bounds.
 
 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
index 9acf5ca8a873669ee46aedc13bf82f5109bd82a3..b065e2365ffadc3663843f57e2028975e0060eb2 100644 (file)
@@ -98,7 +98,7 @@
        (unspec:BLK [(match_dup 0)] UNSPEC_MFENCE))
    (clobber (reg:CC FLAGS_REG))]
   "!(TARGET_64BIT || TARGET_SSE2)"
-  "lock{%;} or{l}\t{$0, (%%esp)|DWORD PTR [esp], 0}"
+  "lock{%;} or{l}\t{$0, -4(%%esp)|DWORD PTR [esp-4], 0}"
   [(set_attr "memory" "unknown")])
 
 (define_expand "mem_thread_fence"