Home | History | Annotate | Download | only in amd64

Lines Matching defs:rax

11 ULong rax;
24 rdx = 0x11111111; rax = 0x22222222;
28 rax&0xff,rbx&0xff,rcx&0xff);
31 "\tpush %rax\n"
35 "\txor %rax, %rax\n" // get eflags in a known state
37 "\tmov " VG_SYM(rax) ",%rax\n"
42 "\tmov " VG_SYM(rax) "(%rip),%rax\n"
49 "\tmov %rax," VG_SYM(rax_out) "\n"
53 "\tmov %rax," VG_SYM(rax_out) "(%rip)\n"
60 "\tpop %rax\n"
68 rdx = 0x99999999; rax = 0x77777777;
72 rax&0xff,rbx&0xff,rcx&0xff);
75 "\tpush %rax\n"
79 "\txor %rax, %rax\n" // get eflags in a known state
81 "\tmov " VG_SYM(rax) ",%rax\n"
86 "\tmov " VG_SYM(rax) "(%rip),%rax\n"
93 "\tmov %rax," VG_SYM(rax_out) "\n"
97 "\tmov %rax," VG_SYM(rax_out) "(%rip)\n"
104 "\tpop %rax\n"
112 rdx = 0x11111111; rax = 0x22222222;
116 rax&0xffff,rbx&0xffff,rcx&0xffff);
119 "\tpush %rax\n"
123 "\txor %rax, %rax\n" // get eflags in a known state
125 "\tmov " VG_SYM(rax) ",%rax\n"
130 "\tmov " VG_SYM(rax) "(%rip),%rax\n"
137 "\tmov %rax," VG_SYM(rax_out) "\n"
141 "\tmov %rax," VG_SYM(rax_out) "(%rip)\n"
148 "\tpop %rax\n"
156 rdx = 0x99999999; rax = 0x77777777;
160 rax&0xffff,rbx&0xffff,rcx&0xffff);
163 "\tpush %rax\n"
167 "\txor %rax, %rax\n" // get eflags in a known state
169 "\tmov " VG_SYM(rax) ",%rax\n"
174 "\tmov " VG_SYM(rax) "(%rip),%rax\n"
181 "\tmov %rax," VG_SYM(rax_out) "\n"
185 "\tmov %rax," VG_SYM(rax_out) "(%rip)\n"
192 "\tpop %rax\n"
201 rdx = 0x11111111; rax = 0x22222222;
205 rax&0xffffffff,rbx&0xffffffff,rcx&0xffffffff);
208 "\tpush %rax\n"
212 "\txor %rax, %rax\n" // get eflags in a known state
214 "\tmov " VG_SYM(rax) ",%rax\n"
219 "\tmov " VG_SYM(rax) "(%rip),%rax\n"
226 "\tmov %rax," VG_SYM(rax_out) "\n"
230 "\tmov %rax," VG_SYM(rax_out) "(%rip)\n"
237 "\tpop %rax\n"
245 rdx = 0x99999999; rax = 0x77777777;
249 rax&0xffffffff,rbx&0xffffffff,rcx&0xffffffff);
252 "\tpush %rax\n"
256 "\txor %rax, %rax\n" // get eflags in a known state
258 "\tmov " VG_SYM(rax) ",%rax\n"
263 "\tmov " VG_SYM(rax) "(%rip),%rax\n"
270 "\tmov %rax," VG_SYM(rax_out) "\n"
274 "\tmov %rax," VG_SYM(rax_out) "(%rip)\n"
281 "\tpop %rax\n"
290 rdx = 0x111111111; rax = 0x222222222;
293 printf("cmpxchg %%rbx,%%rcx (rax=%llx rbx=%llx rcx=%llx)\n",
294 rax,rbx,rcx);
297 "\tpush %rax\n"
301 "\txor %rax, %rax\n" // get eflags in a known state
303 "\tmov " VG_SYM(rax) ",%rax\n"
308 "\tmov " VG_SYM(rax) "(%rip),%rax\n"
315 "\tmov %rax," VG_SYM(rax_out) "\n"
319 "\tmov %rax," VG_SYM(rax_out) "(%rip)\n"
326 "\tpop %rax\n"
329 printf(" rax!=rcx so rax should equal rcx (Result rax=%llx rbx=%llx rcx=%llx)\n",
334 rdx = 0x999999999; rax = 0x777777777;
337 printf("cmpxchg %%rbx,%%rcx (rax=%llx rbx=%llx rcx=%llx)\n",
338 rax,rbx,rcx);
341 "\tpush %rax\n"
345 "\txor %rax, %rax\n" // get eflags in a known state
347 "\tmov " VG_SYM(rax) ",%rax\n"
352 "\tmov " VG_SYM(rax) "(%rip),%rax\n"
359 "\tmov %rax," VG_SYM(rax_out) "\n"
363 "\tmov %rax," VG_SYM(rax_out) "(%rip)\n"
370 "\tpop %rax\n"
373 printf(" rax==rcx so ecx should equal rbx (Result rax=%llx rbx=%llx rcx=%llx)\n",