Difference between revisions of "Byte/Word Extension"

From AlphaLinux
Jump to: navigation, search
(Imported from http://web.archive.org/web/20110529084508/http://www.alphalinux.org/wiki/index.php?title=Byte/Word_Extension&action=edit)
 
(No difference)

Latest revision as of 18:11, 29 August 2019

The Byte/Word eXtensions were first introduced in the EV56 and has been available in all subsequent models. The instructions were provided to reduce the number of instructions for operations such as loading and storing bytes or words to and from memory and sign-extending of byte and word values. According to the Alpha Architecture Handbook [1] it is recommended to use these instructions on platforms where they are present instead of the sequences of extract, mask and insert instructions that would otherwise be needed.

Added Instructions

Mnemonic Description
LDBU Load byte unaligned
LDWU Load word unaligned
SEXTB Sign-extend byte
SEXTW Sign-extend word
STB Store byte
STW Store word

Determining Presence

To determine the presence of BWX, use the amask instruction.

References

  1. Template:Cite web