MCPcopy Create free account
hub / github.com/akyoto/q / LoadFixedOffsetSignExtend

Function LoadFixedOffsetSignExtend

src/x86/LoadFixedOffset.go:11–13  ·  view source on GitHub ↗

LoadFixedOffsetSignExtend loads from memory with a signed offset from -128 to 127 into a register and sign-extends it.

(code []byte, destination cpu.Register, base cpu.Register, offset int32, length byte)

Source from the content-addressed store, hash-verified

9
10// LoadFixedOffsetSignExtend loads from memory with a signed offset from -128 to 127 into a register and sign-extends it.
11func LoadFixedOffsetSignExtend(code []byte, destination cpu.Register, base cpu.Register, offset int32, length byte) []byte {
12 return memLoadExtend(code, destination, base, offset, length, 0x0FBE, 0x0FBF, 0x63)
13}
14
15// LoadFixedOffsetZeroExtend loads from memory with a signed offset from -128 to 127 into a register and zero-extends it.
16func LoadFixedOffsetZeroExtend(code []byte, destination cpu.Register, base cpu.Register, offset int32, length byte) []byte {

Callers 2

CompileMethod · 0.92

Calls 1

memLoadExtendFunction · 0.85

Tested by 1