From patchwork Tue Dec 18 14:07:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [AARCH64] Fix warning in aarch64.md Date: Tue, 18 Dec 2012 04:07:15 -0000 From: James Greenhalgh X-Patchwork-Id: 207127 Message-Id: <1355839635-13552-1-git-send-email-james.greenhalgh@arm.com> To: gcc-patches@gcc.gnu.org Cc: marcus.shawcroft@arm.com Hi, This obvious patch fixes the following warnings I see when building for AArch64. gcc/config/aarch64/aarch64.md:840: warning: source missing a mode? gcc/config/aarch64/aarch64.md:840: warning: source missing a mode? I've tested on aarch64-none-elf with no regressions and the patch clears the warnings. Is this OK to commit? Thanks, James Greenhalgh --- gcc/ 2012-12-18 James Greenhalgh * config/aarch64/aarch64.md (insv_imm): Add modes for source operands. diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md index b59d53d..28f32da 100644 --- a/gcc/config/aarch64/aarch64.md +++ b/gcc/config/aarch64/aarch64.md @@ -840,8 +840,8 @@ (define_insn "insv_imm" [(set (zero_extract:GPI (match_operand:GPI 0 "register_operand" "+r") (const_int 16) - (match_operand 1 "const_int_operand" "n")) - (match_operand 2 "const_int_operand" "n"))] + (match_operand:GPI 1 "const_int_operand" "n")) + (match_operand:GPI 2 "const_int_operand" "n"))] "INTVAL (operands[1]) < GET_MODE_BITSIZE (mode) && INTVAL (operands[1]) % 16 == 0 && INTVAL (operands[2]) <= 0xffff"