Home | History | Annotate | Download | only in priv

Lines Matching refs:Xam

164    am->Xam.IR.imm = imm32;
165 am->Xam.IR.reg = reg;
171 am->Xam.IRRS.imm = imm32;
172 am->Xam.IRRS.base = base;
173 am->Xam.IRRS.index = indEx;
174 am->Xam.IRRS.shift = shift;
182 return X86AMode_IR( am->Xam.IR.imm, am->Xam.IR.reg );
184 return X86AMode_IRRS( am->Xam.IRRS.imm, am->Xam.IRRS.base,
185 am->Xam.IRRS.index, am->Xam.IRRS.shift );
194 if (am->Xam.IR.imm == 0)
197 vex_printf("0x%x(", am->Xam.IR.imm);
198 ppHRegX86(am->Xam.IR.reg);
202 vex_printf("0x%x(", am->Xam.IRRS.imm);
203 ppHRegX86(am->Xam.IRRS.base);
205 ppHRegX86(am->Xam.IRRS.index);
206 vex_printf(",%d)", 1 << am->Xam.IRRS.shift);
216 addHRegUse(u, HRmRead, am->Xam.IR.reg);
219 addHRegUse(u, HRmRead, am->Xam.IRRS.base);
220 addHRegUse(u, HRmRead, am->Xam.IRRS.index);
230 am->Xam.IR.reg = lookupHRegRemap(m, am->Xam.IR.reg);
233 am->Xam.IRRS.base = lookupHRegRemap(m, am->Xam.IRRS.base);
234 am->Xam.IRRS.index = lookupHRegRemap(m, am->Xam.IRRS.index);
1927 if (am->Xam.IR.imm == 0
1928 && ! sameHReg(am->Xam.IR.reg, hregX86_ESP())
1929 && ! sameHReg(am->Xam.IR.reg, hregX86_EBP()) ) {
1930 *p++ = mkModRegRM(0, iregNo(greg), iregNo(am->Xam.IR.reg));
1933 if (fits8bits(am->Xam.IR.imm)
1934 && ! sameHReg(am->Xam.IR.reg, hregX86_ESP())) {
1935 *p++ = mkModRegRM(1, iregNo(greg), iregNo(am->Xam.IR.reg));
1936 *p++ = toUChar(am->Xam.IR.imm & 0xFF);
1939 if (! sameHReg(am->Xam.IR.reg, hregX86_ESP())) {
1940 *p++ = mkModRegRM(2, iregNo(greg), iregNo(am->Xam.IR.reg));
1941 p = emit32(p, am->Xam.IR.imm);
1944 if (sameHReg(am->Xam.IR.reg, hregX86_ESP())
1945 && fits8bits(am->Xam.IR.imm)) {
1948 *p++ = toUChar(am->Xam.IR.imm & 0xFF);
1956 if (fits8bits(am->Xam.IRRS.imm)
1957 && ! sameHReg(am->Xam.IRRS.index, hregX86_ESP())) {
1959 *p++ = mkSIB(am->Xam.IRRS.shift, iregNo(am->Xam.IRRS.index),
1960 iregNo(am->Xam.IRRS.base));
1961 *p++ = toUChar(am->Xam.IRRS.imm & 0xFF);
1964 if (! sameHReg(am->Xam.IRRS.index, hregX86_ESP())) {
1966 *p++ = mkSIB(am->Xam.IRRS.shift, iregNo(am->Xam.IRRS.index),
1967 iregNo(am->Xam.IRRS.base));
1968 p = emit32(p, am->Xam.IRRS.imm);