Lines Matching refs:encoder

28     IndexBssMappingEncoder encoder(/* number_of_indexes */ 0x10000, raw_pointer_size);  in TEST()  local
29 encoder.Reset(1u, 0u); in TEST()
30 ASSERT_FALSE(encoder.TryMerge(5u, raw_pointer_size + 1)); // Wrong bss_offset difference. in TEST()
31 ASSERT_FALSE(encoder.TryMerge(18u, raw_pointer_size)); // Index out of range. in TEST()
32 ASSERT_TRUE(encoder.TryMerge(5u, raw_pointer_size)); in TEST()
33 ASSERT_EQ(0u, encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 1u, raw_pointer_size)); in TEST()
35 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 5u, raw_pointer_size)); in TEST()
37 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 17u, raw_pointer_size)); in TEST()
38 ASSERT_FALSE(encoder.TryMerge(17u, 2 * raw_pointer_size + 1)); // Wrong bss_offset difference. in TEST()
39 ASSERT_FALSE(encoder.TryMerge(18u, 2 * raw_pointer_size)); // Index out of range. in TEST()
40 ASSERT_TRUE(encoder.TryMerge(17u, 2 * raw_pointer_size)); in TEST()
41 ASSERT_EQ(0u, encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 1u, raw_pointer_size)); in TEST()
43 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 5u, raw_pointer_size)); in TEST()
45 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 17u, raw_pointer_size)); in TEST()
46 ASSERT_EQ(0x00110000u | 17u, encoder.GetEntry().index_and_mask); in TEST()
47 ASSERT_FALSE(encoder.TryMerge(18u, 3 * raw_pointer_size)); // Index out of range. in TEST()
54 IndexBssMappingEncoder encoder(/* number_of_indexes */ 0x100, raw_pointer_size); in TEST() local
55 encoder.Reset(1u, 0u); in TEST()
56 ASSERT_FALSE(encoder.TryMerge(5u, raw_pointer_size + 1)); // Wrong bss_offset difference. in TEST()
57 ASSERT_FALSE(encoder.TryMerge(26u, raw_pointer_size)); // Index out of range. in TEST()
58 ASSERT_TRUE(encoder.TryMerge(5u, raw_pointer_size)); in TEST()
59 ASSERT_EQ(0u, encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 1u, raw_pointer_size)); in TEST()
61 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 5u, raw_pointer_size)); in TEST()
63 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 17u, raw_pointer_size)); in TEST()
64 ASSERT_FALSE(encoder.TryMerge(25u, 2 * raw_pointer_size + 1)); // Wrong bss_offset difference. in TEST()
65 ASSERT_FALSE(encoder.TryMerge(26u, 2 * raw_pointer_size)); // Index out of range. in TEST()
66 ASSERT_TRUE(encoder.TryMerge(25u, 2 * raw_pointer_size)); in TEST()
67 ASSERT_EQ(0u, encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 1u, raw_pointer_size)); in TEST()
69 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 5u, raw_pointer_size)); in TEST()
71 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 25u, raw_pointer_size)); in TEST()
72 ASSERT_EQ(0x00001100u | 25u, encoder.GetEntry().index_and_mask); in TEST()
73 ASSERT_FALSE(encoder.TryMerge(26u, 3 * raw_pointer_size)); // Index out of range. in TEST()
80 IndexBssMappingEncoder encoder(/* number_of_indexes */ 0x100000, raw_pointer_size); in TEST() local
81 encoder.Reset(1u, 0u); in TEST()
82 ASSERT_FALSE(encoder.TryMerge(5u, raw_pointer_size + 1)); // Wrong bss_offset difference. in TEST()
83 ASSERT_FALSE(encoder.TryMerge(14u, raw_pointer_size)); // Index out of range. in TEST()
84 ASSERT_TRUE(encoder.TryMerge(5u, raw_pointer_size)); in TEST()
85 ASSERT_EQ(0u, encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 1u, raw_pointer_size)); in TEST()
87 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 5u, raw_pointer_size)); in TEST()
89 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 17u, raw_pointer_size)); in TEST()
90 ASSERT_FALSE(encoder.TryMerge(13u, 2 * raw_pointer_size + 1)); // Wrong bss_offset difference. in TEST()
91 ASSERT_FALSE(encoder.TryMerge(14u, 2 * raw_pointer_size)); // Index out of range. in TEST()
92 ASSERT_TRUE(encoder.TryMerge(13u, 2 * raw_pointer_size)); in TEST()
93 ASSERT_EQ(0u, encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 1u, raw_pointer_size)); in TEST()
95 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 5u, raw_pointer_size)); in TEST()
97 encoder.GetEntry().GetBssOffset(encoder.GetIndexBits(), 13u, raw_pointer_size)); in TEST()
98 ASSERT_EQ(0x01100000u | 13u, encoder.GetEntry().index_and_mask); in TEST()
99 ASSERT_FALSE(encoder.TryMerge(14u, 3 * raw_pointer_size)); // Index out of range. in TEST()