• Home
  • Raw
  • Download

Lines Matching refs:dis

83   DisassemblerX86 dis(just_return, sizeof(just_return)-1, 0);  in TEST()  local
84 EXPECT_EQ(1U, dis.NextInstruction()); in TEST()
85 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
86 EXPECT_EQ(0U, dis.flags()); in TEST()
87 EXPECT_TRUE(dis.endOfBlock()); in TEST()
88 EXPECT_EQ(libdis::insn_controlflow, dis.currentInstructionGroup()); in TEST()
89 const libdis::x86_insn_t* instruction = dis.currentInstruction(); in TEST()
92 EXPECT_EQ(0U, dis.NextInstruction()); in TEST()
93 EXPECT_FALSE(dis.currentInstructionValid()); in TEST()
94 EXPECT_EQ(NULL, dis.currentInstruction()); in TEST()
98 DisassemblerX86 dis(invalid_instruction, sizeof(invalid_instruction)-1, 0); in TEST() local
99 EXPECT_EQ(0U, dis.NextInstruction()); in TEST()
100 EXPECT_FALSE(dis.currentInstructionValid()); in TEST()
104 DisassemblerX86 dis(read_eax_jmp_eax, sizeof(read_eax_jmp_eax)-1, 0); in TEST() local
105 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
106 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
107 EXPECT_EQ(0U, dis.flags()); in TEST()
108 EXPECT_FALSE(dis.endOfBlock()); in TEST()
109 EXPECT_EQ(libdis::insn_move, dis.currentInstructionGroup()); in TEST()
110 EXPECT_TRUE(dis.setBadRead()); in TEST()
111 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
112 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
113 EXPECT_EQ(0U, dis.flags()); in TEST()
114 EXPECT_FALSE(dis.endOfBlock()); in TEST()
115 EXPECT_EQ(libdis::insn_logic, dis.currentInstructionGroup()); in TEST()
116 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
117 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
118 EXPECT_EQ(google_breakpad::DISX86_BAD_BRANCH_TARGET, dis.flags()); in TEST()
119 EXPECT_FALSE(dis.endOfBlock()); in TEST()
120 EXPECT_EQ(libdis::insn_controlflow, dis.currentInstructionGroup()); in TEST()
124 DisassemblerX86 dis(write_eax_arg_to_call, in TEST() local
126 EXPECT_EQ(6U, dis.NextInstruction()); in TEST()
127 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
128 EXPECT_EQ(0U, dis.flags()); in TEST()
129 EXPECT_FALSE(dis.endOfBlock()); in TEST()
130 EXPECT_EQ(libdis::insn_move, dis.currentInstructionGroup()); in TEST()
131 EXPECT_TRUE(dis.setBadWrite()); in TEST()
132 EXPECT_EQ(3U, dis.NextInstruction()); in TEST()
133 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
134 EXPECT_EQ(0U, dis.flags()); in TEST()
135 EXPECT_FALSE(dis.endOfBlock()); in TEST()
136 EXPECT_EQ(libdis::insn_arithmetic, dis.currentInstructionGroup()); in TEST()
137 EXPECT_EQ(1U, dis.NextInstruction()); in TEST()
138 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
139 EXPECT_EQ(0U, dis.flags()); in TEST()
140 EXPECT_FALSE(dis.endOfBlock()); in TEST()
141 EXPECT_EQ(5U, dis.NextInstruction()); in TEST()
142 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
143 EXPECT_EQ(google_breakpad::DISX86_BAD_ARGUMENT_PASSED, dis.flags()); in TEST()
144 EXPECT_EQ(libdis::insn_controlflow, dis.currentInstructionGroup()); in TEST()
145 EXPECT_FALSE(dis.endOfBlock()); in TEST()
150 DisassemblerX86 dis(read_edi_stosb, sizeof(read_edi_stosb)-1, 0); in TEST() local
151 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
152 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
153 EXPECT_EQ(0U, dis.flags()); in TEST()
154 EXPECT_FALSE(dis.endOfBlock()); in TEST()
155 EXPECT_EQ(libdis::insn_move, dis.currentInstructionGroup()); in TEST()
156 EXPECT_TRUE(dis.setBadRead()); in TEST()
157 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
158 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
159 EXPECT_EQ(0U, dis.flags()); in TEST()
160 EXPECT_FALSE(dis.endOfBlock()); in TEST()
161 EXPECT_EQ(libdis::insn_move, dis.currentInstructionGroup()); in TEST()
162 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
163 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
164 EXPECT_EQ(google_breakpad::DISX86_BAD_BLOCK_WRITE, dis.flags()); in TEST()
165 EXPECT_FALSE(dis.endOfBlock()); in TEST()
166 EXPECT_EQ(libdis::insn_string, dis.currentInstructionGroup()); in TEST()
170 DisassemblerX86 dis(read_clobber_write, sizeof(read_clobber_write)-1, 0); in TEST() local
171 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
172 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
173 EXPECT_EQ(0U, dis.flags()); in TEST()
174 EXPECT_FALSE(dis.endOfBlock()); in TEST()
175 EXPECT_EQ(libdis::insn_arithmetic, dis.currentInstructionGroup()); in TEST()
176 EXPECT_TRUE(dis.setBadRead()); in TEST()
177 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
178 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
179 EXPECT_EQ(0U, dis.flags()); in TEST()
180 EXPECT_FALSE(dis.endOfBlock()); in TEST()
181 EXPECT_EQ(libdis::insn_move, dis.currentInstructionGroup()); in TEST()
182 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
183 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
184 EXPECT_EQ(0U, dis.flags()); in TEST()
185 EXPECT_FALSE(dis.endOfBlock()); in TEST()
186 EXPECT_EQ(libdis::insn_move, dis.currentInstructionGroup()); in TEST()
190 DisassemblerX86 dis(read_xchg_write, sizeof(read_xchg_write)-1, 0); in TEST() local
191 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
192 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
193 EXPECT_EQ(0U, dis.flags()); in TEST()
194 EXPECT_FALSE(dis.endOfBlock()); in TEST()
195 EXPECT_EQ(libdis::insn_arithmetic, dis.currentInstructionGroup()); in TEST()
196 EXPECT_TRUE(dis.setBadRead()); in TEST()
197 EXPECT_EQ(1U, dis.NextInstruction()); in TEST()
198 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
199 EXPECT_EQ(0U, dis.flags()); in TEST()
200 EXPECT_FALSE(dis.endOfBlock()); in TEST()
201 EXPECT_EQ(libdis::insn_move, dis.currentInstructionGroup()); in TEST()
202 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
203 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
204 EXPECT_EQ(0U, dis.flags()); in TEST()
205 EXPECT_FALSE(dis.endOfBlock()); in TEST()
206 EXPECT_EQ(libdis::insn_move, dis.currentInstructionGroup()); in TEST()
207 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
208 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
209 EXPECT_EQ(google_breakpad::DISX86_BAD_WRITE, dis.flags()); in TEST()
210 EXPECT_FALSE(dis.endOfBlock()); in TEST()
211 EXPECT_EQ(libdis::insn_move, dis.currentInstructionGroup()); in TEST()
215 DisassemblerX86 dis(read_cmp, sizeof(read_cmp)-1, 0); in TEST() local
216 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
217 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
218 EXPECT_EQ(0U, dis.flags()); in TEST()
219 EXPECT_FALSE(dis.endOfBlock()); in TEST()
220 EXPECT_EQ(libdis::insn_arithmetic, dis.currentInstructionGroup()); in TEST()
221 EXPECT_TRUE(dis.setBadRead()); in TEST()
222 EXPECT_EQ(3U, dis.NextInstruction()); in TEST()
223 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
224 EXPECT_EQ(google_breakpad::DISX86_BAD_COMPARISON, dis.flags()); in TEST()
225 EXPECT_FALSE(dis.endOfBlock()); in TEST()
226 EXPECT_EQ(libdis::insn_comparison, dis.currentInstructionGroup()); in TEST()
227 EXPECT_EQ(2U, dis.NextInstruction()); in TEST()
228 EXPECT_TRUE(dis.currentInstructionValid()); in TEST()
229 EXPECT_EQ(google_breakpad::DISX86_BAD_COMPARISON, dis.flags()); in TEST()
230 EXPECT_FALSE(dis.endOfBlock()); in TEST()
231 EXPECT_EQ(libdis::insn_controlflow, dis.currentInstructionGroup()); in TEST()