Lines Matching +full:- +full:v

29 		       "S"(st1), "c"(sizeof(st1) - 1));  in test_stringio()
31 report(r == st1[sizeof(st1) - 2], "outsb up"); /* last char */ in test_stringio()
37 "S"(st1 + sizeof(st1) - 2), "c"(sizeof(st1) - 1)); in test_stringio()
178 unsigned long *m = mem, v = 1234; in test_incdecnotneg() local
201 *m = v; in test_incdecnotneg()
204 asm ("lock negq %0" : "+m"(*m)); v = -v; in test_incdecnotneg()
205 report(*m == v, "lock negl"); in test_incdecnotneg()
206 asm ("lock notq %0" : "+m"(*m)); v = ~v; in test_incdecnotneg()
207 report(*m == v, "lock notl"); in test_incdecnotneg()
212 asm ("lock negb %0" : "+m"(*mb)); vb = -vb; in test_incdecnotneg()
239 *h_mem = -1ul; in test_smsw()
242 (*h_mem & ~0xfffful) == (-1ul & ~0xfffful), "smsw (3)"); in test_smsw()
285 asm ("btcl %1, %0" :: "m"(a[3]), "r"(-1) : "memory"); in test_btc()
289 asm ("btcq %1, %0" : : "m"(a[2]), "r"(-1l) : "memory"); in test_btc()
347 *mem = 51; a = 0x1234567812345678ULL & -1ul;; in test_imul()
349 report(a == (0x12345678123439e8ULL & -1ul), "imul ax, mem"); in test_imul()
351 *mem = 51; a = 0x1234567812345678ULL & -1ul;; in test_imul()
355 *mem = 0x1234567812345678ULL; a = 0x8765432187654321ULL & -1ul; in test_imul()
357 report(a == (0x87654321876539e8ULL & -1ul), "imul ax, mem, imm8"); in test_imul()
363 *mem = 0x1234567812345678ULL; a = 0x8765432187654321ULL & -1ul; in test_imul()
365 report(a == (0x8765432187650bc8ULL & -1ul), "imul ax, mem, imm"); in test_imul()
401 uint32_t *v = (uint32_t *)&vv; in test_sse() local
408 v[0] = 1; v[1] = 2; v[2] = 3; v[3] = 4; \ in test_sse()
410 report(sseeq(v, mem), insn " (read)"); \ in test_sse()
413 report(sseeq(v, mem), insn " (write)"); \ in test_sse()
429 regs->rip = (ulong)&unaligned_movaps_cont; in unaligned_movaps_handler()
437 regs->rip = (ulong)&cross_movups_cont; in cross_movups_handler()
443 uint32_t *v = (uint32_t *)&vv; in test_sse_exceptions() local
455 v[0] = 1; v[1] = 2; v[2] = 3; v[3] = 4; in test_sse_exceptions()
458 report(sseeq(v, mem), "movups unaligned"); in test_sse_exceptions()
460 v[0] = 1; v[1] = 2; v[2] = 3; v[3] = 4; in test_sse_exceptions()
463 report(sseeq(v, mem), "movupd unaligned"); in test_sse_exceptions()
472 mem = (uint32_t *)(&bytes[4096-8]); in test_sse_exceptions()
473 v[0] = 1; v[1] = 2; v[2] = 3; v[3] = 4; in test_sse_exceptions()
477 report(sseeq(v, mem), "movups unaligned crosspage"); in test_sse_exceptions()
510 const unsigned long in_rax = 0x1234567890abcdefull & -1ul; in test_smsw_reg()
514 "16-bit smsw reg"); in test_smsw_reg()
517 report(rax == (u32)cr0, "32-bit smsw reg"); in test_smsw_reg()
521 report(rax == cr0, "64-bit smsw reg"); in test_smsw_reg()
568 report(w == 0x7799, "cross-page mmio read"); in test_crosspage_mmio()
570 report(mem[4095] == 0xaa && mem[4096] == 0x88, "cross-page mmio write"); in test_crosspage_mmio()
627 struct descriptor_table_ptr gdt_ptr = { .limit = sizeof(gdt) - 1,
663 t1 = 0x123456789abcdefull & -1ul; in test_mov()
669 report(t2 == (0x123456789abcdefull & -1ul), "mov reg, r/m (1)"); in test_mov()
725 regs->rflags |= X86_EFLAGS_RF; in handle_db()
764 MOV_SS_DB("fep MOV-SS", KVM_FEP, ""); in test_mov_pop_ss_code_db()
766 MOV_SS_DB("fep MOV-SS/fep XOR", KVM_FEP, KVM_FEP); in test_mov_pop_ss_code_db()
769 /* PUSH/POP SS are invalid in 64-bit mode. */ in test_mov_pop_ss_code_db()
777 POP_SS_DB("fep POP-SS", KVM_FEP, ""); in test_mov_pop_ss_code_db()
779 POP_SS_DB("fep POP-SS/fep XOR", KVM_FEP, KVM_FEP); in test_mov_pop_ss_code_db()
801 // install the page twice to test cross-page mmio in main()