AArch64: Restrict the shift value in compare extended shift operation
authornaveenh <naveenh@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 May 2013 12:20:24 +0000 (12:20 +0000)
committernaveenh <naveenh@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 May 2013 12:20:24 +0000 (12:20 +0000)
2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>

* config/aarch64/aarch64.md
(cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
shift value between 0-4.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198677 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/aarch64/aarch64.md

index 0dc6600..44a6008 100644 (file)
@@ -1,3 +1,9 @@
+2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
+
+       * config/aarch64/aarch64.md
+       (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
+       shift value between 0-4.
+
 2013-05-07  Richard Biener  <rguenther@suse.de>
 
        * double-int.h (rshift): New overload.
index 365bb23..797cc9b 100644 (file)
        (compare:CC_SWP (ashift:GPI
                         (ANY_EXTEND:GPI
                          (match_operand:ALLX 0 "register_operand" "r"))
-                        (match_operand:QI 1 "aarch64_shift_imm_<mode>" "n"))
+                        (match_operand 1 "aarch64_imm3" "Ui3"))
        (match_operand:GPI 2 "register_operand" "r")))]
   ""
   "cmp\\t%<GPI:w>2, %<GPI:w>0, <su>xt<ALLX:size> %1"