From: Walter Lee Date: Wed, 23 Nov 2016 04:35:43 +0000 (+0000) Subject: TILEPro/TILE-Gx: add trap patterns X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90b9beed5cd63dda624e130648c5639df64195c3;p=gcc.git TILEPro/TILE-Gx: add trap patterns * config/tilegx/tilegx.md (trap): New pattern. * config/tilepro/tilepro.md (trap): Likewise. From-SVN: r242735 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a7a776e70e1..97320c769ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-22 Walter Lee + + * config/tilegx/tilegx.md (trap): New pattern. + * config/tilepro/tilepro.md (trap): Likewise. + 2016-11-22 Walter Lee * config/tilegx/tilegx.md (*zero_extract): Use diff --git a/gcc/config/tilegx/tilegx.md b/gcc/config/tilegx/tilegx.md index 3ad5a873b1f..eccdd28941d 100644 --- a/gcc/config/tilegx/tilegx.md +++ b/gcc/config/tilegx/tilegx.md @@ -2773,6 +2773,12 @@ "nop" [(set_attr "type" "Y01")]) +(define_insn "trap" + [(trap_if (const_int 1) (const_int 0))] + "" + "raise; moveli zero, 6" + [(set_attr "type" "cannot_bundle")]) + ;; ;; Conditional branches diff --git a/gcc/config/tilepro/tilepro.md b/gcc/config/tilepro/tilepro.md index 6493b06d736..d1536edada6 100644 --- a/gcc/config/tilepro/tilepro.md +++ b/gcc/config/tilepro/tilepro.md @@ -1578,6 +1578,12 @@ "nop" [(set_attr "type" "Y01")]) +(define_insn "trap" + [(trap_if (const_int 1) (const_int 0))] + "" + "raise; moveli zero, 6" + [(set_attr "type" "cannot_bundle")]) + ;; ;; Conditional branches