TILEPro/TILE-Gx: add trap patterns
authorWalter Lee <walt@tilera.com>
Wed, 23 Nov 2016 04:35:43 +0000 (04:35 +0000)
committerWalter Lee <walt@gcc.gnu.org>
Wed, 23 Nov 2016 04:35:43 +0000 (04:35 +0000)
* config/tilegx/tilegx.md (trap): New pattern.
* config/tilepro/tilepro.md (trap): Likewise.

From-SVN: r242735

gcc/ChangeLog
gcc/config/tilegx/tilegx.md
gcc/config/tilepro/tilepro.md

index a7a776e70e17f852ea669397b9ac240bc719def7..97320c769ad6b581a0c6c8bbf0ba5c44025866dd 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-22  Walter Lee  <walt@tilera.com>
+
+       * config/tilegx/tilegx.md (trap): New pattern.
+       * config/tilepro/tilepro.md (trap): Likewise.
+
 2016-11-22  Walter Lee  <walt@tilera.com>
 
        * config/tilegx/tilegx.md (*zero_extract): Use
index 3ad5a873b1f7d0abd3b1ef3c69ecffd139553453..eccdd28941d84e5e0dbcd63068118e7a35102291 100644 (file)
   "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")])
+
 \f
 ;;
 ;; Conditional branches
index 6493b06d736b4a17ec50383b0d0019f8aacda56c..d1536edada66ce26df7e48f425781c25400c3fef 100644 (file)
   "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")])
+
 \f
 ;;
 ;; Conditional branches