]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
IBM Z: TPF: Add cc clobber to profiling expanders
authorAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 22 Sep 2021 10:13:05 +0000 (12:13 +0200)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 22 Sep 2021 10:13:19 +0000 (12:13 +0200)
The code sequence emitted uses CC internally.

gcc/ChangeLog:

* config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.

gcc/config/s390/tpf.md

index 297e9d1f75549806cc9fa9d555c29ae47e02eea7..35b37190705474c9f38f982d2a4ea17357c65f3d 100644 (file)
@@ -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")])