[PATCH 05/10] [ARC] Add trap instruction.
Andrew Burgess
andrew.burgess@embecosm.com
Mon Nov 27 23:40:00 GMT 2017
* 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
>
More information about the Gcc-patches
mailing list