aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorRenlin Li <renlin.li@arm.com>2015-08-26 17:37:42 +0000
committerRenlin Li <renlin@gcc.gnu.org>2015-08-26 17:37:42 +0000
commite4f019d316695dc3bd9f509b8f3e16b5954fe231 (patch)
tree45401ae9e7b9df1a9389123155c2f85377d9971e /gcc/config
parent5ae7caad5160a2238fa40324095d7c07fcc3885d (diff)
downloadgcc-e4f019d316695dc3bd9f509b8f3e16b5954fe231.zip
gcc-e4f019d316695dc3bd9f509b8f3e16b5954fe231.tar.gz
gcc-e4f019d316695dc3bd9f509b8f3e16b5954fe231.tar.bz2
[PATCH][AARCH64]Add backend aarch64_bfi pattern.
2015-08-26 Renlin Li <renlin.li@arm.com> gcc/ * config/aarch64/aarch64.md (aarch64_bfi): New pattern. gcc/testsuite/ * gcc.target/aarch64/combine_bfi_1.c: New. From-SVN: r227226
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/aarch64/aarch64.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md
index 80fd6c4..c8511f0 100644
--- a/gcc/config/aarch64/aarch64.md
+++ b/gcc/config/aarch64/aarch64.md
@@ -3927,6 +3927,16 @@
[(set_attr "type" "bfm")]
)
+(define_insn "*aarch64_bfi<GPI:mode><ALLX:mode>4"
+ [(set (zero_extract:GPI (match_operand:GPI 0 "register_operand" "+r")
+ (match_operand 1 "const_int_operand" "n")
+ (match_operand 2 "const_int_operand" "n"))
+ (zero_extend:GPI (match_operand:ALLX 3 "register_operand" "r")))]
+ "UINTVAL (operands[1]) <= <ALLX:sizen>"
+ "bfi\\t%<GPI:w>0, %<GPI:w>3, %2, %1"
+ [(set_attr "type" "bfm")]
+)
+
(define_insn "*extr_insv_lower_reg<mode>"
[(set (zero_extract:GPI (match_operand:GPI 0 "register_operand" "+r")
(match_operand 1 "const_int_operand" "n")