Lines Matching +full:- +full:n
83 #include "test-i386.h"
86 #include "test-i386.h"
89 #include "test-i386.h"
92 #include "test-i386.h"
95 #include "test-i386.h"
98 #include "test-i386.h"
102 #include "test-i386.h"
106 #include "test-i386.h"
111 #include "test-i386.h"
116 #include "test-i386.h"
121 #include "test-i386.h"
126 #include "test-i386.h"
132 #include "test-i386-shift.h"
135 #include "test-i386-shift.h"
138 #include "test-i386-shift.h"
141 #include "test-i386-shift.h"
144 #include "test-i386-shift.h"
148 #include "test-i386-shift.h"
152 #include "test-i386-shift.h"
157 #include "test-i386-shift.h"
162 #include "test-i386-shift.h"
170 #include "test-i386-shift.h"
174 #include "test-i386-shift.h"
178 #include "test-i386-shift.h"
182 #include "test-i386-shift.h"
190 printf("lea %s = " FMTLX "\n", STR, res);\
198 printf("lea %s = " FMTLX "\n", STR, res);\
206 printf("lea %s = %08lx\n", STR, res);\
266 TEST_LEA("-10(%%ecx, %%ecx, 2)"); in test_lea()
267 TEST_LEA("-10(%%edx, %%ecx, 4)"); in test_lea()
268 TEST_LEA("-10(%%esi, %%ecx, 8)"); in test_lea()
322 TEST_LEAQ("-10(%%rcx, %%rcx, 2)"); in test_lea()
323 TEST_LEAQ("-10(%%rdx, %%rcx, 4)"); in test_lea()
324 TEST_LEAQ("-10(%%rsi, %%rcx, 8)"); in test_lea()
352 asm("movl $1, %0\n\t"\
353 "cmpl %2, %1\n\t"\
354 "j" JCC " 1f\n\t"\
355 "movl $0, %0\n\t"\
356 "1:\n\t"\
359 printf("%-10s %d\n", "j" JCC, res);\
361 asm("movl $0, %0\n\t"\
362 "cmpl %2, %1\n\t"\
363 "set" JCC " %b0\n\t"\
366 printf("%-10s %d\n", "set" JCC, res);\
371 asm("cmpl %2, %1\n\t"\
372 "cmov" JCC "q %3, %0\n\t"\
375 printf("%-10s R=" FMTLX "\n", "cmov" JCC "q", res);)\
376 asm("cmpl %2, %1\n\t"\
377 "cmov" JCC "l %k3, %k0\n\t"\
380 printf("%-10s R=" FMTLX "\n", "cmov" JCC "l", res);\
381 asm("cmpl %2, %1\n\t"\
382 "cmov" JCC "w %w3, %w0\n\t"\
385 printf("%-10s R=" FMTLX "\n", "cmov" JCC "w", res);\
400 TEST_JCC("l", 1, -1); in test_jcc()
404 TEST_JCC("le", 1, -1); in test_jcc()
408 TEST_JCC("ge", -1, 1); in test_jcc()
412 TEST_JCC("g", 1, -1); in test_jcc()
416 TEST_JCC("b", 1, -1); in test_jcc()
420 TEST_JCC("be", 1, -1); in test_jcc()
424 TEST_JCC("ae", 1, -1); in test_jcc()
428 TEST_JCC("a", 1, -1); in test_jcc()
438 TEST_JCC("o", 0x7fffffff, -1); in test_jcc()
441 TEST_JCC("no", 0x7fffffff, -1); in test_jcc()
444 TEST_JCC("s", 0, -1); in test_jcc()
448 TEST_JCC("ns", 0, -1); in test_jcc()
457 asm("test %2, %2\n\t"\
458 "movl $1, %0\n\t"\
459 insn " 1f\n\t" \
460 "movl $0, %0\n\t"\
461 "1:\n\t"\
464 printf("%-10s ECX=" FMTLX " ZF=%ld r=%d\n", insn, ecx, zf, res); \
505 #include "test-i386-muldiv.h"
508 #include "test-i386-muldiv.h"
517 asm volatile ("push %4\n\t" in test_imulw2()
518 "popf\n\t" in test_imulw2()
519 "imulw %w2, %w0\n\t" in test_imulw2()
520 "pushf\n\t" in test_imulw2()
521 "pop %1\n\t" in test_imulw2()
524 printf("%-10s A=" FMTLX " B=" FMTLX " R=" FMTLX " CC=%04lx\n", in test_imulw2()
535 asm volatile ("push %4\n\t" in test_imull2()
536 "popf\n\t" in test_imull2()
537 "imull %k2, %k0\n\t" in test_imull2()
538 "pushf\n\t" in test_imull2()
539 "pop %1\n\t" in test_imull2()
542 printf("%-10s A=" FMTLX " B=" FMTLX " R=" FMTLX " CC=%04lx\n", in test_imull2()
554 asm volatile ("push %4\n\t" in test_imulq2()
555 "popf\n\t" in test_imulq2()
556 "imulq %2, %0\n\t" in test_imulq2()
557 "pushf\n\t" in test_imulq2()
558 "pop %1\n\t" in test_imulq2()
561 printf("%-10s A=" FMTLX " B=" FMTLX " R=" FMTLX " CC=%04lx\n", in test_imulq2()
572 asm volatile ("push %3\n\t"\
573 "popf\n\t"\
574 "imul" size " $" #op0 ", %" rsize "2, %" rsize "0\n\t" \
575 "pushf\n\t"\
576 "pop %1\n\t"\
579 printf("%-10s A=" FMTLX " B=" FMTLX " R=" FMTLX " CC=%04lx\n",\
588 #include "test-i386-muldiv.h"
591 #include "test-i386-muldiv.h"
596 test_imulb(3, -4); in test_mul()
601 test_imulw(0, 23, -45); in test_mul()
606 test_imull(0, 23, -45); in test_mul()
611 test_mulb(3, -4); in test_mul()
616 test_mulw(0, 23, -45); in test_mul()
621 test_mull(0, 23, -45); in test_mul()
626 test_imulw2(23, -45); in test_mul()
631 test_imull2(23, -45); in test_mul()
636 TEST_IMUL_IM("w", "w", -45, 23); in test_mul()
641 TEST_IMUL_IM("l", "k", -45, 23); in test_mul()
646 test_idivb(0x43210123, -5); in test_mul()
647 test_idivb(0x12340004, -1); in test_mul()
650 test_idivw(0, -23223, -45); in test_mul()
651 test_idivw(0, 0x12348000, -1); in test_mul()
655 test_idivl(0, -233223, -45); in test_mul()
656 test_idivl(0, 0x80000000, -1); in test_mul()
660 test_divb(0x43210123, -5); in test_mul()
661 test_divb(0x12340004, -1); in test_mul()
664 test_divw(0, -23223, -45); in test_mul()
665 test_divw(0, 0x12348000, -1); in test_mul()
669 test_divl(0, -233223, -45); in test_mul()
670 test_divl(0, 0x80000000, -1); in test_mul()
675 test_imulq(0, 23, -45); in test_mul()
680 test_mulq(0, 23, -45); in test_mul()
685 test_imulq2(23, -45); in test_mul()
690 TEST_IMUL_IM("q", "", -45, 23); in test_mul()
695 test_idivq(0, -233223, -45); in test_mul()
696 test_idivq(0, 0x8000000000000000, -1); in test_mul()
700 test_divq(0, -233223, -45); in test_mul()
701 test_divq(0, 0x8000000000000000, -1); in test_mul()
710 asm("xor %1, %1\n"\
711 "mov $0x12345678, %0\n"\
715 printf("%-10s A=" FMTLX " R=" FMTLX " %ld\n", #op, val, res, resz);\
772 printf("a=%f b=%f a+b=%f\n", a, b, a + b); in test_fops()
773 printf("a=%f b=%f a-b=%f\n", a, b, a - b); in test_fops()
774 printf("a=%f b=%f a*b=%f\n", a, b, a * b); in test_fops()
775 printf("a=%f b=%f a/b=%f\n", a, b, a / b); in test_fops()
776 printf("a=%f b=%f fmod(a, b)=%f\n", a, b, fmod(a, b)); in test_fops()
777 printf("a=%f sqrt(a)=%f\n", a, sqrt(a)); in test_fops()
778 printf("a=%f sin(a)=%f\n", a, sin(a)); in test_fops()
779 printf("a=%f cos(a)=%f\n", a, cos(a)); in test_fops()
780 printf("a=%f tan(a)=%f\n", a, tan(a)); in test_fops()
781 printf("a=%f log(a)=%f\n", a, log(a)); in test_fops()
782 printf("a=%f exp(a)=%f\n", a, exp(a)); in test_fops()
783 printf("a=%f b=%f atan2(a, b)=%f\n", a, b, atan2(a, b)); in test_fops()
785 printf("a=%f asin(sin(a))=%f\n", a, asin(sin(a))); in test_fops()
786 printf("a=%f acos(cos(a))=%f\n", a, acos(cos(a))); in test_fops()
787 printf("a=%f atan(tan(a))=%f\n", a, atan(tan(a))); in test_fops()
804 asm volatile ("fnstenv %0\n" : "=m" (float_env32)); in fpu_clear_exceptions()
806 asm volatile ("fldenv %0\n" : : "m" (float_env32)); in fpu_clear_exceptions()
818 asm("fcom %2\n" in test_fcmp()
819 "fstsw %%ax\n" in test_fcmp()
822 printf("fcom(%f %f)=%04lx\n", in test_fcmp()
825 asm("fucom %2\n" in test_fcmp()
826 "fstsw %%ax\n" in test_fcmp()
829 printf("fucom(%f %f)=%04lx\n", in test_fcmp()
834 asm("fcomi %3, %2\n" in test_fcmp()
835 "fstsw %%ax\n" in test_fcmp()
836 "pushf\n" in test_fcmp()
837 "pop %0\n" in test_fcmp()
840 printf("fcomi(%f %f)=%04lx %02lx\n", in test_fcmp()
843 asm("fucomi %3, %2\n" in test_fcmp()
844 "fstsw %%ax\n" in test_fcmp()
845 "pushf\n" in test_fcmp()
846 "pop %0\n" in test_fcmp()
849 printf("fucomi(%f %f)=%04lx %02lx\n", in test_fcmp()
853 asm volatile("fxam\n" in test_fcmp()
854 "fstsw %%ax\n" in test_fcmp()
857 printf("fxam(%f)=%04lx\n", a, fpus & 0x4700); in test_fcmp()
874 printf("(float)%f = %f\n", a, fa); in test_fcvt()
875 printf("(long double)%f = %Lf\n", a, la); in test_fcvt()
876 printf("a=" FMT64X "\n", *(uint64_t *)&a); in test_fcvt()
877 printf("la=" FMT64X " %04x\n", *(uint64_t *)&la, in test_fcvt()
891 printf("(short)a = %d\n", wa); in test_fcvt()
892 printf("(int)a = %d\n", ia); in test_fcvt()
893 printf("(int64_t)a = " FMT64X "\n", lla); in test_fcvt()
894 printf("rint(a) = %f\n", ra); in test_fcvt()
898 #define TEST(N) \ argument
899 asm("fld" #N : "=t" (a)); \
900 printf("fld" #N "= %f\n", a);
921 printf("a=%f bcd=%04x%04x%04x%04x%04x b=%f\n", in test_fbcd()
930 asm volatile (save " %0\n" : : "m" (*(env)));\
931 asm volatile (restore " %0\n": : "m" (*(env)));\
935 printf("res[%d]=%f\n", i, rtab[i]);\
936 printf("fpuc=%04x fpus=%04x fptag=%04x\n",\
937 (env)->fpuc,\
938 (env)->fpus & 0xff00,\
939 (env)->fptag);\
977 asm volatile ("fnstenv %0\n" : : "m" (float_env32)); in test_fenv()
979 printf("fptag=%04x\n", float_env32.fptag); in test_fenv()
986 asm("push %3\n"\
987 "popf\n"\
988 "fcmov" CC " %2, %0\n"\
991 printf("fcmov%s eflags=0x%04lx-> %f\n", \
1024 test_fops(1.4, -5); in test_floats()
1025 test_fcmp(2, -1); in test_floats()
1029 test_fcmp(q_nan.d, -1); in test_floats()
1030 test_fcmp(-1.0/0.0, -1); in test_floats()
1031 test_fcmp(1.0/0.0, -1); in test_floats()
1033 test_fcvt(-0.5); in test_floats()
1035 test_fcvt(-1.0/9.0); in test_floats()
1037 test_fcvt(-1e20); in test_floats()
1038 test_fcvt(-1.0/0.0); in test_floats()
1043 test_fbcd(-123451234567890.0); in test_floats()
1058 asm ("push %3\n\t"\
1059 "popf\n\t"\
1060 #op "\n\t"\
1061 "pushf\n\t"\
1062 "pop %1\n\t"\
1065 printf("%-10s A=%08x R=%08x CCIN=%04x CC=%04x\n",\
1130 printf("%-10s A=" FMTLX " B=" FMTLX "\n",\
1143 printf("%-10s EAX=" FMTLX " A=" FMTLX " C=" FMTLX "\n",\
1174 printf("xaddl same res=%08x\n", res); in test_xchg()
1226 asm("cmpxchg8b %2\n" in test_xchg()
1227 "pushf\n" in test_xchg()
1228 "pop %3\n" in test_xchg()
1231 printf("cmpxchg8b: eax=" FMTLX " edx=" FMTLX " op1=" FMT64X " CC=%02lx\n", in test_xchg()
1255 #define MK_SEL(n) (((n) << 3) | 7) argument
1265 asm (op " %" size "2, %" size "0\n" \
1266 "movl $0, %1\n"\
1267 "jnz 1f\n"\
1268 "movl $1, %1\n"\
1269 "1:\n"\
1271 printf(op ": Z=%d %08x\n", res2, res & ~(mask));\
1279 asm volatile(op " %" size "3, %" size "0\n"\
1280 "movl $0,%1\n"\
1281 "jnz 1f\n"\
1282 "movl $1,%1\n"\
1283 "1:\n"\
1285 printf(op size " A=" FMTLX " B=" FMTLX " R=" FMTLX " z=%ld\n",\
1328 printf("%d: %016Lx\n", i, ldt_table[i]); in test_segs()
1338 printf("FS[1] = %02x\n", res); in test_segs()
1340 asm volatile ("pushl %%gs\n" in test_segs()
1341 "movl %1, %%gs\n" in test_segs()
1342 "gs movzbl 0x1, %0\n" in test_segs()
1343 "popl %%gs\n" in test_segs()
1346 printf("GS[1] = %02x\n", res); in test_segs()
1350 asm volatile ("pushl %%ebp\n\t" in test_segs()
1351 "pushl %%ds\n\t" in test_segs()
1352 "movl %2, %%ds\n\t" in test_segs()
1353 "movl %3, %%ebp\n\t" in test_segs()
1354 "movzbl 0x1, %0\n\t" in test_segs()
1355 "movzbl (%%ebp), %1\n\t" in test_segs()
1356 "popl %%ds\n\t" in test_segs()
1357 "popl %%ebp\n\t" in test_segs()
1360 printf("DS[1] = %02x\n", res); in test_segs()
1361 printf("SS[tmp] = %02x\n", res2); in test_segs()
1365 asm volatile("lfs %2, %0\n\t" in test_segs()
1366 "movl %%fs, %1\n\t" in test_segs()
1369 printf("FS:reg = %04x:%08x\n", res2, res); in test_segs()
1400 ldt.limit = &code16_end - &code16_start; in test_code16()
1413 printf("func1() = 0x%08x\n", res); in test_code16()
1417 printf("func2() = 0x%08x spdec=%d\n", res, res2); in test_code16()
1421 printf("func3() = 0x%08x\n", res); in test_code16()
1426 asm(".globl func_lret\n"
1427 "func_lret:\n"
1428 "movl $0x87654641, %eax\n"
1429 "lretq\n");
1431 asm(".globl func_lret\n"
1432 "func_lret:\n"
1433 "movl $0x87654321, %eax\n"
1434 "lret\n"
1436 ".globl func_iret\n"
1437 "func_iret:\n"
1438 "movl $0xabcd4321, %eax\n"
1439 "iret\n");
1450 for(i=0;i<256;i++) table[i] = 256 - i; in test_misc()
1453 printf("xlat: EAX=" FMTLX "\n", res); in test_misc()
1469 asm volatile ("push %1\n" in test_misc()
1470 "call func_lret\n" in test_misc()
1473 printf("func_lret=" FMTLX "\n", res); in test_misc()
1478 asm volatile ("xor %%rax, %%rax\n" in test_misc()
1479 "rex64 lcall *(%%rcx)\n" in test_misc()
1483 printf("func_lret2=" FMTLX "\n", res); in test_misc()
1485 asm volatile ("push %2\n" in test_misc()
1486 "mov $ 1f, %%rax\n" in test_misc()
1487 "push %%rax\n" in test_misc()
1488 "rex64 ljmp *(%%rcx)\n" in test_misc()
1489 "1:\n" in test_misc()
1493 printf("func_lret3=" FMTLX "\n", res); in test_misc()
1500 printf("func_lret=" FMTLX "\n", res); in test_misc()
1505 printf("func_iret=" FMTLX "\n", res); in test_misc()
1512 printf("popl esp=" FMTLX "\n", res); in test_misc()
1517 printf("popl esp=" FMTLX "\n", res); in test_misc()
1522 printf("popw esp=" FMTLX "\n", res); in test_misc()
1537 asm volatile ("push $0\n\t"\
1538 "popf\n\t"\
1539 DF "\n\t"\
1540 REP #OP size "\n\t"\
1541 "cld\n\t"\
1542 "pushf\n\t"\
1543 "pop %4\n\t"\
1546 printf("%-10s ESI=" FMTLX " EDI=" FMTLX " EAX=" FMTLX " ECX=" FMTLX " EFL=%04x\n",\
1598 r->esp = (r->esp & ~0xffff) | ((r->esp - 2) & 0xffff); in pushw()
1599 *(uint16_t *)seg_to_linear(r->ss, r->esp) = val; in pushw()
1622 MAP_FIXED | MAP_ANON | MAP_PRIVATE, -1, 0); in test_vm86()
1631 r->eip = VM86_CODE_IP; in test_vm86()
1632 r->esp = 0xfffe; in test_vm86()
1634 r->cs = seg; in test_vm86()
1635 r->ss = seg; in test_vm86()
1636 r->ds = seg; in test_vm86()
1637 r->es = seg; in test_vm86()
1638 r->fs = seg; in test_vm86()
1639 r->gs = seg; in test_vm86()
1640 r->eflags = VIF_MASK; in test_vm86()
1645 &vm86_code_start, &vm86_code_end - &vm86_code_start); in test_vm86()
1660 ah = (r->eax >> 8) & 0xff; in test_vm86()
1666 uint8_t c = r->edx; in test_vm86()
1673 ptr = seg_to_linear(r->ds, r->edx); in test_vm86()
1680 r->eax = (r->eax & ~0xff) | '$'; in test_vm86()
1684 v = (int)r->edx; in test_vm86()
1688 printf("%08x\n", v); in test_vm86()
1692 printf("unsupported int 0x%02x\n", int_num); in test_vm86()
1703 printf("ERROR: unhandled vm86 return code (0x%x)\n", ret); in test_vm86()
1708 printf("VM86 end\n"); in test_vm86()
1742 info->si_signo, info->si_errno, info->si_code); in sig_handler()
1744 (unsigned long)info->si_addr); in sig_handler()
1745 printf("\n"); in sig_handler()
1748 (long)uc->uc_mcontext.gregs[REG_TRAPNO], in sig_handler()
1749 (long)uc->uc_mcontext.gregs[REG_ERR]); in sig_handler()
1750 printf(" EIP=" FMTLX, (long)uc->uc_mcontext.gregs[REG_EIP]); in sig_handler()
1751 printf("\n"); in sig_handler()
1770 printf("DIVZ exception:\n"); in test_exceptions()
1778 printf("BOUND exception:\n"); in test_exceptions()
1788 printf("segment exceptions:\n"); in test_exceptions()
1821 printf("PF exception:\n"); in test_exceptions()
1831 printf("PF exception:\n"); in test_exceptions()
1839 printf("UD2 exception:\n"); in test_exceptions()
1844 printf("lock nop exception:\n"); in test_exceptions()
1850 printf("INT exception:\n"); in test_exceptions()
1867 printf("INT3 exception:\n"); in test_exceptions()
1872 printf("CLI exception:\n"); in test_exceptions()
1877 printf("STI exception:\n"); in test_exceptions()
1883 printf("INTO exception:\n"); in test_exceptions()
1890 printf("OUTB exception:\n"); in test_exceptions()
1895 printf("INB exception:\n"); in test_exceptions()
1900 printf("REP OUTSB exception:\n"); in test_exceptions()
1905 printf("REP INSB exception:\n"); in test_exceptions()
1910 printf("HLT exception:\n"); in test_exceptions()
1915 printf("single step exception:\n"); in test_exceptions()
1918 asm volatile ("pushf\n" in test_exceptions()
1919 "orl $0x00100, (%%esp)\n" in test_exceptions()
1920 "popf\n" in test_exceptions()
1921 "movl $0xabcd, %0\n" in test_exceptions()
1922 "movl $0x0, %0\n" : "=m" (val) : : "cc", "memory"); in test_exceptions()
1924 printf("val=0x%x\n", val); in test_exceptions()
1932 printf("EIP=" FMTLX "\n", (long)uc->uc_mcontext.gregs[REG_EIP]); in sig_trap_handler()
1949 asm volatile ("pushf\n" in test_single_step()
1950 "orl $0x00100, (%%esp)\n" in test_single_step()
1951 "popf\n" in test_single_step()
1952 "movl $0xabcd, %0\n" in test_single_step()
1955 "movl $3, %%ecx\n" in test_single_step()
1956 "1:\n" in test_single_step()
1957 "addl $1, %0\n" in test_single_step()
1958 "decl %%ecx\n" in test_single_step()
1959 "jnz 1b\n" in test_single_step()
1962 "movl $sstep_buf1, %%esi\n" in test_single_step()
1963 "movl $sstep_buf2, %%edi\n" in test_single_step()
1964 "movl $0, %%ecx\n" in test_single_step()
1965 "rep movsb\n" in test_single_step()
1966 "movl $3, %%ecx\n" in test_single_step()
1967 "rep movsb\n" in test_single_step()
1968 "movl $1, %%ecx\n" in test_single_step()
1969 "rep movsb\n" in test_single_step()
1972 "movl $sstep_buf1, %%esi\n" in test_single_step()
1973 "movl $sstep_buf2, %%edi\n" in test_single_step()
1974 "movl $0, %%ecx\n" in test_single_step()
1975 "rep cmpsb\n" in test_single_step()
1976 "movl $4, %%ecx\n" in test_single_step()
1977 "rep cmpsb\n" in test_single_step()
1981 "movl $20, %%eax\n" in test_single_step()
1982 "int $0x80\n" in test_single_step()
1983 "movl $0, %%eax\n" in test_single_step()
1987 "movl %%ss, %%ecx\n" in test_single_step()
1988 "movl %%ecx, %%ss\n" in test_single_step()
1989 "addl $1, %0\n" in test_single_step()
1990 "movl $1, %%eax\n" in test_single_step()
1991 "movl %%ecx, %%ss\n" in test_single_step()
1992 "jmp 1f\n" in test_single_step()
1993 "addl $1, %0\n" in test_single_step()
1994 "1:\n" in test_single_step()
1995 "movl $1, %%eax\n" in test_single_step()
1996 "pushl %%ecx\n" in test_single_step()
1997 "popl %%ss\n" in test_single_step()
1998 "addl $1, %0\n" in test_single_step()
1999 "movl $1, %%eax\n" in test_single_step()
2001 "pushf\n" in test_single_step()
2002 "andl $~0x00100, (%%esp)\n" in test_single_step()
2003 "popf\n" in test_single_step()
2007 printf("val=%d\n", val); in test_single_step()
2009 printf("sstep_buf2[%d] = %d\n", i, sstep_buf2[i]); in test_single_step()
2018 asm(".section \".data_x\",\"awx\"\n"
2019 "smc_code2:\n"
2020 "movl 4(%esp), %eax\n"
2021 "movl %eax, smc_patch_addr2 + 1\n"
2022 "nop\n"
2023 "nop\n"
2024 "nop\n"
2025 "nop\n"
2026 "nop\n"
2027 "nop\n"
2028 "nop\n"
2029 "nop\n"
2030 "smc_patch_addr2:\n"
2031 "movl $1, %eax\n"
2032 "ret\n"
2033 ".previous\n"
2041 printf("self modifying code:\n"); in test_self_modifying_code()
2042 printf("func1 = 0x%x\n", ((FuncType *)code)()); in test_self_modifying_code()
2045 printf("func%d = 0x%x\n", i, ((FuncType *)code)()); in test_self_modifying_code()
2052 printf("smc_code2(%d) = %d\n", i, smc_code2(i)); in test_self_modifying_code()
2079 *--stack_ptr = i;\
2081 asm("mov " RSP ", %[esp_save]\n"\
2082 "mov " RBP ", %[ebp_save]\n"\
2083 "mov %[esp_val], " RSP "\n"\
2084 "mov %[ebp_val], " RBP "\n"\
2085 "enter" size " $8, $" #level "\n"\
2086 "mov " RSP ", %[esp_val]\n"\
2087 "mov " RBP ", %[ebp_val]\n"\
2088 "mov %[esp_save], " RSP "\n"\
2089 "mov %[ebp_save], " RBP "\n"\
2096 printf("level=%d:\n", level);\
2097 printf("esp_val=" FMTLX "\n", esp_val - (long)stack_end);\
2098 printf("ebp_val=" FMTLX "\n", ebp_val - (long)stack_end);\
2100 printf(FMTLX "\n", (long)ptr[0]);\
2130 printf("%-10s A=" FMTLX " R=" FMTLX "\n", #op, a, r);\
2141 printf("%-10s A=" FMTLX " R=" FMTLX ":" FMTLX "\n", #op, a, r, rh); \
2162 printf("%-10s: A=" FMTLX " R=" FMTLX "\n", "bswapl", a, r); in test_conv()
2169 printf("%-10s: A=" FMTLX " R=" FMTLX "\n", "bswapq", a, r); in test_conv()