diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-11-18 03:45:42 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-11-19 01:11:13 +0800 |
commit | 51bda9f136c03c948a9e95b60cb8b4257fb427be (patch) | |
tree | 1ef3b7421897ae3318fb8c12e7f9c66247fa1fac /gcc/rust/resolve/rust-ast-resolve-expr.cc | |
parent | 181ed726b22afc3e2897447d0631ef0bcc2d106d (diff) | |
download | gcc-51bda9f136c03c948a9e95b60cb8b4257fb427be.zip gcc-51bda9f136c03c948a9e95b60cb8b4257fb427be.tar.gz gcc-51bda9f136c03c948a9e95b60cb8b4257fb427be.tar.bz2 |
LoongArch: Add fine-grained control for LAM_BH and LAMCAS
gcc/ChangeLog:
* config/loongarch/genopts/isa-evolution.in: (lam-bh, lamcas):
Add.
* config/loongarch/loongarch-str.h: Regenerate.
* config/loongarch/loongarch.opt: Regenerate.
* config/loongarch/loongarch-cpucfg-map.h: Regenerate.
* config/loongarch/loongarch-cpu.cc
(ISA_BASE_LA64V110_FEATURES): Include OPTION_MASK_ISA_LAM_BH
and OPTION_MASK_ISA_LAMCAS.
* config/loongarch/sync.md (atomic_add<mode:SHORT>): Use
TARGET_LAM_BH instead of ISA_BASE_IS_LA64V110. Remove empty
lines from assembly output.
(atomic_exchange<mode>_short): Likewise.
(atomic_exchange<mode:SHORT>): Likewise.
(atomic_fetch_add<mode>_short): Likewise.
(atomic_fetch_add<mode:SHORT>): Likewise.
(atomic_cas_value_strong<mode>_amcas): Use TARGET_LAMCAS instead
of ISA_BASE_IS_LA64V110.
(atomic_compare_and_swap<mode>): Likewise.
(atomic_compare_and_swap<mode:GPR>): Likewise.
(atomic_compare_and_swap<mode:SHORT>): Likewise.
* config/loongarch/loongarch.cc (loongarch_asm_code_end): Dump
status if -mlam-bh and -mlamcas if -fverbose-asm.
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions