public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3783] IBM Z: TPF: Add cc clobber to profiling expanders
@ 2021-09-22 10:15 Andreas Krebbel
  0 siblings, 0 replies; only message in thread
From: Andreas Krebbel @ 2021-09-22 10:15 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e1223ea2f48e8588160b2948f8a1f8e47f9694fd

commit r12-3783-ge1223ea2f48e8588160b2948f8a1f8e47f9694fd
Author: Andreas Krebbel <krebbel@linux.ibm.com>
Date:   Wed Sep 22 12:13:05 2021 +0200

    IBM Z: TPF: Add cc clobber to profiling expanders
    
    The code sequence emitted uses CC internally.
    
    gcc/ChangeLog:
    
            * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.

Diff:
---
 gcc/config/s390/tpf.md | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gcc/config/s390/tpf.md b/gcc/config/s390/tpf.md
index 297e9d1f755..35b37190705 100644
--- a/gcc/config/s390/tpf.md
+++ b/gcc/config/s390/tpf.md
@@ -21,7 +21,8 @@
   [(unspec_volatile [(match_operand 0 "const_int_operand" "J")
 		     (match_operand 1 "const_int_operand" "J")]
 		    UNSPECV_TPF_PROLOGUE)
-   (clobber (reg:DI 1))]
+   (clobber (reg:DI 1))
+   (clobber (reg:CC CC_REGNUM))]
   "TARGET_TPF_PROFILING"
   "larl\t%%r1,.+14\;tm\t%0,255\;bnz\t%1"
   [(set_attr "length"   "14")])
@@ -31,7 +32,8 @@
   [(unspec_volatile [(match_operand 0 "const_int_operand" "J")
 		     (match_operand 1 "const_int_operand" "J")]
 		    UNSPECV_TPF_EPILOGUE)
-   (clobber (reg:DI 1))]
+   (clobber (reg:DI 1))
+   (clobber (reg:CC CC_REGNUM))]
   "TARGET_TPF_PROFILING"
   "larl\t%%r1,.+14\;tm\t%0,255\;bnz\t%1"
   [(set_attr "length"   "14")])


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-22 10:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 10:15 [gcc r12-3783] IBM Z: TPF: Add cc clobber to profiling expanders Andreas Krebbel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).