Lines Matching refs:byte

740     // Note: this converts the array index into a byte offset for the op.
1272 // The only 16-byte format we support today is RGBA F32,
1810 // ModRM byte encodes the arguments of an opcode.
1832 // SIB byte encodes a memory address, base + (index * scale).
1876 // Pack mandatory SSE opcode prefix byte to 2-bit VEX encoding.
1888 // With these conditions met, we can optionally compress VEX to 2-byte.
1896 // We could use this 3-byte VEX prefix all the time if we like.
1922 void Assembler::byte(uint8_t b) { this->bytes(&b, 1); }
1927 this->byte(0x00);
1932 this->byte(0xcc);
1936 this->byte(0xc5);
1937 this->byte(0xf8);
1938 this->byte(0x77);
1940 void Assembler::ret() { this->byte(0xc3); }
1944 this->byte(rex(W1,x>>3,0,dst.reg>>3));
1946 this->byte(mod_rm(Mod::Direct, x, dst.reg&7));
1953 this->byte(rex(W1,x>>3,m.index>>3,m.base>>3));
1955 this->byte(mod_rm(mod(m.disp), x&7, (need_SIB ? rsp : m.base)&7));
1957 this->byte(sib(m.scale, m.index&7, m.base&7));
1981 // these immediates are always fixed size at 4 bytes or 1 byte.
1988 this->byte(imm);
2069 this->byte(imm);
2085 this->byte(imm);
2089 this->byte(imm);
2093 this->byte(imm);
2097 this->byte(imm);
2101 this->byte(imm);
2105 this->byte(imm);
2163 // x86 32-bit byte count, from the end of this instruction.
2173 this->byte(opcode);
2174 this->byte(mod_rm(Mod::Direct, dst&7, y.reg&7));
2178 // Passing rsp as the rm argument to mod_rm() signals an SIB byte follows;
2179 // without an SIB byte, that's where the base register would usually go.
2180 // This means we have to use an SIB byte if we want to use rsp as a base register.
2188 this->byte(opcode);
2189 this->byte(mod_rm(mod(m.disp), dst&7, (need_SIB ? rsp : m.base)&7));
2191 this->byte(sib(m.scale, m.index&7, m.base&7));
2203 this->byte(opcode);
2204 this->byte(mod_rm(Mod::Indirect, dst&7, rip&7));
2218 // 7? one-byte-disp
2219 // 0F 8? four-byte-disp
2221 this->byte(0x0f);
2222 this->byte(condition);
2232 this->byte(0xe9);
2260 this->byte(imm);
2265 this->byte(imm);
2270 this->byte(imm);
2275 this->byte(imm);
2290 this->byte(opcode);
2291 this->byte(mod_rm(Mod::Indirect, dst&7, rsp/*use SIB*/));
2292 this->byte(sib(scale, ix&7, base&7));
4124 a->ldrb(GP1, GP1); // Load that byte.
4135 a->add (GP1, GP0, GP1, A::LSL, 1); // Scale index 2x into a byte offset.
4136 a->ldrh(GP1, GP1); // 2-byte load.
4147 a->add (GP1, GP0, GP1, A::LSL, 2); // Scale index 4x into a byte offset.
4148 a->ldrs(GP1, GP1); // 4-byte load.
4335 // byte patterns on ARM or 32-byte patterns on x86, we only need to