This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 05/10] [ARC] Add trap instruction.


* Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com> [2017-11-27 12:09:54 +0100]:

> From: Claudiu Zissulescu <claziss@gmail.com>
> 
> 2017-11-07  Claudiu Zissulescu  <claziss@synopsys.com>
> 
> 	* config/arc/arc.md (trap): New pattern.

Looks good.

Thanks,
Andrew

> ---
>  gcc/config/arc/arc.md | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md
> index b8fa44e..42c6a23 100644
> --- a/gcc/config/arc/arc.md
> +++ b/gcc/config/arc/arc.md
> @@ -4321,6 +4321,13 @@ archs4xd, archs4xd_slow, core_3"
>  ; use it for lack of inter-procedural branch shortening.
>  ; Link-time relaxation would help...
>  
> +(define_insn "trap"
> +  [(trap_if (const_int 1) (const_int 0))]
> +  "!TARGET_ARC600_FAMILY"
> +  "trap_s\\t5"
> +  [(set_attr "type" "misc")
> +   (set_attr "length" "2")])
> +
>  (define_insn "nop"
>    [(const_int 0)]
>    ""
> -- 
> 1.9.1
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]