]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Backport u8bit_cint_operand predicate
authorPeter Bergner <bergner@linux.ibm.com>
Wed, 24 Jun 2020 18:03:42 +0000 (13:03 -0500)
committerPeter Bergner <bergner@linux.ibm.com>
Wed, 24 Jun 2020 21:37:06 +0000 (16:37 -0500)
Backport from master.

2020-05-11  Kelvin Nilsen  <wschmidt@linux.ibm.com>

gcc/
* config/rs6000/predicates.md (u8bit_cint_operand): New predicate.

gcc/config/rs6000/predicates.md

index bf04e4d431f8fc7455d2a41f803633614fdc0b68..529c2beb77309f76f114b00cce30725f3e489509 100644 (file)
   (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"