aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/bfin
diff options
context:
space:
mode:
authorJeff Law <jeffreyalaw@gmail.com>2022-04-10 23:02:48 -0400
committerJeff Law <jeffreyalaw@gmail.com>2022-04-10 23:02:48 -0400
commit8d331aab65488b3998bd106205bbe6cab5df31b5 (patch)
treea9f725d6dd6f0804f1c9fe1ea465a19e4cc2757b /gcc/config/bfin
parent3ac111372ecb73cc2464ab27e3bad75dfe88a34b (diff)
downloadgcc-8d331aab65488b3998bd106205bbe6cab5df31b5.zip
gcc-8d331aab65488b3998bd106205bbe6cab5df31b5.tar.gz
gcc-8d331aab65488b3998bd106205bbe6cab5df31b5.tar.bz2
[committed] Minor bfin codegen bugfix
gcc/ * config/bfin/bfin.md (rol_one): Fix pattern to indicate the sign bit of the source ends up in CC.
Diffstat (limited to 'gcc/config/bfin')
-rw-r--r--gcc/config/bfin/bfin.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/bfin/bfin.md b/gcc/config/bfin/bfin.md
index 0e44653..56b2472 100644
--- a/gcc/config/bfin/bfin.md
+++ b/gcc/config/bfin/bfin.md
@@ -1741,7 +1741,7 @@
(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")])