From 9faf9a56c9da010635712da0d2574b6e399034e0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 19 Jun 2015 09:41:49 +0200 Subject: [PATCH] [nvptx] Address genrecog warnings build/genrecog [...]/source-gcc/gcc/common.md [...]/source-gcc/gcc/config/nvptx/nvptx.md \ insn-conditions.md > tmp-recog.c [...]/source-gcc/gcc/config/nvptx/nvptx.md:1206: warning: operand 0 missing mode? [...]/source-gcc/gcc/config/nvptx/nvptx.md:1206: warning: operand 1 missing mode? gcc/ * config/nvptx/nvptx.md (allocate_stack): Rename to... (allocate_stack_): ... this, and add :P on both match_operand and unspec. (allocate_stack): New expander. From-SVN: r224641 --- gcc/ChangeLog | 7 +++++++ gcc/config/nvptx/nvptx.md | 20 ++++++++++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28494ffebaa..eb37d086aee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-06-19 Jakub Jelinek + + * config/nvptx/nvptx.md (allocate_stack): Rename to... + (allocate_stack_): ... this, and add :P on both + match_operand and unspec. + (allocate_stack): New expander. + 2015-06-19 Christian Bruel PR target/66541 diff --git a/gcc/config/nvptx/nvptx.md b/gcc/config/nvptx/nvptx.md index c30de36034f..a49786cb00b 100644 --- a/gcc/config/nvptx/nvptx.md +++ b/gcc/config/nvptx/nvptx.md @@ -1203,10 +1203,22 @@ sorry ("target cannot support nonlocal goto."); }) -(define_insn "allocate_stack" - [(set (match_operand 0 "nvptx_register_operand" "=R") - (unspec [(match_operand 1 "nvptx_register_operand" "R")] - UNSPEC_ALLOCA))] +(define_expand "allocate_stack" + [(match_operand 0 "nvptx_register_operand") + (match_operand 1 "nvptx_register_operand")] + "" +{ + if (TARGET_ABI64) + emit_insn (gen_allocate_stack_di (operands[0], operands[1])); + else + emit_insn (gen_allocate_stack_si (operands[0], operands[1])); + DONE; +}) + +(define_insn "allocate_stack_" + [(set (match_operand:P 0 "nvptx_register_operand" "=R") + (unspec:P [(match_operand:P 1 "nvptx_register_operand" "R")] + UNSPEC_ALLOCA))] "" "%.\\tcall (%0), %%alloca, (%1);") -- 2.30.2