All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/8] LoongArch: minor assembly clean-ups
@ 2022-07-26 15:57 WANG Xuerui
  2022-07-26 15:57 ` [PATCH v3 1/8] LoongArch: Remove several syntactic sugar macros for branches WANG Xuerui
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: WANG Xuerui @ 2022-07-26 15:57 UTC (permalink / raw)
  To: Huacai Chen; +Cc: Jinyang He, loongarch, WANG Xuerui

From: WANG Xuerui <git@xen0n.name>

Hi,

Just several minor clean-ups to the few lines of loongarch assembly
that have been irritating me recently. Most of them belong to the "let's
not support prehistoric toolchains" kind, no functional changes
whatsoever.

Tested on 3A5000 without problem.

v3:

- Reordered patches (suggested by Huacai)
- Migrated all non-definition uses of raw register names to ABI names,
  unraveling more chances of simplification as a result (suggested by
  Jinyang)
- Re-tabbed all assembly files after the cleanups

v2:

Migrated "BLT foo, zero" and "BGT foo, zero" too, suggested by Jinyang.

WANG Xuerui (8):
  LoongArch: Remove several syntactic sugar macros for branches
  LoongArch: Use ABI names of registers where appropriate
  LoongArch: Use the "jr" pseudo-instruction where applicable
  LoongArch: Use the "move" pseudo-instruction where applicable
  LoongArch: Simplify "BEQ/BNE foo, zero" with BEQZ/BNEZ
  LoongArch: Simplify "BLT foo, zero" with BLTZ
  LoongArch: Simplify "BGT foo, zero" with BGTZ
  LoongArch: Re-tab the assembly files

 arch/loongarch/include/asm/asmmacro.h    |  12 --
 arch/loongarch/include/asm/atomic.h      |  24 ++--
 arch/loongarch/include/asm/barrier.h     |   4 +-
 arch/loongarch/include/asm/cmpxchg.h     |   4 +-
 arch/loongarch/include/asm/futex.h       |   6 +-
 arch/loongarch/include/asm/loongson.h    |   4 +-
 arch/loongarch/include/asm/stacktrace.h  |  12 +-
 arch/loongarch/include/asm/thread_info.h |   4 +-
 arch/loongarch/include/asm/uaccess.h     |   2 +-
 arch/loongarch/kernel/entry.S            |   4 +-
 arch/loongarch/kernel/fpu.S              | 174 +++++++++++------------
 arch/loongarch/kernel/genex.S            |  12 +-
 arch/loongarch/kernel/head.S             |   8 +-
 arch/loongarch/kernel/switch.S           |   4 +-
 arch/loongarch/lib/clear_user.S          |   2 +-
 arch/loongarch/lib/copy_user.S           |   2 +-
 arch/loongarch/mm/page.S                 | 118 +++++++--------
 arch/loongarch/mm/tlbex.S                |  98 ++++++-------
 18 files changed, 241 insertions(+), 253 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-07-26 15:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26 15:57 [PATCH v3 0/8] LoongArch: minor assembly clean-ups WANG Xuerui
2022-07-26 15:57 ` [PATCH v3 1/8] LoongArch: Remove several syntactic sugar macros for branches WANG Xuerui
2022-07-26 15:57 ` [PATCH v3 2/8] LoongArch: Use ABI names of registers where appropriate WANG Xuerui
2022-07-26 15:57 ` [PATCH v3 3/8] LoongArch: Use the "jr" pseudo-instruction where applicable WANG Xuerui
2022-07-26 15:57 ` [PATCH v3 4/8] LoongArch: Use the "move" " WANG Xuerui
2022-07-26 15:57 ` [PATCH v3 5/8] LoongArch: Simplify "BEQ/BNE foo, zero" with BEQZ/BNEZ WANG Xuerui
2022-07-26 15:57 ` [PATCH v3 6/8] LoongArch: Simplify "BLT foo, zero" with BLTZ WANG Xuerui
2022-07-26 15:57 ` [PATCH v3 7/8] LoongArch: Simplify "BGT foo, zero" with BGTZ WANG Xuerui
2022-07-26 15:57 ` [PATCH v3 8/8] LoongArch: Re-tab the assembly files WANG Xuerui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.