diff options
author | Monk Chiang <sh.chiang04@gmail.com> | 2019-02-10 09:45:55 +0000 |
---|---|---|
committer | Chung-Ju Wu <jasonwucj@gcc.gnu.org> | 2019-02-10 09:45:55 +0000 |
commit | c5ca5ad070e543a2ed62c73f9e19aa27e5992bd4 (patch) | |
tree | 2a3f8cb990f4ee235812ba956338937b55ff9558 /gcc | |
parent | 6ba50b2cb963a8c820d79aeceaf36285d14b7b26 (diff) | |
download | gcc-c5ca5ad070e543a2ed62c73f9e19aa27e5992bd4.zip gcc-c5ca5ad070e543a2ed62c73f9e19aa27e5992bd4.tar.gz gcc-c5ca5ad070e543a2ed62c73f9e19aa27e5992bd4.tar.bz2 |
[NDS32] Add 'trap' pattern for __builtin_trap ().
gcc/
* config/nds32/nds32.md (trap): New pattern.
From-SVN: r268741
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/nds32/nds32.md | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5c415d8..7b8c81e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 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. diff --git a/gcc/config/nds32/nds32.md b/gcc/config/nds32/nds32.md index 51d92ab..cba04c0 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 |