diff options
author | Andreas Krebbel <krebbel@linux.ibm.com> | 2021-09-22 12:13:05 +0200 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2021-09-22 12:13:19 +0200 |
commit | e1223ea2f48e8588160b2948f8a1f8e47f9694fd (patch) | |
tree | d144c84b815e8cdb8456a9098185f1cef67d0f4c /gcc | |
parent | 424a4a463ac5932830a83560cf929f9c2f4564d8 (diff) | |
download | gcc-e1223ea2f48e8588160b2948f8a1f8e47f9694fd.zip gcc-e1223ea2f48e8588160b2948f8a1f8e47f9694fd.tar.gz gcc-e1223ea2f48e8588160b2948f8a1f8e47f9694fd.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/s390/tpf.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/s390/tpf.md b/gcc/config/s390/tpf.md index 297e9d1..35b3719 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")]) |