From bc4ec5430bf8225f515242fc7c030eb891c32301 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 1 Sep 2016 12:07:16 +0000 Subject: [PATCH] * config/nvptx/nvptx.md (cbranch4): Op 2 can be const. From-SVN: r239934 --- gcc/ChangeLog | 4 ++++ gcc/config/nvptx/nvptx.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dca92035308..ad60eb204af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-09-01 Nathan Sidwell + + * config/nvptx/nvptx.md (cbranch4): Op 2 can be const. + 2016-09-01 Wilco Dijkstra * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement): diff --git a/gcc/config/nvptx/nvptx.md b/gcc/config/nvptx/nvptx.md index e48412de6a6..d117343c531 100644 --- a/gcc/config/nvptx/nvptx.md +++ b/gcc/config/nvptx/nvptx.md @@ -541,7 +541,7 @@ [(set (pc) (if_then_else (match_operator 0 "nvptx_comparison_operator" [(match_operand:HSDIM 1 "nvptx_register_operand" "") - (match_operand:HSDIM 2 "nvptx_register_operand" "")]) + (match_operand:HSDIM 2 "nvptx_nonmemory_operand" "")]) (label_ref (match_operand 3 "" "")) (pc)))] "" @@ -556,7 +556,7 @@ [(set (pc) (if_then_else (match_operator 0 "nvptx_float_comparison_operator" [(match_operand:SDFM 1 "nvptx_register_operand" "") - (match_operand:SDFM 2 "nvptx_register_operand" "")]) + (match_operand:SDFM 2 "nvptx_nonmemory_operand" "")]) (label_ref (match_operand 3 "" "")) (pc)))] "" -- 2.30.2