[committed] Minor bfin codegen bugfix
authorJeff Law <jeffreyalaw@gmail.com>
Mon, 11 Apr 2022 03:02:48 +0000 (23:02 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Mon, 11 Apr 2022 03:02:48 +0000 (23:02 -0400)
gcc/
* config/bfin/bfin.md (rol_one): Fix pattern to indicate the
sign bit of the source ends up in CC.

gcc/config/bfin/bfin.md

index 0e44653..56b2472 100644 (file)
        (ior:SI (ashift:SI (match_operand:SI 1 "register_operand" "d") (const_int 1))
                (zero_extend:SI (reg:BI REG_CC))))
    (set (reg:BI REG_CC)
-       (zero_extract:BI (match_dup 1) (const_int 31) (const_int 0)))]
+       (zero_extract:BI (match_dup 1) (const_int 1) (const_int 31)))]
   ""
   "%0 = ROT %1 BY 1%!"
   [(set_attr "type" "dsp32shiftimm")])