[gcc(refs/vendors/ARM/heads/arm-perf-staging)] rs6000: Backport u8bit_cint_operand predicate
Tamar Christina
tnfchris@gcc.gnu.org
Fri Jul 17 15:31:47 GMT 2020
https://gcc.gnu.org/g:7e3896a42d18e5c24fb952f431cd140634cd33c5
commit 7e3896a42d18e5c24fb952f431cd140634cd33c5
Author: Peter Bergner <bergner@linux.ibm.com>
Date: Wed Jun 24 13:03:42 2020 -0500
rs6000: Backport u8bit_cint_operand predicate
Backport from master.
2020-05-11 Kelvin Nilsen <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/predicates.md (u8bit_cint_operand): New predicate.
Diff:
---
gcc/config/rs6000/predicates.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md
index bf04e4d431f..529c2beb773 100644
--- a/gcc/config/rs6000/predicates.md
+++ b/gcc/config/rs6000/predicates.md
@@ -234,6 +234,11 @@
(and (match_code "const_int")
(match_test "IN_RANGE (INTVAL (op), 0, 127)")))
+;; Return 1 if op is an unsigned 8-bit constant integer.
+(define_predicate "u8bit_cint_operand"
+ (and (match_code "const_int")
+ (match_test "IN_RANGE (INTVAL (op), 0, 255)")))
+
;; Return 1 if op is a signed 8-bit constant integer.
;; Integer multiplication complete more quickly
(define_predicate "s8bit_cint_operand"
More information about the Gcc-cvs
mailing list