diff mbox

[GCC/Thumb1] Use immediate_operand in 64bit split pattern

Message ID 000001cfbc37$7c38e3c0$74aaab40$@arm.com
State New
Headers show

Commit Message

Terry Guo Aug. 20, 2014, 5:27 a.m. UTC
Hi there,

The gcc now uses immediate_operand for const_double_operand, update this
split pattern accordingly. Tested with gcc regression test on thumb1 target,
no regression. Is it ok to trunk?

BR,
Terry

2014-08-20  Terry Guo  <terry.guo@arm.com>

     * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
     with immediate_operand.
diff mbox

Patch

diff --git a/gcc/config/arm/thumb1.md b/gcc/config/arm/thumb1.md
index 65d55dd..020d83b 100644
--- a/gcc/config/arm/thumb1.md
+++ b/gcc/config/arm/thumb1.md
@@ -639,7 +639,7 @@ 
 ; thumb1_movdi_insn has a better way to handle them.
 (define_split
   [(set (match_operand:ANY64 0 "arm_general_register_operand" "")
-       (match_operand:ANY64 1 "const_double_operand" ""))]
+       (match_operand:ANY64 1 "immediate_operand" ""))]
   "TARGET_THUMB1 && reload_completed && !satisfies_constraint_J (operands[1])"
   [(set (match_dup 0) (match_dup 1))
    (set (match_dup 2) (match_dup 3))]