Lines Matching defs:CHOICE
31 * To add support for more assemblers add more columns to the CHOICE
150 #define CHOICE(a,b,c) c
242 #define CHOICE(a,b,c) b
249 #define CHOICE(a,b,c) a
274 #define GLOBL CHOICE(.globl, .globl, .extern)
278 #define ALIGNTEXT32 CHOICE(.align 32, .balign 32, .align 32)
279 #define ALIGNTEXT16 CHOICE(.align 16, .balign 16, .align 16)
280 #define ALIGNTEXT8 CHOICE(.align 8, .balign 8, .align 8)
281 #define ALIGNTEXT4 CHOICE(.align 4, .balign 4, .align 4)
282 #define ALIGNTEXT2 CHOICE(.align 2, .balign 2, .align 2)
286 #define ALIGNTEXT32ifNOP CHOICE(.align 32, .balign ARG2(32,0x90), /*can't do it*/)
287 #define ALIGNTEXT16ifNOP CHOICE(.align 16, .balign ARG2(16,0x90), /*can't do it*/)
288 #define ALIGNTEXT8ifNOP CHOICE(.align 8, .balign ARG2(8,0x90), /*can't do it*/)
289 #define ALIGNTEXT4ifNOP CHOICE(.align 4, .balign ARG2(4,0x90), /*can't do it*/)
290 #define ALIGNDATA32 CHOICE(.align 32, .balign ARG2(32,0x0), .align 32)
291 #define ALIGNDATA16 CHOICE(.align 16, .balign ARG2(16,0x0), .align 16)
292 #define ALIGNDATA8 CHOICE(.align 8, .balign ARG2(8,0x0), .align 8)
293 #define ALIGNDATA4 CHOICE(.align 4, .balign ARG2(4,0x0), .align 4)
294 #define ALIGNDATA2 CHOICE(.align 2, .balign ARG2(2,0x0), .align 2)
297 #define ALIGNTEXT32 CHOICE(.align 32, .align ARG2(5,0x90), .align 32)
298 #define ALIGNTEXT16 CHOICE(.align 16, .align ARG2(4,0x90), .align 16)
299 #define ALIGNTEXT8 CHOICE(.align 8, .align ARG2(3,0x90), .align 8)
300 #define ALIGNTEXT4 CHOICE(.align 4, .align ARG2(2,0x90), .align 4)
301 #define ALIGNTEXT2 CHOICE(.align 2, .align ARG2(1,0x90), .align 2)
305 #define ALIGNTEXT32ifNOP CHOICE(.align 32, .align ARG2(5,0x90), /*can't do it*/)
306 #define ALIGNTEXT16ifNOP CHOICE(.align 16, .align ARG2(4,0x90), /*can't do it*/)
307 #define ALIGNTEXT8ifNOP CHOICE(.align 8, .align ARG2(3,0x90), /*can't do it*/)
308 #define ALIGNTEXT4ifNOP CHOICE(.align 4, .align ARG2(2,0x90), /*can't do it*/)
309 #define ALIGNDATA32 CHOICE(.align 32, .align ARG2(5,0x0), .align 32)
310 #define ALIGNDATA16 CHOICE(.align 16, .align ARG2(4,0x0), .align 16)
311 #define ALIGNDATA8 CHOICE(.align 8, .align ARG2(3,0x0), .align 8)
312 #define ALIGNDATA4 CHOICE(.align 4, .align ARG2(2,0x0), .align 4)
313 #define ALIGNDATA2 CHOICE(.align 2, .align ARG2(1,0x0), .align 2)
315 #define FILE(s) CHOICE(.file s, .file s, .file s)
316 #define STRING(s) CHOICE(.string s, .asciz s, .asciz s)
317 #define D_LONG CHOICE(.long, .long, .data4)
318 #define D_WORD CHOICE(.value, .short, .data2)
319 #define D_BYTE CHOICE(.byte, .byte, .data1)
320 #define SPACE CHOICE(.comm, .space, .space)
321 #define COMM CHOICE(.comm, .comm, .comm)
322 #define SEG_DATA CHOICE(.data, .data, .sect .data)
323 #define SEG_TEXT CHOICE(.text, .text, .sect .text)
324 #define SEG_BSS CHOICE(.bss, .bss, .sect .bss)
334 #define ADDR(a) CHOICE(CONCAT($,a), $a, a)
335 #define CONST(a) CHOICE(CONCAT($,a), $a, a)
338 #define CONTENT(a) CHOICE(a, a, (a)) /* take contents of variable */
339 #define REGIND(a) CHOICE((a), (a), (a)) /* Register a indirect */
341 #define REGOFF(a, b) CHOICE(a(b), a(b), a(b))
345 #define REGBID(b,i,d) CHOICE(d(b,i), d(b,i), d(b)(i))
347 #define REGBIS(b,i,s) CHOICE((b,i,s), (b,i,s), (b)(i*s))
349 #define REGBISD(b,i,s,d) CHOICE(d(b,i,s), d(b,i,s), d(b)(i*s))
351 #define REGDIS(d,i,s) CHOICE(d(,i,s), d(,i,s), d(i * s))
353 #define REGBI(b,i) CHOICE((b,i), (b,i), (b)(i))
355 #define REGDB(d,b) CHOICE(d(b), d(b), d(b))
357 #define VARINDIRECT(var) CHOICE(*var, *var, (var))
359 #define CODEPTR(reg) CHOICE(*reg, *reg, reg)
365 #define EXPR(a) CHOICE([a], (a), [a])
366 #define ENOT(a) CHOICE(0!a, ~a, ~a)
367 #define EMUL(a,b) CHOICE(a\*b, a*b, a*b)
368 #define EDIV(a,b) CHOICE(a\/b, a/b, a/b)
371 * We have to beat the problem of commas within arguments to choice.
372 * eg. choice (add a,b, add b,a) will get argument mismatch. Luckily ANSI
380 #define AAA CHOICE(aaa, aaa, aaa)
381 #define AAD CHOICE(aad, aad, aad)
382 #define AAM CHOICE(aam, aam, aam)
383 #define AAS CHOICE(aas, aas, aas)
384 #define ADC_L(a, b) CHOICE(adcl ARG2(a,b), adcl ARG2(a,b), _LTOG adc ARG2(b,a))
385 #define ADC_W(a, b) CHOICE(adcw ARG2(a,b), adcw ARG2(a,b), _WTOG adc ARG2(b,a))
386 #define ADC_B(a, b) CHOICE(adcb ARG2(a,b), adcb ARG2(a,b), adcb ARG2(b,a))
387 #define ADD_L(a, b) CHOICE(addl ARG2(a,b), addl ARG2(a,b), _LTOG add ARG2(b,a))
388 #define ADD_W(a, b) CHOICE(addw ARG2(a,b), addw ARG2(a,b), _WTOG add ARG2(b,a))
389 #define ADD_B(a, b) CHOICE(addb ARG2(a,b), addb ARG2(a,b), addb ARG2(b,a))
390 #define AND_L(a, b) CHOICE(andl ARG2(a,b), andl ARG2(a,b), _LTOG and ARG2(b,a))
391 #define AND_W(a, b) CHOICE(andw ARG2(a,b), andw ARG2(a,b), _WTOG and ARG2(b,a))
392 #define AND_B(a, b) CHOICE(andb ARG2(a,b), andb ARG2(a,b), andb ARG2(b,a))
393 #define ARPL(a,b) CHOICE(arpl ARG2(a,b), arpl ARG2(a,b), arpl ARG2(b,a))
394 #define BOUND_L(a, b) CHOICE(boundl ARG2(a,b), boundl ARG2(b,a), _LTOG bound ARG2(b,a))
395 #define BOUND_W(a, b) CHOICE(boundw ARG2(a,b), boundw ARG2(b,a), _WTOG bound ARG2(b,a))
396 #define BSF_L(a, b) CHOICE(bsfl ARG2(a,b), bsfl ARG2(a,b), _LTOG bsf ARG2(b,a))
397 #define BSF_W(a, b) CHOICE(bsfw ARG2(a,b), bsfw ARG2(a,b), _WTOG bsf ARG2(b,a))
398 #define BSR_L(a, b) CHOICE(bsrl ARG2(a,b), bsrl ARG2(a,b), _LTOG bsr ARG2(b,a))
399 #define BSR_W(a, b) CHOICE(bsrw ARG2(a,b), bsrw ARG2(a,b), _WTOG bsr ARG2(b,a))
400 #define BT_L(a, b) CHOICE(btl ARG2(a,b), btl ARG2(a,b), _LTOG bt ARG2(b,a))
401 #define BT_W(a, b) CHOICE(btw ARG2(a,b), btw ARG2(a,b), _WTOG bt ARG2(b,a))
402 #define BTC_L(a, b) CHOICE(btcl ARG2(a,b), btcl ARG2(a,b), _LTOG btc ARG2(b,a))
403 #define BTC_W(a, b) CHOICE(btcw ARG2(a,b), btcw ARG2(a,b), _WTOG btc ARG2(b,a))
404 #define BTR_L(a, b) CHOICE(btrl ARG2(a,b), btrl ARG2(a,b), _LTOG btr ARG2(b,a))
405 #define BTR_W(a, b) CHOICE(btrw ARG2(a,b), btrw ARG2(a,b), _WTOG btr ARG2(b,a))
406 #define BTS_L(a, b) CHOICE(btsl ARG2(a,b), btsl ARG2(a,b), _LTOG bts ARG2(b,a))
407 #define BTS_W(a, b) CHOICE(btsw ARG2(a,b), btsw ARG2(a,b), _WTOG bts ARG2(b,a))
408 #define CALL(a) CHOICE(call a, call a, call a)
409 #define CALLF(s,a) CHOICE(lcall ARG2(s,a), lcall ARG2(s,a), callf s:a)
410 #define CBW CHOICE(cbtw, cbw, cbw)
411 #define CWDE CHOICE(cwtd, cwde, cwde)
412 #define CLC CHOICE(clc, clc, clc)
413 #define CLD CHOICE(cld, cld, cld)
414 #define CLI CHOICE(cli, cli, cli)
415 #define CLTS CHOICE(clts, clts, clts)
416 #define CMC CHOICE(cmc, cmc, cmc)
417 #define CMP_L(a, b) CHOICE(cmpl ARG2(a,b), cmpl ARG2(a,b), _LTOG cmp ARG2(b,a))
418 #define CMP_W(a, b) CHOICE(cmpw ARG2(a,b), cmpw ARG2(a,b), _WTOG cmp ARG2(b,a))
419 #define CMP_B(a, b) CHOICE(cmpb ARG2(a,b), cmpb ARG2(a,b), cmpb ARG2(b,a))
420 #define CMPS_L CHOICE(cmpsl, cmpsl, _LTOG cmps)
421 #define CMPS_W CHOICE(cmpsw, cmpsw, _WTOG cmps)
422 #define CMPS_B CHOICE(cmpsb, cmpsb, cmpsb)
423 #define CWD CHOICE(cwtl, cwd, cwd)
424 #define CDQ CHOICE(cltd, cdq, cdq)
425 #define DAA CHOICE(daa, daa, daa)
426 #define DAS CHOICE(das, das, das)
427 #define DEC_L(a) CHOICE(decl a, decl a, _LTOG dec a)
428 #define DEC_W(a) CHOICE(decw a, decw a, _WTOG dec a)
429 #define DEC_B(a) CHOICE(decb a, decb a, decb a)
430 #define DIV_L(a) CHOICE(divl a, divl a, div a)
431 #define DIV_W(a) CHOICE(divw a, divw a, div a)
432 #define DIV_B(a) CHOICE(divb a, divb a, divb a)
433 #define ENTER(a,b) CHOICE(enter ARG2(a,b), enter ARG2(a,b), enter ARG2(b,a))
434 #define HLT CHOICE(hlt, hlt, hlt)
435 #define IDIV_L(a) CHOICE(idivl a, idivl a, _LTOG idiv a)
436 #define IDIV_W(a) CHOICE(idivw a, idivw a, _WTOG idiv a)
437 #define IDIV_B(a) CHOICE(idivb a, idivb a, idivb a)
439 #define IMUL_L(a, b) CHOICE(imull ARG2(a,b), imull ARG2(a,b), _LTOG imul ARG2(b,a))
440 #define IMUL_W(a, b) CHOICE(imulw ARG2(a,b), imulw ARG2(a,b), _WTOG imul ARG2(b,a))
441 #define IMUL_B(a) CHOICE(imulb a, imulb a, imulb a)
442 #define IN_L CHOICE(inl (DX), inl ARG2(DX,EAX), _LTOG in DX)
443 #define IN_W CHOICE(inw (DX), inw ARG2(DX,AX), _WTOG in DX)
444 #define IN_B CHOICE(inb (DX), inb ARG2(DX,AL), inb DX)
449 #define IN1_L(a) CHOICE(inl (a), inl ARG2(a,EAX), _LTOG in a)
450 #define IN1_W(a) CHOICE(inw (a), inw ARG2(a,AX), _WTOG in a)
451 #define IN1_B(a) CHOICE(inb (a), inb ARG2(a,AL), inb a)
453 #define IN1_L(a) CHOICE(inl a, inl ARG2(a,EAX), _LTOG in a)
454 #define IN1_W(a) CHOICE(inw a, inw ARG2(a,AX), _WTOG in a)
455 #define IN1_B(a) CHOICE(inb a, inb ARG2(a,AL), inb a)
457 #define INC_L(a) CHOICE(incl a, incl a, _LTOG inc a)
458 #define INC_W(a) CHOICE(incw a, incw a, _WTOG inc a)
459 #define INC_B(a) CHOICE(incb a, incb a, incb a)
460 #define INS_L CHOICE(insl, insl, _LTOG ins)
461 #define INS_W CHOICE(insw, insw, _WTOG ins)
462 #define INS_B CHOICE(insb, insb, insb)
463 #define INT(a) CHOICE(int a, int a, int a)
464 #define INT3 CHOICE(int CONST(3), int3, int CONST(3))
465 CHOICE(into, into, into)
466 #define IRET CHOICE(iret, iret, iret)
467 #define IRETD CHOICE(iret, iret, iretd)
468 #define JA(a) CHOICE(ja a, ja a, ja a)
469 #define JAE(a) CHOICE(jae a, jae a, jae a)
470 #define JB(a) CHOICE(jb a, jb a, jb a)
471 #define JBE(a) CHOICE(jbe a, jbe a, jbe a)
472 #define JC(a) CHOICE(jc a, jc a, jc a)
473 #define JE(a) CHOICE(je a, je a, je a)
474 #define JG(a) CHOICE(jg a, jg a, jg a)
475 #define JGE(a) CHOICE(jge a, jge a, jge a)
476 #define JL(a) CHOICE(jl a, jl a, jl a)
477 #define JLE(a) CHOICE(jle a, jle a, jle a)
478 #define JNA(a) CHOICE(jna a, jna a, jna a)
479 #define JNAE(a) CHOICE(jnae a, jnae a, jnae a)
480 #define JNB(a) CHOICE(jnb a, jnb a, jnb a)
481 #define JNBE(a) CHOICE(jnbe a, jnbe a, jnbe a)
482 #define JNC(a) CHOICE(jnc a, jnc a, jnc a)
483 #define JNE(a) CHOICE(jne a, jne a, jne a)
484 #define JNG(a) CHOICE(jng a, jng a, jng a)
485 #define JNGE(a) CHOICE(jnge a, jnge a, jnge a)
486 #define JNL(a) CHOICE(jnl a, jnl a, jnl a)
487 #define JNLE(a) CHOICE(jnle a, jnle a, jnle a)
488 #define JNO(a) CHOICE(jno a, jno a, jno a)
489 #define JNP(a) CHOICE(jnp a, jnp a, jnp a)
490 #define JNS(a) CHOICE(jns a, jns a, jns a)
491 #define JNZ(a) CHOICE(jnz a, jnz a, jnz a)
492 #define JO(a) CHOICE(jo a, jo a, jo a)
493 #define JP(a) CHOICE(jp a, jp a, jp a)
494 #define JPE(a) CHOICE(jpe a, jpe a, jpe a)
495 #define JPO(a) CHOICE(jpo a, jpo a, jpo a)
496 #define JS(a) CHOICE(js a, js a, js a)
497 #define JZ(a) CHOICE(jz a, jz a, jz a)
498 #define JMP(a) CHOICE(jmp a, jmp a, jmp a)
499 #define JMPF(s,a) CHOICE(ljmp ARG2(s,a), ljmp ARG2(s,a), jmpf s:a)
500 #define LAHF CHOICE(lahf, lahf, lahf)
502 #define LAR(a, b) CHOICE(lar ARG2(a, b), lar ARG2(a, b), lar ARG2(b, a))
504 #define LEA_L(a, b) CHOICE(leal ARG2(a,b), leal ARG2(a,b), _LTOG lea ARG2(b,a))
505 #define LEA_W(a, b) CHOICE(leaw ARG2(a,b), leaw ARG2(a,b), _WTOG lea ARG2(b,a))
506 #define LEAVE CHOICE(leave, leave, leave)
507 #define LGDT(a) CHOICE(lgdt a, lgdt a, lgdt a)
508 #define LIDT(a) CHOICE(lidt a, lidt a, lidt a)
509 #define LDS(a, b) CHOICE(ldsl ARG2(a,b), lds ARG2(a,b), lds ARG2(b,a))
510 #define LES(a, b) CHOICE(lesl ARG2(a,b), les ARG2(a,b), les ARG2(b,a))
511 #define LFS(a, b) CHOICE(lfsl ARG2(a,b), lfs ARG2(a,b), lfs ARG2(b,a))
512 #define LGS(a, b) CHOICE(lgsl ARG2(a,b), lgs ARG2(a,b), lgs ARG2(b,a))
513 #define LSS(a, b) CHOICE(lssl ARG2(a,b), lss ARG2(a,b), lss ARG2(b,a))
514 #define LLDT(a) CHOICE(lldt a, lldt a, lldt a)
515 #define LMSW(a) CHOICE(lmsw a, lmsw a, lmsw a)
516 #define LOCK CHOICE(lock, lock, lock)
517 #define LODS_L CHOICE(lodsl, lodsl, _LTOG lods)
518 #define LODS_W CHOICE(lodsw, lodsw, _WTOG lods)
519 #define LODS_B CHOICE(lodsb, lodsb, lodsb)
520 #define LOOP(a) CHOICE(loop a, loop a, loop a)
521 #define LOOPE(a) CHOICE(loope a, loope a, loope a)
522 #define LOOPZ(a) CHOICE(loopz a, loopz a, loopz a)
523 #define LOOPNE(a) CHOICE(loopne a, loopne a, loopne a)
524 #define LOOPNZ(a) CHOICE(loopnz a, loopnz a, loopnz a)
526 #define LSL(a, b) CHOICE(lsl ARG2(a,b), lsl ARG2(a,b), lsl ARG2(b,a))
528 #define LTR(a) CHOICE(ltr a, ltr a, ltr a)
529 #define MOV_SR(a, b) CHOICE(movw ARG2(a,b), mov ARG2(a,b), mov ARG2(b,a))
530 #define MOV_L(a, b) CHOICE(movl ARG2(a,b), movl ARG2(a,b), _LTOG mov ARG2(b,a))
531 #define MOV_W(a, b) CHOICE(movw ARG2(a,b), movw ARG2(a,b), _WTOG mov ARG2(b,a))
532 #define MOV_B(a, b) CHOICE(movb ARG2(a,b), movb ARG2(a,b), movb ARG2(b,a))
533 #define MOVS_L CHOICE(movsl, movsl, _LTOG movs)
534 #define MOVS_W CHOICE(movsw, movsw, _WTOG movs)
535 #define MOVS_B CHOICE(movsb, movsb, movsb)
536 #define MOVSX_BL(a, b) CHOICE(movsbl ARG2(a,b), movsbl ARG2(a,b), movsx ARG2(b,a))
537 #define MOVSX_BW(a, b) CHOICE(movsbw ARG2(a,b), movsbw ARG2(a,b), movsx ARG2(b,a))
538 #define MOVSX_WL(a, b) CHOICE(movswl ARG2(a,b), movswl ARG2(a,b), movsx ARG2(b,a))
539 #define MOVZX_BL(a, b) CHOICE(movzbl ARG2(a,b), movzbl ARG2(a,b), movzx ARG2(b,a))
540 #define MOVZX_BW(a, b) CHOICE(movzbw ARG2(a,b), movzbw ARG2(a,b), movzx ARG2(b,a))
541 #define MOVZX_WL(a, b) CHOICE(movzwl ARG2(a,b), movzwl ARG2(a,b), movzx ARG2(b,a))
542 #define MUL_L(a) CHOICE(mull a, mull a, _LTOG mul a)
543 #define MUL_W(a) CHOICE(mulw a, mulw a, _WTOG mul a)
544 #define MUL_B(a) CHOICE(mulb a, mulb a, mulb a)
545 #define NEG_L(a) CHOICE(negl a, negl a, _LTOG neg a)
546 #define NEG_W(a) CHOICE(negw a, negw a, _WTOG neg a)
547 #define NEG_B(a) CHOICE(negb a, negb a, negb a)
548 #define NOP CHOICE(nop, nop, nop)
549 #define NOT_L(a) CHOICE(notl a, notl a, _LTOG not a)
550 #define NOT_W(a) CHOICE(notw a, notw a, _WTOG not a)
551 #define NOT_B(a) CHOICE(notb a, notb a, notb a)
552 #define OR_L(a,b) CHOICE(orl ARG2(a,b), orl ARG2(a,b), _LTOG or ARG2(b,a))
553 #define OR_W(a,b) CHOICE(orw ARG2(a,b), orw ARG2(a,b), _WTOG or ARG2(b,a))
554 #define OR_B(a,b) CHOICE(orb ARG2(a,b), orb ARG2(a,b), orb ARG2(b,a))
555 #define OUT_L CHOICE(outl (DX), outl ARG2(EAX,DX), _LTOG out DX)
556 #define OUT_W CHOICE(outw (DX), outw ARG2(AX,DX), _WTOG out DX)
557 #define OUT_B CHOICE(outb (DX), outb ARG2(AL,DX), outb DX)
561 #define OUT1_L(a) CHOICE(outl (a), outl ARG2(EAX,a), _LTOG out a)
562 #define OUT1_W(a) CHOICE(outw (a), outw ARG2(AX,a), _WTOG out a)
563 #define OUT1_B(a) CHOICE(outb (a), outb ARG2(AL,a), outb a)
564 #define OUTS_L CHOICE(outsl, outsl, _LTOG outs)
565 #define OUTS_W CHOICE(outsw, outsw, _WTOG outs)
566 #define OUTS_B CHOICE(outsb, outsb, outsb)
567 #define POP_SR(a) CHOICE(pop a, pop a, pop a)
568 #define POP_L(a) CHOICE(popl a, popl a, _LTOG pop a)
569 #define POP_W(a) CHOICE(popw a, popw a, _WTOG pop a)
570 #define POPA_L CHOICE(popal, popal, _LTOG popa)
571 #define POPA_W CHOICE(popaw, popaw, _WTOG popa)
572 #define POPF_L CHOICE(popfl, popfl, _LTOG popf)
573 #define POPF_W CHOICE(popfw, popfw, _WTOG popf)
574 #define PUSH_SR(a) CHOICE(push a, push a, push a)
575 #define PUSH_L(a) CHOICE(pushl a, pushl a, _LTOG push a)
576 #define PUSH_W(a) CHOICE(pushw a, pushw a, _WTOG push a)
577 #define PUSH_B(a) CHOICE(push a, pushb a, push a)
578 #define PUSHA_L CHOICE(pushal, pushal, _LTOG pusha)
579 #define PUSHA_W CHOICE(pushaw, pushaw, _WTOG pusha)
580 #define PUSHF_L CHOICE(pushfl, pushfl, _LTOG pushf)
581 #define PUSHF_W CHOICE(pushfw, pushfw, _WTOG pushf)
582 #define RCL_L(a, b) CHOICE(rcll ARG2(a,b), rcll ARG2(a,b), _LTOG rcl ARG2(b,a))
583 #define RCL_W(a, b) CHOICE(rclw ARG2(a,b), rclw ARG2(a,b), _WTOG rcl ARG2(b,a))
584 #define RCL_B(a, b) CHOICE(rclb ARG2(a,b), rclb ARG2(a,b), rclb ARG2(b,a))
585 #define RCR_L(a, b) CHOICE(rcrl ARG2(a,b), rcrl ARG2(a,b), _LTOG rcr ARG2(b,a))
586 #define RCR_W(a, b) CHOICE(rcrw ARG2(a,b), rcrw ARG2(a,b), _WTOG rcr ARG2(b,a))
587 #define RCR_B(a, b) CHOICE(rcrb ARG2(a,b), rcrb ARG2(a,b), rcrb ARG2(b,a))
588 #define ROL_L(a, b) CHOICE(roll ARG2(a,b), roll ARG2(a,b), _LTOG rol ARG2(b,a))
589 #define ROL_W(a, b) CHOICE(rolw ARG2(a,b), rolw ARG2(a,b), _WTOG rol ARG2(b,a))
590 #define ROL_B(a, b) CHOICE(rolb ARG2(a,b), rolb ARG2(a,b), rolb ARG2(b,a))
591 #define ROR_L(a, b) CHOICE(rorl ARG2(a,b), rorl ARG2(a,b), _LTOG ror ARG2(b,a))
592 #define ROR_W(a, b) CHOICE(rorw ARG2(a,b), rorw ARG2(a,b), _WTOG ror ARG2(b,a))
593 #define ROR_B(a, b) CHOICE(rorb ARG2(a,b), rorb ARG2(a,b), rorb ARG2(b,a))
594 #define REP CHOICE(rep ;, rep ;, repe)
595 #define REPE CHOICE(repz ;, repe ;, repe)
596 #define REPNE CHOICE(repnz ;, repne ;, repne)
599 #define RET CHOICE(ret, ret, ret)
600 #define SAHF CHOICE(sahf, sahf, sahf)
601 #define SAL_L(a, b) CHOICE(sall ARG2(a,b), sall ARG2(a,b), _LTOG sal ARG2(b,a))
602 #define SAL_W(a, b) CHOICE(salw ARG2(a,b), salw ARG2(a,b), _WTOG sal ARG2(b,a))
603 #define SAL_B(a, b) CHOICE(salb ARG2(a,b), salb ARG2(a,b), salb ARG2(b,a))
604 #define SAR_L(a, b) CHOICE(sarl ARG2(a,b), sarl ARG2(a,b), _LTOG sar ARG2(b,a))
605 #define SAR_W(a, b) CHOICE(sarw ARG2(a,b), sarw ARG2(a,b), _WTOG sar ARG2(b,a))
606 #define SAR_B(a, b) CHOICE(sarb ARG2(a,b), sarb ARG2(a,b), sarb ARG2(b,a))
607 #define SBB_L(a, b) CHOICE(sbbl ARG2(a,b), sbbl ARG2(a,b), _LTOG sbb ARG2(b,a))
608 #define SBB_W(a, b) CHOICE(sbbw ARG2(a,b), sbbw ARG2(a,b), _WTOG sbb ARG2(b,a))
609 #define SBB_B(a, b) CHOICE(sbbb ARG2(a,b), sbbb ARG2(a,b), sbbb ARG2(b,a))
610 #define SCAS_L CHOICE(scasl, scasl, _LTOG scas)
611 #define SCAS_W CHOICE(scasw, scasw, _WTOG scas)
612 #define SCAS_B CHOICE(scasb, scasb, scasb)
613 #define SETA(a) CHOICE(seta a, seta a, seta a)
614 #define SETAE(a) CHOICE(setae a, setae a, setae a)
615 #define SETB(a) CHOICE(setb a, setb a, setb a)
616 #define SETBE(a) CHOICE(setbe a, setbe a, setbe a)
617 #define SETC(a) CHOICE(setc a, setb a, setb a)
618 #define SETE(a) CHOICE(sete a, sete a, sete a)
619 #define SETG(a) CHOICE(setg a, setg a, setg a)
620 #define SETGE(a) CHOICE(setge a, setge a, setge a)
621 #define SETL(a) CHOICE(setl a, setl a, setl a)
622 #define SETLE(a) CHOICE(setle a, setle a, setle a)
623 #define SETNA(a) CHOICE(setna a, setna a, setna a)
624 #define SETNAE(a) CHOICE(setnae a, setnae a, setnae a)
625 #define SETNB(a) CHOICE(setnb a, setnb a, setnb a)
626 #define SETNBE(a) CHOICE(setnbe a, setnbe a, setnbe a)
627 #define SETNC(a) CHOICE(setnc a, setnb a, setnb a)
628 #define SETNE(a) CHOICE(setne a, setne a, setne a)
629 #define SETNG(a) CHOICE(setng a, setng a, setng a)
630 #define SETNGE(a) CHOICE(setnge a, setnge a, setnge a)
631 #define SETNL(a) CHOICE(setnl a, setnl a, setnl a)
632 #define SETNLE(a) CHOICE(setnle a, setnle a, setnle a)
633 #define SETNO(a) CHOICE(setno a, setno a, setno a)
634 #define SETNP(a) CHOICE(setnp a, setnp a, setnp a)
635 #define SETNS(a) CHOICE(setns a, setns a, setna a)
636 #define SETNZ(a) CHOICE(setnz a, setnz a, setnz a)
637 #define SETO(a) CHOICE(seto a, seto a, seto a)
638 #define SETP(a) CHOICE(setp a, setp a, setp a)
639 #define SETPE(a) CHOICE(setpe a, setpe a, setpe a)
640 #define SETPO(a) CHOICE(setpo a, setpo a, setpo a)
641 #define SETS(a) CHOICE(sets a, sets a, seta a)
642 #define SETZ(a) CHOICE(setz a, setz a, setz a)
643 #define SGDT(a) CHOICE(sgdt a, sgdt a, sgdt a)
644 #define SIDT(a) CHOICE(sidt a, sidt a, sidt a)
645 #define SHL_L(a, b) CHOICE(shll ARG2(a,b), shll ARG2(a,b), _LTOG shl ARG2(b,a))
646 #define SHL_W(a, b) CHOICE(shlw ARG2(a,b), shlw ARG2(a,b), _WTOG shl ARG2(b,a))
647 #define SHL_B(a, b) CHOICE(shlb ARG2(a,b), shlb ARG2(a,b), shlb ARG2(b,a))
648 #define SHLD_L(a,b,c) CHOICE(shldl ARG3(a,b,c), shldl ARG3(a,b,c), _LTOG shld ARG3(c,b,a))
649 #define SHLD2_L(a,b) CHOICE(shldl ARG2(a,b), shldl ARG3(CL,a,b), _LTOG shld ARG3(b,a,CL))
650 #define SHLD_W(a,b,c) CHOICE(shldw ARG3(a,b,c), shldw ARG3(a,b,c), _WTOG shld ARG3(c,b,a))
651 #define SHLD2_W(a,b) CHOICE(shldw ARG2(a,b), shldw ARG3(CL,a,b), _WTOG shld ARG3(b,a,CL))
652 #define SHR_L(a, b) CHOICE(shrl ARG2(a,b), shrl ARG2(a,b), _LTOG shr ARG2(b,a))
653 #define SHR_W(a, b) CHOICE(shrw ARG2(a,b), shrw ARG2(a,b), _WTOG shr ARG2(b,a))
654 #define SHR_B(a, b) CHOICE(shrb ARG2(a,b), shrb ARG2(a,b), shrb ARG2(b,a))
655 #define SHRD_L(a,b,c) CHOICE(shrdl ARG3(a,b,c), shrdl ARG3(a,b,c), _LTOG shrd ARG3(c,b,a))
656 #define SHRD2_L(a,b) CHOICE(shrdl ARG2(a,b), shrdl ARG3(CL,a,b), _LTOG shrd ARG3(b,a,CL))
657 #define SHRD_W(a,b,c) CHOICE(shrdw ARG3(a,b,c), shrdw ARG3(a,b,c), _WTOG shrd ARG3(c,b,a))
658 #define SHRD2_W(a,b) CHOICE(shrdw ARG2(a,b), shrdw ARG3(CL,a,b), _WTOG shrd ARG3(b,a,CL))
659 #define SLDT(a) CHOICE(sldt a, sldt a, sldt a)
660 #define SMSW(a) CHOICE(smsw a, smsw a, smsw a)
661 #define STC CHOICE(stc, stc, stc)
662 #define STD CHOICE(std, std, std)
663 #define STI CHOICE(sti, sti, sti)
664 #define STOS_L CHOICE(stosl, stosl, _LTOG stos)
665 #define STOS_W CHOICE(stosw, stosw, _WTOG stos)
666 #define STOS_B CHOICE(stosb, stosb, stosb)
667 #define STR(a) CHOICE(str a, str a, str a)
668 #define SUB_L(a, b) CHOICE(subl ARG2(a,b), subl ARG2(a,b), _LTOG sub ARG2(b,a))
669 #define SUB_W(a, b) CHOICE(subw ARG2(a,b), subw ARG2(a,b), _WTOG sub ARG2(b,a))
670 #define SUB_B(a, b) CHOICE(subb ARG2(a,b), subb ARG2(a,b), subb ARG2(b,a))
671 #define TEST_L(a, b) CHOICE(testl ARG2(a,b), testl ARG2(a,b), _LTOG test ARG2(b,a))
672 #define TEST_W(a, b) CHOICE(testw ARG2(a,b), testw ARG2(a,b), _WTOG test ARG2(b,a))
673 #define TEST_B(a, b) CHOICE(testb ARG2(a,b), testb ARG2(a,b), testb ARG2(b,a))
674 #define VERR(a) CHOICE(verr a, verr a, verr a)
675 #define VERW(a) CHOICE(verw a, verw a, verw a)
676 #define WAIT CHOICE(wait, wait, wait)
677 #define XCHG_L(a, b) CHOICE(xchgl ARG2(a,b), xchgl ARG2(a,b), _LTOG xchg ARG2(b,a))
678 #define XCHG_W(a, b) CHOICE(xchgw ARG2(a,b), xchgw ARG2(a,b), _WTOG xchg ARG2(b,a))
679 #define XCHG_B(a, b) CHOICE(xchgb ARG2(a,b), xchgb ARG2(a,b), xchgb ARG2(b,a))
680 #define XLAT CHOICE(xlat, xlat, xlat)
681 #define XOR_L(a, b) CHOICE(xorl ARG2(a,b), xorl ARG2(a,b), _LTOG xor ARG2(b,a))
682 #define XOR_W(a, b) CHOICE(xorw ARG2(a,b), xorw ARG2(a,b), _WTOG xor ARG2(b,a))
683 #define XOR_B(a, b) CHOICE(xorb ARG2(a,b), xorb ARG2(a,b), xorb ARG2(b,a))
687 #define F2XM1 CHOICE(f2xm1, f2xm1, f2xm1)
688 #define FABS CHOICE(fabs, fabs, fabs)
689 #define FADD_D(a) CHOICE(faddl a, faddl a, faddd a)
690 #define FADD_S(a) CHOICE(fadds a, fadds a, fadds a)
691 #define FADD2(a, b) CHOICE(fadd ARG2(a,b), fadd ARG2(a,b), fadd ARG2(b,a))
692 #define FADDP(a, b) CHOICE(faddp ARG2(a,b), faddp ARG2(a,b), faddp ARG2(b,a))
693 #define FIADD_L(a) CHOICE(fiaddl a, fiaddl a, fiaddl a)
694 #define FIADD_W(a) CHOICE(fiadd a, fiadds a, fiadds a)
695 #define FBLD(a) CHOICE(fbld a, fbld a, fbld a)
696 #define FBSTP(a) CHOICE(fbstp a, fbstp a, fbstp a)
697 #define FCHS CHOICE(fchs, fchs, fchs)
698 #define FCLEX CHOICE(fclex, wait; fnclex, wait; fclex)
699 #define FNCLEX CHOICE(fnclex, fnclex, fclex)
700 #define FCOM(a) CHOICE(fcom a, fcom a, fcom a)
701 #define FCOM_D(a) CHOICE(fcoml a, fcoml a, fcomd a)
702 #define FCOM_S(a) CHOICE(fcoms a, fcoms a, fcoms a)
703 #define FCOMP(a) CHOICE(fcomp a, fcomp a, fcomp a)
704 #define FCOMP_D(a) CHOICE(fcompl a, fcompl a, fcompd a)
705 #define FCOMP_S(a) CHOICE(fcomps a, fcomps a, fcomps a)
706 #define FCOMPP CHOICE(fcompp, fcompp, fcompp)
707 #define FCOS CHOICE(fcos, fcos, fcos)
708 #define FDECSTP CHOICE(fdecstp, fdecstp, fdecstp)
709 #define FDIV_D(a) CHOICE(fdivl a, fdivl a, fdivd a)
710 #define FDIV_S(a) CHOICE(fdivs a, fdivs a, fdivs a)
711 #define FDIV2(a, b) CHOICE(fdiv ARG2(a,b), fdiv ARG2(a,b), fdiv ARG2(b,a))
712 #define FDIVP(a, b) CHOICE(fdivp ARG2(a,b), fdivp ARG2(a,b), fdivp ARG2(b,a))
713 #define FIDIV_L(a) CHOICE(fidivl a, fidivl a, fidivl a)
714 #define FIDIV_W(a) CHOICE(fidiv a, fidivs a, fidivs a)
715 #define FDIVR_D(a) CHOICE(fdivrl a, fdivrl a, fdivrd a)
716 #define FDIVR_S(a) CHOICE(fdivrs a, fdivrs a, fdivrs a)
717 #define FDIVR2(a, b) CHOICE(fdivr ARG2(a,b), fdivr ARG2(a,b), fdivr ARG2(b,a))
718 #define FDIVRP(a, b) CHOICE(fdivrp ARG2(a,b), fdivrp ARG2(a,b), fdivrp ARG2(b,a))
719 #define FIDIVR_L(a) CHOICE(fidivrl a, fidivrl a, fidivrl a)
720 #define FIDIVR_W(a) CHOICE(fidivr a, fidivrs a, fidivrs a)
721 #define FFREE(a) CHOICE(ffree a, ffree a, ffree a)
722 #define FICOM_L(a) CHOICE(ficoml a, ficoml a, ficoml a)
723 #define FICOM_W(a) CHOICE(ficom a, ficoms a, ficoms a)
724 #define FICOMP_L(a) CHOICE(ficompl a, ficompl a, ficompl a)
725 #define FICOMP_W(a) CHOICE(ficomp a, ficomps a, ficomps a)
726 #define FILD_Q(a) CHOICE(fildll a, fildq a, fildq a)
727 #define FILD_L(a) CHOICE(fildl a, fildl a, fildl a)
728 #define FILD_W(a) CHOICE(fild a, filds a, filds a)
729 #define FINCSTP CHOICE(fincstp, fincstp, fincstp)
730 #define FINIT CHOICE(finit, wait; fninit, wait; finit)
731 #define FNINIT CHOICE(fninit, fninit, finit)
732 #define FIST_L(a) CHOICE(fistl a, fistl a, fistl a)
733 #define FIST_W(a) CHOICE(fist a, fists a, fists a)
734 #define FISTP_Q(a) CHOICE(fistpll a, fistpq a, fistpq a)
735 #define FISTP_L(a) CHOICE(fistpl a, fistpl a, fistpl a)
736 #define FISTP_W(a) CHOICE(fistp a, fistps a, fistps a)
737 #define FLD_X(a) CHOICE(fldt a, fldt a, fldx a) /* 80 bit data type! */
738 #define FLD_D(a) CHOICE(fldl a, fldl a, fldd a)
739 #define FLD_S(a) CHOICE(flds a, flds a, flds a)
740 #define FLD1 CHOICE(fld1, fld1, fld1)
741 #define FLDL2T CHOICE(fldl2t, fldl2t, fldl2t)
742 #define FLDL2E CHOICE(fldl2e, fldl2e, fldl2e)
743 #define FLDPI CHOICE(fldpi, fldpi, fldpi)
744 #define FLDLG2 CHOICE(fldlg2, fldlg2, fldlg2)
745 #define FLDLN2 CHOICE(fldln2, fldln2, fldln2)
746 #define FLDZ CHOICE(fldz, fldz, fldz)
747 #define FLDCW(a) CHOICE(fldcw a, fldcw a, fldcw a)
748 #define FLDENV(a) CHOICE(fldenv a, fldenv a, fldenv a)
749 #define FMUL_S(a) CHOICE(fmuls a, fmuls a, fmuls a)
750 #define FMUL_D(a) CHOICE(fmull a, fmull a, fmuld a)
751 #define FMUL2(a, b) CHOICE(fmul ARG2(a,b), fmul ARG2(a,b), fmul ARG2(b,a))
752 #define FMULP(a, b) CHOICE(fmulp ARG2(a,b), fmulp ARG2(a,b), fmulp ARG2(b,a))
753 #define FIMUL_L(a) CHOICE(fimull a, fimull a, fimull a)
754 #define FIMUL_W(a) CHOICE(fimul a, fimuls a, fimuls a)
755 #define FNOP CHOICE(fnop, fnop, fnop)
756 #define FPATAN CHOICE(fpatan, fpatan, fpatan)
757 CHOICE(fprem, fprem, fprem)
758 #define FPREM1 CHOICE(fprem1, fprem1, fprem1)
759 #define FPTAN CHOICE(fptan, fptan, fptan)
760 #define FRNDINT CHOICE(frndint, frndint, frndint)
761 #define FRSTOR(a) CHOICE(frstor a, frstor a, frstor a)
762 #define FSAVE(a) CHOICE(fsave a, wait; fnsave a, wait; fsave a)
763 #define FNSAVE(a) CHOICE(fnsave a, fnsave a, fsave a)
764 #define FSCALE CHOICE(fscale, fscale, fscale)
765 #define FSIN CHOICE(fsin, fsin, fsin)
766 #define FSINCOS CHOICE(fsincos, fsincos, fsincos)
767 #define FSQRT CHOICE(fsqrt, fsqrt, fsqrt)
768 #define FST_D(a) CHOICE(fstl a, fstl a, fstd a)
769 #define FST_S(a) CHOICE(fsts a, fsts a, fsts a)
770 #define FSTP_X(a) CHOICE(fstpt a, fstpt a, fstpx a)
771 #define FSTP_D(a) CHOICE(fstpl a, fstpl a, fstpd a)
772 #define FSTP_S(a) CHOICE(fstps a, fstps a, fstps a)
773 #define FSTP(a) CHOICE(fstp a, fstp a, fstp a)
774 #define FSTCW(a) CHOICE(fstcw a, wait; fnstcw a, wait; fstcw a)
775 #define FNSTCW(a) CHOICE(fnstcw a, fnstcw a, fstcw a)
776 #define FSTENV(a) CHOICE(fstenv a, wait; fnstenv a, fstenv a)
777 #define FNSTENV(a) CHOICE(fnstenv a, fnstenv a, fstenv a)
778 #define FSTSW(a) CHOICE(fstsw a, wait; fnstsw a, wait; fstsw a)
779 #define FNSTSW(a) CHOICE(fnstsw a, fnstsw a, fstsw a)
780 #define FSUB_S(a) CHOICE(fsubs a, fsubs a, fsubs a)
781 #define FSUB_D(a) CHOICE(fsubl a, fsubl a, fsubd a)
782 #define FSUB2(a, b) CHOICE(fsub ARG2(a,b), fsub ARG2(a,b), fsub ARG2(b,a))
783 #define FSUBP(a, b) CHOICE(fsubp ARG2(a,b), fsubp ARG2(a,b), fsubp ARG2(b,a))
784 #define FISUB_L(a) CHOICE(fisubl a, fisubl a, fisubl a)
785 #define FISUB_W(a) CHOICE(fisub a, fisubs a, fisubs a)
786 #define FSUBR_S(a) CHOICE(fsubrs a, fsubrs a, fsubrs a)
787 #define FSUBR_D(a) CHOICE(fsubrl a, fsubrl a, fsubrd a)
788 #define FSUBR2(a, b) CHOICE(fsubr ARG2(a,b), fsubr ARG2(a,b), fsubr ARG2(b,a))
789 #define FSUBRP(a, b) CHOICE(fsubrp ARG2(a,b), fsubrp ARG2(a,b), fsubrp ARG2(b,a))
790 #define FISUBR_L(a) CHOICE(fisubrl a, fisubrl a, fisubrl a)
791 #define FISUBR_W(a) CHOICE(fisubr a, fisubrs a, fisubrs a)
792 #define FTST CHOICE(ftst, ftst, ftst)
793 #define FUCOM(a) CHOICE(fucom a, fucom a, fucom a)
794 #define FUCOMP(a) CHOICE(fucomp a, fucomp a, fucomp a)
795 #define FUCOMPP CHOICE(fucompp, fucompp, fucompp)
796 #define FWAIT CHOICE(wait, wait, wait)
797 #define FXAM CHOICE(fxam, fxam, fxam)
798 #define FXCH(a) CHOICE(fxch a, fxch a, fxch a)
799 #define FXTRACT CHOICE(fxtract, fxtract, fxtract)
800 #define FYL2X CHOICE(fyl2x, fyl2x, fyl2x)
801 #define FYL2XP1 CHOICE(fyl2xp1, fyl2xp1, fyl2xp1)
804 #define CPUID CHOICE(D_BYTE ARG2(15, 162), cpuid, D_BYTE ARG2(15, 162))
805 #define RDTSC CHOICE(D_BYTE ARG2(15, 49), rdtsc, D_BYTE ARG2(15, 49))