[ARC] Add trap instruction.

2017-11-07  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.md (trap): New pattern.

From-SVN: r255276
This commit is contained in:
Claudiu Zissulescu 2017-11-30 15:42:22 +01:00 committed by Claudiu Zissulescu
parent a09202439b
commit f521d500fc
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2017-11-30 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.md (trap): New pattern.
2017-11-30 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (hwloop_optimize): Prevent the last ZOL

View File

@ -4301,6 +4301,13 @@
; 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)]
""