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
+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
(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"
(const_int 0))
(const_int 0))]
""
- "%J0 trap;"
+ "%J0 trap; %J0 exit;"
[(set_attr "predicable" "false")])
(define_expand "ctrap<mode>4"