re PR target/90568 (stack protector should use cmp or sub, not xor, to allow macro...
authorJakub Jelinek <jakub@redhat.com>
Thu, 23 May 2019 11:18:41 +0000 (13:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 23 May 2019 11:18:41 +0000 (13:18 +0200)
PR target/90568
* config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
of xor.

From-SVN: r271552

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

index 2ccb803d5c6857a9757e5c69391e3671e2435c50..e49c75847f1c618be270a8d46e6914e8e96e6e6f 100644 (file)
@@ -1,3 +1,9 @@
+2019-05-23  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/90568
+       * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
+       of xor.
+
 2019-05-23  Martin Liska  <mliska@suse.cz>
 
        PR sanitizer/90570
index da5163de80e68e6ef728ede3364d7be520faaa21..3fd11e2e4a2a8d103b00904b49296ad7790433a3 100644 (file)
                    UNSPEC_SP_TEST))
    (clobber (match_scratch:PTR 3 "=&r"))]
   ""
-  "mov{<imodesuffix>}\t{%1, %3|%3, %1}\;xor{<imodesuffix>}\t{%2, %3|%3, %2}"
+  "mov{<imodesuffix>}\t{%1, %3|%3, %1}\;sub{<imodesuffix>}\t{%2, %3|%3, %2}"
   [(set_attr "type" "multi")])
 
 (define_insn "sse4_2_crc32<mode>"