Commit 1dff18a1 by Kwok Cheung Yeung

amdgcn: Support unordered floating-point comparison operators

2020-04-03  Kwok Cheung Yeung  <kcy@codesourcery.com>

	gcc/
	* config/gcn/gcn.c (print_operand): Handle unordered comparison
	operators.
	* config/gcn/predicates.md (gcn_fp_compare_operator): Add unordered
	comparison operators.
parent 24fe8c8e
2020-04-03 Kwok Cheung Yeung <kcy@codesourcery.com>
* config/gcn/gcn.c (print_operand): Handle unordered comparison
operators.
* config/gcn/predicates.md (gcn_fp_compare_operator): Add unordered
comparison operators.
2020-04-03 Kewen Lin <linkw@gcc.gnu.org>
PR tree-optimization/94443
......
......@@ -6007,6 +6007,21 @@ print_operand (FILE *file, rtx x, int code)
case UNORDERED:
s = "_u_";
break;
case UNEQ:
s = "_nlg_";
break;
case UNGE:
s = "_nlt_";
break;
case UNGT:
s = "_nle_";
break;
case UNLE:
s = "_ngt_";
break;
case UNLT:
s = "_nge_";
break;
case LTGT:
s = "_lg_";
break;
......
......@@ -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,ltgt"))
(match_code "eq,ne,gt,ge,lt,le,gtu,geu,ltu,leu,ordered,unordered,uneq,unge,ungt,unle,unlt,ltgt"))
(define_predicate "unary_operator"
(match_code "not,popcount"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment