/external/valgrind/memcheck/tests/vbit-test/ |
D | binary.c | 59 expected_vbits = defined_vbits(result->vbits.num_bits); in check_result_for_binary() 63 expected_vbits = undefined_vbits(result->vbits.num_bits); in check_result_for_binary() 68 expected_vbits = left_vbits(or_vbits(opnd1->vbits, opnd2->vbits), in check_result_for_binary() 69 result->vbits.num_bits); in check_result_for_binary() 73 assert(opnd1->vbits.num_bits == opnd2->vbits.num_bits); in check_result_for_binary() 74 assert(opnd1->vbits.num_bits == result->vbits.num_bits); in check_result_for_binary() 77 expected_vbits = or_vbits(opnd1->vbits, opnd2->vbits); in check_result_for_binary() 81 assert(opnd1->vbits.num_bits == opnd2->vbits.num_bits); in check_result_for_binary() 82 assert(result->vbits.num_bits == 2 * opnd1->vbits.num_bits); in check_result_for_binary() 83 expected_vbits = concat_vbits(opnd1->vbits, opnd2->vbits); in check_result_for_binary() [all …]
|
D | qernary.c | 21 expected_vbits = undefined_vbits(result->vbits.num_bits); in check_result_for_qernary() 26 expected_vbits = or_vbits(or_vbits(or_vbits(opnd1->vbits, opnd2->vbits), in check_result_for_qernary() 27 opnd3->vbits), opnd4->vbits); in check_result_for_qernary() 34 if (! equal_vbits(result->vbits, expected_vbits)) in check_result_for_qernary() 52 opnds[0].vbits = defined_vbits(bitsof_irtype(opnds[0].type)); in test_qernary_op() 53 opnds[1].vbits = defined_vbits(bitsof_irtype(opnds[1].type)); in test_qernary_op() 54 opnds[2].vbits = defined_vbits(bitsof_irtype(opnds[2].type)); in test_qernary_op() 55 opnds[3].vbits = defined_vbits(bitsof_irtype(opnds[3].type)); in test_qernary_op() 58 opnds[i].vbits = onehot_vbits(bitpos, bitsof_irtype(opnds[i].type)); in test_qernary_op()
|
D | unary.c | 13 unsigned num_bits = result->vbits.num_bits; in check_result_for_unary() 23 expected_vbits = opnd->vbits; in check_result_for_unary() 27 expected_vbits = truncate_vbits(opnd->vbits, num_bits); in check_result_for_unary() 31 expected_vbits = left_vbits(opnd->vbits, num_bits); in check_result_for_unary() 35 assert(num_bits * 2 == opnd->vbits.num_bits); in check_result_for_unary() 36 expected_vbits = upper_vbits(opnd->vbits); in check_result_for_unary() 40 expected_vbits = sextend_vbits(opnd->vbits, num_bits); in check_result_for_unary() 44 expected_vbits = zextend_vbits(opnd->vbits, num_bits); in check_result_for_unary() 51 if (! equal_vbits(result->vbits, expected_vbits)) in check_result_for_unary() 65 data->opnds[0].vbits = onehot_vbits(bitpos, num_input_bits); in test_unary_op()
|
D | ternary.c | 20 expected_vbits = undefined_vbits(result->vbits.num_bits); in check_result_for_ternary() 25 expected_vbits = or_vbits(or_vbits(opnd1->vbits, opnd2->vbits), in check_result_for_ternary() 26 opnd3->vbits); in check_result_for_ternary() 33 if (! equal_vbits(result->vbits, expected_vbits)) in check_result_for_ternary() 51 opnds[0].vbits = defined_vbits(bitsof_irtype(opnds[0].type)); in test_ternary_op() 52 opnds[1].vbits = defined_vbits(bitsof_irtype(opnds[1].type)); in test_ternary_op() 53 opnds[2].vbits = defined_vbits(bitsof_irtype(opnds[2].type)); in test_ternary_op() 56 opnds[i].vbits = onehot_vbits(bitpos, bitsof_irtype(opnds[i].type)); in test_ternary_op()
|
D | valgrind.c | 46 rc = VALGRIND_SET_VBITS(&opnd->value, &opnd->vbits.bits, num_bytes); in valgrind_set_vbits() 50 vbits_t actual = { .num_bits = opnd->vbits.num_bits }; in valgrind_set_vbits() 54 assert(equal_vbits(opnd->vbits, actual)); in valgrind_set_vbits() 66 opnd->vbits.num_bits = bitsof_irtype(opnd->type); in valgrind_get_vbits() 67 rc = VALGRIND_GET_VBITS(&opnd->value, &opnd->vbits.bits, num_bytes); in valgrind_get_vbits()
|
D | Makefile.am | 12 noinst_HEADERS = vtest.h vbits.h 31 vbits.c \
|
D | vtest.h | 89 vbits_t vbits; member
|
D | util.c | 90 print_vbits(fp, opnd->vbits); in print_opnd() 93 if (equal_vbits(opnd->vbits, defined_vbits(opnd->vbits.num_bits))) { in print_opnd() 95 print_value(fp, opnd->value, opnd->vbits.num_bits); in print_opnd()
|
/external/valgrind/memcheck/tests/amd64/ |
D | insn-pmovmskb.c | 24 static void set_vbits(V128 *addr, V128 vbits) in set_vbits() argument 28 (void)VALGRIND_SET_VBITS(&addr->w64[i], &vbits.w64[i], sizeof(vbits.w64[i])); in set_vbits() 32 static void print(V128 vbits, V128 val, int bit, int result) in print() argument 35 vbits.w64[1], vbits.w64[0], val.w64[1], val.w64[0], in print() 54 V128 vbits = { { vbits_lo, vbits_hi } }; in doit() local 61 set_vbits(&val, vbits); in doit() 65 int vbits_mask = getMSBs16x8(vbits); in doit() 68 if ((vbits_mask & mask) == 0) print(vbits, val_copy, bit, result & mask); in doit() 72 if ((vbits_mask & mask) == 0) print(vbits, val_copy, bit, result & mask); in doit() 76 if ((vbits_mask & mask) == 0) print(vbits, val_copy, bit, result & mask); in doit() [all …]
|
D | insn-bsfl.c | 22 static void set_vbits(UInt *addr, UInt vbits) in set_vbits() argument 24 (void)VALGRIND_SET_VBITS(addr, &vbits, sizeof(unsigned)); in set_vbits() 27 static void doit(unsigned vbits, unsigned val) in doit() argument 34 set_vbits(&val, vbits); in doit() 47 if (result < ctz(vbits) || vbits == 0) { in doit() 50 printf("vbits=0x%08x ctz(0x%08x)=%d\n", vbits, val_copy, result); in doit()
|
D | bug279698.c | 9 unsigned char data[32], vbits[32]; in main() local 18 VALGRIND_GET_VBITS( data, vbits, 32 ); in main() 23 printf("%02x ", vbits[i*16+j]); in main()
|
/external/valgrind/VEX/useful/ |
D | test_main.c | 873 static IRAtom* mkImproveAND8 ( MCEnv* mce, IRAtom* data, IRAtom* vbits ) in mkImproveAND8() argument 876 tl_assert(isShadowAtom(mce, vbits)); in mkImproveAND8() 877 tl_assert(sameKindedAtoms(data, vbits)); in mkImproveAND8() 878 return assignNew(mce, Ity_I8, binop(Iop_Or8, data, vbits)); in mkImproveAND8() 881 static IRAtom* mkImproveAND16 ( MCEnv* mce, IRAtom* data, IRAtom* vbits ) in mkImproveAND16() argument 884 tl_assert(isShadowAtom(mce, vbits)); in mkImproveAND16() 885 tl_assert(sameKindedAtoms(data, vbits)); in mkImproveAND16() 886 return assignNew(mce, Ity_I16, binop(Iop_Or16, data, vbits)); in mkImproveAND16() 889 static IRAtom* mkImproveAND32 ( MCEnv* mce, IRAtom* data, IRAtom* vbits ) in mkImproveAND32() argument 892 tl_assert(isShadowAtom(mce, vbits)); in mkImproveAND32() [all …]
|
/external/valgrind/memcheck/ |
D | mc_translate.c | 628 static IRAtom* mkImproveAND8 ( MCEnv* mce, IRAtom* data, IRAtom* vbits ) in mkImproveAND8() argument 631 tl_assert(isShadowAtom(mce, vbits)); in mkImproveAND8() 632 tl_assert(sameKindedAtoms(data, vbits)); in mkImproveAND8() 633 return assignNew('V', mce, Ity_I8, binop(Iop_Or8, data, vbits)); in mkImproveAND8() 636 static IRAtom* mkImproveAND16 ( MCEnv* mce, IRAtom* data, IRAtom* vbits ) in mkImproveAND16() argument 639 tl_assert(isShadowAtom(mce, vbits)); in mkImproveAND16() 640 tl_assert(sameKindedAtoms(data, vbits)); in mkImproveAND16() 641 return assignNew('V', mce, Ity_I16, binop(Iop_Or16, data, vbits)); in mkImproveAND16() 644 static IRAtom* mkImproveAND32 ( MCEnv* mce, IRAtom* data, IRAtom* vbits ) in mkImproveAND32() argument 647 tl_assert(isShadowAtom(mce, vbits)); in mkImproveAND32() [all …]
|
D | mc_main.c | 4935 Addr vbits, in mc_get_or_set_vbits_for_client() argument 4950 (is_client_request && VA_BITS2_NOACCESS == get_vabits2(vbits + i))) { in mc_get_or_set_vbits_for_client() 4959 ok = set_vbits8(a + i, ((UChar*)vbits)[i]); in mc_get_or_set_vbits_for_client() 4967 ((UChar*)vbits)[i] = vbits8; in mc_get_or_set_vbits_for_client() 4971 MC_(make_mem_defined)(vbits, szB); in mc_get_or_set_vbits_for_client() 5552 UChar vbits; in handle_gdb_monitor_command() local 5557 (address+i, (Addr) &vbits, 1, in handle_gdb_monitor_command() 5567 VG_(printf) ("%02x", vbits); in handle_gdb_monitor_command()
|