From: Monk Chiang Date: Sun, 10 Feb 2019 09:45:55 +0000 (+0000) Subject: [NDS32] Add 'trap' pattern for __builtin_trap (). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5ca5ad070e543a2ed62c73f9e19aa27e5992bd4;p=gcc.git [NDS32] Add 'trap' pattern for __builtin_trap (). gcc/ * config/nds32/nds32.md (trap): New pattern. From-SVN: r268741 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5c415d8b134..7b8c81e4d13 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-02-10 Monk Chiang + + * config/nds32/nds32.md (trap): New pattern. + 2019-02-10 Monk Chiang * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register diff --git a/gcc/config/nds32/nds32.md b/gcc/config/nds32/nds32.md index 51d92abaf0e..cba04c0ba8b 100644 --- a/gcc/config/nds32/nds32.md +++ b/gcc/config/nds32/nds32.md @@ -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