Valhall Immediates
mali_valhall_isa)Arm Mali Valhall (G57, G77, G78, G610, G710, Immortalis-G715/G720/G925)
mesa/main
Summary
This immediates are accessible in (almost) any instruction, provided the immediate mode is kept to the default. They optimize for the most common immediate values; any immediate listed here may be used without taking up a uniform slot or a register. Most integer instructions can access separate half-words and individual bytes via swizzles on the source.
Syntax / Encoding
Valhall 64-bit inline Immediates
Bitfields (32)
| Bits | Field | Description |
|---|---|---|
idx=0 | imm[0] | Zero |
idx=1 | imm[1] | All ones; integer $-1$ |
idx=2 | imm[2] | Maximum integer; floating-point NaN |
idx=3 | imm[3] | Integers $(-2, -3, -4, -6)$ |
idx=4 | imm[4] | 16-bit integer $2^8$ |
idx=5 | imm[5] | Multiples of 16 $(0, 32, 0, 128)$ |
idx=6 | imm[6] | Multiples of 16 $(48, 80, 96, 112)$ |
idx=7 | imm[7] | Multiples of 16 $(144, 160, 176, 192)$ |
idx=8 | imm[8] | Integers $(0, 1, 2, 3)$ |
idx=9 | imm[9] | Integers $(4, 5, 6, 7)$ |
idx=10 | imm[10] | Integers $(8, 9, 10, 11)$ |
idx=11 | imm[11] | Integers $(12, 13, 14, 15)$ |
idx=12 | imm[12] | Integers $(16, 17, 18, 19)$ |
idx=13 | imm[13] | Integers $(20, 21, 22, 23)$ |
idx=14 | imm[14] | Integers $(24, 25, 26, 27)$ |
idx=15 | imm[15] | Integers $(28, 29, 30, 31)$ |
idx=16 | imm[16] | Float $1.0$ |
idx=17 | imm[17] | Float $0.1$ |
idx=18 | imm[18] | Float $1 / \pi$ |
idx=19 | imm[19] | Float $\log(2)$ |
idx=20 | imm[20] | Float $\pi$ |
idx=21 | imm[21] | Float $0.0$ |
idx=22 | imm[22] | Float $65535.0 = 2^{16} - 1$ |
idx=23 | imm[23] | Half-float $(255.0, 256.0) = (2^8 - 1, 2^8)$ |
idx=24 | imm[24] | Half-float $0.1 = 1 / 10$ |
idx=25 | imm[25] | Half-float $0.25 = 2^{-2}$ |
idx=26 | imm[26] | Half-float $0.5 = 2^{-1}$ |
idx=27 | imm[27] | Half-float $1.0 = 2^0$ |
idx=28 | imm[28] | Half-float $2.0 = 2^1$ |
idx=29 | imm[29] | Half-float $4.0 = 2^2$ |
idx=30 | imm[30] | Half-float $8.0 = 2^3$ |
idx=31 | imm[31] | Half-float $\pi$ |