Skip to content

Commit

Permalink
Rename XOR* mnemonics to EOR*
Browse files Browse the repository at this point in the history
Summary:
TCA mnemonics all start with an X, XOR was the only exception.  This
renaming makes it so that only TCA mnemonics start by an X.

On KV3-1 and KV3-2, we install synthetics so that XOR still works.
However, the KV4-1 will not expose a XOR mnemonic.

libgloss/ChangeLog:

2023-10-31  Paul Iannetta  <[email protected]>

	* kvx-elf/include/kvx/asm_context.h

newlib/ChangeLog:

2023-10-31  Paul Iannetta  <[email protected]>

	* libc/machine/kvx/memcmp.S: Rename XOR* mnemonics to EOR*.

Test Plan: CI

Reviewers: O26 newlib!

Differential Revision: https://phab.kalray.eu/D33495
  • Loading branch information
Paul Iannetta committed Nov 23, 2023
1 parent 55b1b48 commit daaeba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libgloss/kvx-elf/include/kvx/asm_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
lq.u $r6r7 = __KVX_CONTEXT_SPS_CS[\from] ## $sps - $cs
;;
set $spc = $r2
xord $r33 = $r6, $r33 # generate a mask of ones with a '1' at each bit where the current $sps ($r33) differs from the $sps ($r6) to be restored
eord $r33 = $r6, $r33 # generate a mask of ones with a '1' at each bit where the current $sps ($r33) differs from the $sps ($r6) to be restored
notd $r34 = $r6 # prepare WFXL clear mask on LSBs
slld $r35 = $r6, 32 # prepare WFXL set mask on MSBs
ld.u $r8 = __KVX_CONTEXT_LC[\from] ## $lc
Expand Down
2 changes: 1 addition & 1 deletion newlib/libc/machine/kvx/memcmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ memcmp:
ret
;;
.Lstreaming_kernel_exit:
xord $r0 = $r4, $r5
eord $r0 = $r4, $r5
lq.dnez $r6? $r14r15 = 0[$r12]
;;
ctzd $r0 = $r0
Expand Down

0 comments on commit daaeba0

Please sign in to comment.