Commit 90b9beed by Walter Lee Committed by Walter Lee

TILEPro/TILE-Gx: add trap patterns

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

From-SVN: r242735
parent 0f525c3e
2016-11-22 Walter Lee <walt@tilera.com> 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 * config/tilegx/tilegx.md (*zero_extract): Use
define_insn_and_split instead of define_insn; Handle pos + size > define_insn_and_split instead of define_insn; Handle pos + size >
64. 64.
...@@ -2773,6 +2773,12 @@ ...@@ -2773,6 +2773,12 @@
"nop" "nop"
[(set_attr "type" "Y01")]) [(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 ;; Conditional branches
......
...@@ -1578,6 +1578,12 @@ ...@@ -1578,6 +1578,12 @@
"nop" "nop"
[(set_attr "type" "Y01")]) [(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 ;; Conditional branches
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment