From: Tom de Vries Date: Wed, 9 May 2018 10:32:40 +0000 (+0000) Subject: [nvptx] Make trap insn noreturn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82191cbf3f277d73b52a79599b329b52fd567f83;p=gcc.git [nvptx] Make trap insn noreturn 2018-05-09 Tom de Vries 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a36aeb65a4..654328fe8d8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-05-09 Tom de Vries + + 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 PR rtl-optimization/85638 diff --git a/gcc/config/nvptx/nvptx.md b/gcc/config/nvptx/nvptx.md index 975421959e0..2988f5dfa91 100644 --- a/gcc/config/nvptx/nvptx.md +++ b/gcc/config/nvptx/nvptx.md @@ -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 "ctrap4"