TILEPro/TILE-Gx: add trap patterns

* config/tilegx/tilegx.md (trap): New pattern.
	* config/tilepro/tilepro.md (trap): Likewise.

From-SVN: r242735
This commit is contained in:
Walter Lee 2016-11-23 04:35:43 +00:00 committed by Walter Lee
parent 0f525c3e59
commit 90b9beed5c
3 changed files with 17 additions and 0 deletions

View 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

View File

@ -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

View File

@ -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