aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/avr/constraints.md
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2011-09-23 10:14:23 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2011-09-23 10:14:23 +0000
commit5d94b9886327df3f4b977d4bc0d1d09c1b6d3220 (patch)
treef91cb94b7c6d3afa66fa6743fe352b3a8b63d84e /gcc/config/avr/constraints.md
parent9acebb8a99e519c40f0f3fb419c9adbb1c2c8209 (diff)
downloadgcc-5d94b9886327df3f4b977d4bc0d1d09c1b6d3220.zip
gcc-5d94b9886327df3f4b977d4bc0d1d09c1b6d3220.tar.gz
gcc-5d94b9886327df3f4b977d4bc0d1d09c1b6d3220.tar.bz2
re PR target/50446 ([avr] Implement rotate patterns with offset 1)
PR target/50446 * config/avr/avr.md (rotlqi3): Support all offsets 0..7. (rotlqi3_4): Turn insn into expander. (*rotlqi3): New insn. (rotlhi3, rotlsi3): Support rotate left/right by 1. (*rotlhi2.1, *rotlhi2.15): New insns. (*rotlsi2.1, *rotlsi2.31): New insns. * config/avr/constraints.md (C03, C05, C06, C07): New constraints. From-SVN: r179116
Diffstat (limited to 'gcc/config/avr/constraints.md')
-rw-r--r--gcc/config/avr/constraints.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/config/avr/constraints.md b/gcc/config/avr/constraints.md
index d6c172f..f02c197 100644
--- a/gcc/config/avr/constraints.md
+++ b/gcc/config/avr/constraints.md
@@ -108,11 +108,31 @@
(and (match_code "mem")
(match_test "extra_constraint_Q (op)")))
+(define_constraint "C03"
+ "Constant integer 3."
+ (and (match_code "const_int")
+ (match_test "ival == 3")))
+
(define_constraint "C04"
"Constant integer 4."
(and (match_code "const_int")
(match_test "ival == 4")))
+(define_constraint "C05"
+ "Constant integer 5."
+ (and (match_code "const_int")
+ (match_test "ival == 5")))
+
+(define_constraint "C06"
+ "Constant integer 6."
+ (and (match_code "const_int")
+ (match_test "ival == 6")))
+
+(define_constraint "C07"
+ "Constant integer 7."
+ (and (match_code "const_int")
+ (match_test "ival == 7")))
+
(define_constraint "Ca2"
"Constant 2-byte integer that allows AND without clobber register."
(and (match_code "const_int")