Skip to content

Commit

Permalink
LoongArch: prevent the loss of ordering info between -m[no-]lsx and -…
Browse files Browse the repository at this point in the history
…m[no-]lasx.
  • Loading branch information
chenglulu326 committed Mar 21, 2023
1 parent 9516c71 commit 1cd1f55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gcc/config/loongarch/genopts/loongarch.opt.in
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ Target Driver RejectNegative Var(la_opt_switches) Mask(FORCE_F64) Negative(m@@OP
Allow hardware floating-point instructions to cover both 32-bit and 64-bit operations.

m@@OPTSTR_LSX@@
Target Var(la_opt_switches) Mask(LSX) Negative(m@@OPTSTR_LSX@@)
Target Var(la_opt_switches) Mask(LSX) Negative(m@@OPTSTR_LASX@@)
Enable LoongArch SIMD Extension (LSX).

m@@OPTSTR_LASX@@
Target Var(la_opt_switches) Mask(LASX) Negative(m@@OPTSTR_LASX@@)
Target Var(la_opt_switches) Mask(LASX) Negative(m@@OPTSTR_LSX@@)
Enable LoongArch Advanced SIMD Extension (LASX).

;; Base target models (implies ISA & tune parameters)
Expand Down
4 changes: 2 additions & 2 deletions gcc/config/loongarch/loongarch.opt
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ Target Driver RejectNegative Var(la_opt_switches) Mask(FORCE_F64) Negative(msoft
Allow hardware floating-point instructions to cover both 32-bit and 64-bit operations.

mlsx
Target Var(la_opt_switches) Mask(LSX) Negative(mlsx)
Target Var(la_opt_switches) Mask(LSX) Negative(mlasx)
Enable LoongArch SIMD Extension (LSX).

mlasx
Target Var(la_opt_switches) Mask(LASX) Negative(mlasx)
Target Var(la_opt_switches) Mask(LASX) Negative(mlsx)
Enable LoongArch Advanced SIMD Extension (LASX).

;; Base target models (implies ISA & tune parameters)
Expand Down

0 comments on commit 1cd1f55

Please sign in to comment.