From 7e3896a42d18e5c24fb952f431cd140634cd33c5 Mon Sep 17 00:00:00 2001 From: Peter Bergner Date: Wed, 24 Jun 2020 13:03:42 -0500 Subject: [PATCH] rs6000: Backport u8bit_cint_operand predicate Backport from master. 2020-05-11 Kelvin Nilsen gcc/ * config/rs6000/predicates.md (u8bit_cint_operand): New predicate. --- 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 bf04e4d431f8..529c2beb7730 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" -- 2.47.2