From 5fba7efc6cd96ae81df55e06e3fc9a9cbd7f3f3a Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Tue, 12 Nov 2019 22:02:03 +0100 Subject: rs6000: Handle unordered for xscmpexp[dq]p without NaNs (PR92449) * config/rs6000/vsx.md (xscmpexpdp_ for CMP_TEST): Handle UNORDERED if !HONOR_NANS (DFmode). (xscmpexpqp__ for CMP_TEST and IEEE128): Handle UNORDERED if !HONOR_NANS (mode). From-SVN: r278103 --- gcc/config/rs6000/vsx.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gcc/config') diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md index aa13b20..3aa8e21 100644 --- a/gcc/config/rs6000/vsx.md +++ b/gcc/config/rs6000/vsx.md @@ -4526,6 +4526,12 @@ (const_int 0)))] "TARGET_P9_VECTOR" { + if ( == UNORDERED && !HONOR_NANS (DFmode)) + { + emit_move_insn (operands[0], const0_rtx); + DONE; + } + operands[3] = gen_reg_rtx (CCFPmode); }) @@ -4554,6 +4560,12 @@ (const_int 0)))] "TARGET_P9_VECTOR" { + if ( == UNORDERED && !HONOR_NANS (mode)) + { + emit_move_insn (operands[0], const0_rtx); + DONE; + } + operands[3] = gen_reg_rtx (CCFPmode); }) -- cgit v1.1