aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/i386.cc
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2023-12-28 12:31:30 +0100
committerUros Bizjak <ubizjak@gmail.com>2023-12-28 12:31:30 +0100
commitd74cceb6d40a20f848aa78ab1ee9dd46c09f994a (patch)
tree66d6fc78a9b5a4bc3b8ff73f282c9b7da0e6b677 /gcc/config/i386/i386.cc
parent76f5542c48315cca5dfcbff2f22c94f8d145bde6 (diff)
downloadgcc-d74cceb6d40a20f848aa78ab1ee9dd46c09f994a.zip
gcc-d74cceb6d40a20f848aa78ab1ee9dd46c09f994a.tar.gz
gcc-d74cceb6d40a20f848aa78ab1ee9dd46c09f994a.tar.bz2
i386: Cleanup ix86_expand_{unary|binary}_operator issues
Move ix86_expand_unary_operator from i386.cc to i386-expand.cc, re-arrange prototypes and do some cosmetic changes with the usage of TARGET_APX_NDD. No functional changes. gcc/ChangeLog: * config/i386/i386.cc (ix86_unary_operator_ok): Move from here... * config/i386/i386-expand.cc (ix86_unary_operator_ok): ... to here. * config/i386/i386-protos.h: Re-arrange ix86_{unary|binary}_operator_ok and ix86_expand_{unary|binary}_operator prototypes. * config/i386/i386.md: Cosmetic changes with the usage of TARGET_APX_NDD in ix86_expand_{unary|binary}_operator and ix86_{unary|binary}_operator_ok function calls.
Diffstat (limited to 'gcc/config/i386/i386.cc')
-rw-r--r--gcc/config/i386/i386.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index a05fa34..38d515d 100644
--- a/gcc/config/i386/i386.cc
+++ b/gcc/config/i386/i386.cc
@@ -16219,23 +16219,6 @@ ix86_dep_by_shift_count (const_rtx set_insn, const_rtx use_insn)
PATTERN (use_insn));
}
-/* Return TRUE or FALSE depending on whether the unary operator meets the
- appropriate constraints. */
-
-bool
-ix86_unary_operator_ok (enum rtx_code,
- machine_mode,
- rtx operands[2],
- bool use_ndd)
-{
- /* If one of operands is memory, source and destination must match. */
- if ((MEM_P (operands[0])
- || (!use_ndd && MEM_P (operands[1])))
- && ! rtx_equal_p (operands[0], operands[1]))
- return false;
- return true;
-}
-
/* Return TRUE if the operands to a vec_interleave_{high,low}v2df
are ok, keeping in mind the possible movddup alternative. */