Commit 82191cbf by Tom de Vries Committed by Tom de Vries

[nvptx] Make trap insn noreturn

2018-05-09  Tom de Vries  <tom@codesourcery.com>

	PR target/85626
	* config/nvptx/nvptx.md (define_insn "trap", define_insn "trap_if_true")
	(define_insn "trap_if_false"): Add exit after trap.

From-SVN: r260072
parent 40305631
2018-05-09 Tom de Vries <tom@codesourcery.com>
PR target/85626
* config/nvptx/nvptx.md (define_insn "trap", define_insn "trap_if_true")
(define_insn "trap_if_false"): Add exit after trap.
2018-05-09 Eric Botcazou <ebotcazou@adacore.com>
PR rtl-optimization/85638
......
......@@ -1101,14 +1101,14 @@
(define_insn "trap"
[(trap_if (const_int 1) (const_int 0))]
""
"trap;")
"trap; exit;")
(define_insn "trap_if_true"
[(trap_if (ne (match_operand:BI 0 "nvptx_register_operand" "R")
(const_int 0))
(const_int 0))]
""
"%j0 trap;"
"%j0 trap; %j0 exit;"
[(set_attr "predicable" "false")])
(define_insn "trap_if_false"
......@@ -1116,7 +1116,7 @@
(const_int 0))
(const_int 0))]
""
"%J0 trap;"
"%J0 trap; %J0 exit;"
[(set_attr "predicable" "false")])
(define_expand "ctrap<mode>4"
......
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