[PATCH] genrecog.cc (print_nonbool_test): Fix type error of SUBREG_BYTE

Jojo R rjiejie@linux.alibaba.com
Mon Sep 19 06:01:41 GMT 2022


	* gcc/genrecog.cc (print_nonbool_test): Fix type error of
	SUBREG_BYTE
---
 gcc/genrecog.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/genrecog.cc b/gcc/genrecog.cc
index 77f8fb97853..319e437e334 100644
--- a/gcc/genrecog.cc
+++ b/gcc/genrecog.cc
@@ -4619,6 +4619,7 @@ print_nonbool_test (output_state *os, const rtx_test &test)
       printf ("SUBREG_BYTE (");
       print_test_rtx (os, test);
       printf (")");
+      printf (".to_constant ()");
       break;
 
     case rtx_test::WIDE_INT_FIELD:
-- 
2.24.3 (Apple Git-128)



More information about the Gcc-patches mailing list