diff mbox

[ARM] Add mode to probe_stack set operands

Message ID 57288B2E.8090409@foss.arm.com
State New
Headers show

Commit Message

Kyrill Tkachov May 3, 2016, 11:27 a.m. UTC
Hi all,

When building the arm backend genrecog complains that the probe_stack set expression
doesn't specify any modes.  This patch adds the SI mode annotation and fixes the warning

Bootstrapped and tested on arm-none-linux-gnueabihf.

Ok for trunk?

Thanks,
Kyrill

2016-05-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * config/arm/arm.md (probe_stack): Add modes to set source
     and destination.

Comments

Richard Earnshaw (lists) May 9, 2016, 9:21 a.m. UTC | #1
On 03/05/16 12:27, Kyrill Tkachov wrote:
> Hi all,
> 
> When building the arm backend genrecog complains that the probe_stack
> set expression
> doesn't specify any modes.  This patch adds the SI mode annotation and
> fixes the warning
> 
> Bootstrapped and tested on arm-none-linux-gnueabihf.
> 
> Ok for trunk?
> 
> Thanks,
> Kyrill
> 
> 2016-05-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
> 
>     * config/arm/arm.md (probe_stack): Add modes to set source
>     and destination.
> 

OK.

R.

> arm-stack-probe.patch
> 
> 
> diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
> index 68de70f05ce29f40849297e160d890f033c34487..0d491f7ea41e4fb5fb58bbb3047294abda541a73 100644
> --- a/gcc/config/arm/arm.md
> +++ b/gcc/config/arm/arm.md
> @@ -8091,8 +8091,8 @@ (define_insn "blockage"
>  )
>  
>  (define_insn "probe_stack"
> -  [(set (match_operand 0 "memory_operand" "=m")
> -        (unspec [(const_int 0)] UNSPEC_PROBE_STACK))]
> +  [(set (match_operand:SI 0 "memory_operand" "=m")
> +        (unspec:SI [(const_int 0)] UNSPEC_PROBE_STACK))]
>    "TARGET_32BIT"
>    "str%?\\tr0, %0"
>    [(set_attr "type" "store1")
>
diff mbox

Patch

diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
index 68de70f05ce29f40849297e160d890f033c34487..0d491f7ea41e4fb5fb58bbb3047294abda541a73 100644
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -8091,8 +8091,8 @@  (define_insn "blockage"
 )
 
 (define_insn "probe_stack"
-  [(set (match_operand 0 "memory_operand" "=m")
-        (unspec [(const_int 0)] UNSPEC_PROBE_STACK))]
+  [(set (match_operand:SI 0 "memory_operand" "=m")
+        (unspec:SI [(const_int 0)] UNSPEC_PROBE_STACK))]
   "TARGET_32BIT"
   "str%?\\tr0, %0"
   [(set_attr "type" "store1")