aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorKong Lingling <lingling.kong@intel.com>2023-05-19 17:15:52 +0800
committerHongyu Wang <hongyu.wang@intel.com>2023-12-07 09:31:14 +0800
commit042519b61772c3fd7aa1bb9b492e1df75df23eb5 (patch)
tree74d26cf677951e282e1476f90d50ca83493bfcdf /gcc/expr.cc
parent57fdb5c2440a8b9d8d0b2dd8be866b6ae012a788 (diff)
downloadgcc-042519b61772c3fd7aa1bb9b492e1df75df23eb5.zip
gcc-042519b61772c3fd7aa1bb9b492e1df75df23eb5.tar.gz
gcc-042519b61772c3fd7aa1bb9b492e1df75df23eb5.tar.bz2
[APX NDD] Support APX NDD for neg insn
gcc/ChangeLog: * config/i386/i386-expand.cc (ix86_expand_unary_operator): Add use_ndd parameter and adjust for NDD. * config/i386/i386-protos.h: Add use_ndd parameter for ix86_unary_operator_ok and ix86_expand_unary_operator. * config/i386/i386.cc (ix86_unary_operator_ok): Add use_ndd parameter and adjust for NDD. * config/i386/i386.md (neg<mode>2): Add new constraint for NDD and adjust output template. (*neg<mode>_1): Likewise. (*neg<dwi>2_doubleword): Likewise and adopt '&' to NDD dest. (*neg<mode>_2): Likewise. (*neg<mode>_ccc_1): Likewise. (*neg<mode>_ccc_2): Likewise. (*negsi_1_zext): Likewise, and use nonimmediate_operand for operands[1] to accept memory input for NDD alternatives. (*negsi_2_zext): Likewise. gcc/testsuite/ChangeLog: * gcc.target/i386/apx-ndd.c: Add neg test.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions