Commit c5ca5ad0 by Monk Chiang Committed by Chung-Ju Wu

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

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

From-SVN: r268741
parent 6ba50b2c
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
dwarf span.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment