From 32d941139e8144662e0dc182d64e3f3f9df89ad4 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 23 May 2019 13:18:41 +0200 Subject: [PATCH] re PR target/90568 (stack protector should use cmp or sub, not xor, to allow macro-fusion on x86) PR target/90568 * config/i386/i386.md (stack_protect_test_): Use sub instead of xor. From-SVN: r271552 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ccb803d5c6..e49c75847f1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-05-23 Jakub Jelinek + + PR target/90568 + * config/i386/i386.md (stack_protect_test_): Use sub instead + of xor. + 2019-05-23 Martin Liska PR sanitizer/90570 diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index da5163de80e..3fd11e2e4a2 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -19521,7 +19521,7 @@ UNSPEC_SP_TEST)) (clobber (match_scratch:PTR 3 "=&r"))] "" - "mov{}\t{%1, %3|%3, %1}\;xor{}\t{%2, %3|%3, %2}" + "mov{}\t{%1, %3|%3, %1}\;sub{}\t{%2, %3|%3, %2}" [(set_attr "type" "multi")]) (define_insn "sse4_2_crc32" -- 2.30.2