[NDS32] Add 'trap' pattern for __builtin_trap ().

gcc/
	* config/nds32/nds32.md (trap): New pattern.

From-SVN: r268741
This commit is contained in:
Monk Chiang 2019-02-10 09:45:55 +00:00 committed by Chung-Ju Wu
parent 6ba50b2cb9
commit c5ca5ad070
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
* config/nds32/nds32.md (trap): New pattern.
2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
* config/nds32/nds32.c (nds32_dwarf_register_span): Refine register

View File

@ -2316,6 +2316,14 @@
;; ----------------------------------------------------------------------------
;; Patterns for __builtin_trap.
(define_insn "trap"
[(trap_if (const_int 1) (const_int 0))]
""
"trap\t0")
;; ----------------------------------------------------------------------------
;; Patterns for TLS.
;; The following two tls patterns don't be expanded directly because the
;; intermediate value may be spilled into the stack. As a result, it is