public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/redhat/heads/gcc-10-branch)] Add LTGT operator support for amdgcn
@ 2020-01-30 20:59 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2020-01-30 20:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:59e6d62be2c980adfc375702792afb141a1f1a1b
commit 59e6d62be2c980adfc375702792afb141a1f1a1b
Author: Andrew Stubbs <ams@codesourcery.com>
Date: Wed Jan 29 11:35:07 2020 +0000
Add LTGT operator support for amdgcn
Fixes ICE in testcase gcc.dg/pr81228.c
2020-01-30 Andrew Stubbs <ams@codesourcery.com>
gcc/
* config/gcn/gcn.c (print_operand): Handle LTGT.
* config/gcn/predicates.md (gcn_fp_compare_operator): Allow ltgt.
Diff:
---
gcc/ChangeLog | 5 +++++
gcc/config/gcn/gcn.c | 3 +++
gcc/config/gcn/predicates.md | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ab1161b..7132bf0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-30 Andrew Stubbs <ams@codesourcery.com>
+
+ * config/gcn/gcn.c (print_operand): Handle LTGT.
+ * config/gcn/predicates.md (gcn_fp_compare_operator): Allow ltgt.
+
2020-01-30 Richard Biener <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): Wrap VECTOR_CST
diff --git a/gcc/config/gcn/gcn.c b/gcc/config/gcn/gcn.c
index c78df1d..a39e9f3 100644
--- a/gcc/config/gcn/gcn.c
+++ b/gcc/config/gcn/gcn.c
@@ -5929,6 +5929,9 @@ print_operand (FILE *file, rtx x, int code)
case UNORDERED:
s = "_u_";
break;
+ case LTGT:
+ s = "_lg_";
+ break;
default:
output_operand_lossage ("invalid %%xn code");
return;
diff --git a/gcc/config/gcn/predicates.md b/gcc/config/gcn/predicates.md
index 2f904b1..7bf763a 100644
--- a/gcc/config/gcn/predicates.md
+++ b/gcc/config/gcn/predicates.md
@@ -165,7 +165,7 @@
(match_code "eq,ne,gt,ge,lt,le,gtu,geu,ltu,leu"))
(define_predicate "gcn_fp_compare_operator"
- (match_code "eq,ne,gt,ge,lt,le,gtu,geu,ltu,leu,ordered,unordered"))
+ (match_code "eq,ne,gt,ge,lt,le,gtu,geu,ltu,leu,ordered,unordered,ltgt"))
(define_predicate "unary_operator"
(match_code "not,popcount"))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-30 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30 20:59 [gcc(refs/vendors/redhat/heads/gcc-10-branch)] Add LTGT operator support for amdgcn Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).