From: Peter Bergner Date: Wed, 24 Jun 2020 18:03:42 +0000 (-0500) Subject: rs6000: Backport u8bit_cint_operand predicate X-Git-Tag: releases/gcc-10.2.0~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e3896a42d18e5c24fb952f431cd140634cd33c5;p=thirdparty%2Fgcc.git rs6000: Backport u8bit_cint_operand predicate Backport from master. 2020-05-11 Kelvin Nilsen gcc/ * config/rs6000/predicates.md (u8bit_cint_operand): New predicate. --- 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"