1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6 <title>const-wide</title>
7 <link rel=stylesheet href="opcode.css">
17 Move the given literal value (sign-extended to 64 bits) into the specified
23 <table class="instruc">
26 <th>Op & Format</th>
27 <th>Mnemonic / Syntax</th>
34 <td>const-wide/16 vAA, #+BBBB</td>
35 <td><code>A:</code> destination register (8 bits)<br/>
36 <code>B:</code> signed int (16 bits)</td>
40 <td>const-wide/32 vAA, #+BBBBBBBB</td>
41 <td><code>A:</code> destination register (8 bits)<br/>
42 <code>B:</code> signed int (32 bits)</td>
46 <td>const-wide vAA, #+BBBBBBBBBBBBBBBB</td>
47 <td><code>A:</code> destination register (8 bits)<br/>
48 <code>B:</code> arbitrary double-width (64-bit) constant</td>
52 <td>const-wide/high16 vAA, #+BBBB000000000000</td>
53 <td><code>A:</code> destination register (8 bits)<br/>
54 <code>B:</code> signed int (16 bits)</td>
63 A must be a valid register index in the current stack frame.
71 First, an adjusted value B' is determined as follows:
74 If we are executing the /high16 variant, then B is left-shifted by 40
75 bits, that is, B'=B << 0x28
77 Otherwise, if B is a 16 bit or 32 bit constant, it is sign-extended to
78 64 bits, that is, B'=sign-extended(B).
85 The immediate value B is moved into the register pair (vA, v(A+1)), that is,
91 v(A+1)' = B & 0xffffffff
96 If v(A-1) is the lower half of a register pair, v(A-1)' becomes undefined.
99 If v(A+2) is the upper half of a register pair, v(A+2)' becomes undefined.