blob: 91237ae9102192a2ccc393e12b1f2171a2361dd6 [file] [log] [blame]
Andreas Gampe5a4fa822014-03-31 16:50:12 -07001/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ART_COMPILER_UTILS_ASSEMBLER_TEST_H_
18#define ART_COMPILER_UTILS_ASSEMBLER_TEST_H_
19
20#include "assembler.h"
21
Andreas Gampeb40c6a72014-05-02 14:25:12 -070022#include "common_runtime_test.h" // For ScratchFile
Andreas Gampe5a4fa822014-03-31 16:50:12 -070023
24#include <cstdio>
25#include <cstdlib>
26#include <fstream>
Andreas Gampe5a4fa822014-03-31 16:50:12 -070027#include <iterator>
28#include <sys/stat.h>
29
30namespace art {
31
Andreas Gampeb40c6a72014-05-02 14:25:12 -070032// Use a glocal static variable to keep the same name for all test data. Else we'll just spam the
33// temp directory.
34static std::string tmpnam_;
35
Andreas Gampe5a4fa822014-03-31 16:50:12 -070036template<typename Ass, typename Reg, typename Imm>
37class AssemblerTest : public testing::Test {
38 public:
39 Ass* GetAssembler() {
40 return assembler_.get();
41 }
42
43 typedef std::string (*TestFn)(Ass* assembler);
44
45 void DriverFn(TestFn f, std::string test_name) {
46 Driver(f(assembler_.get()), test_name);
47 }
48
49 // This driver assumes the assembler has already been called.
50 void DriverStr(std::string assembly_string, std::string test_name) {
51 Driver(assembly_string, test_name);
52 }
53
54 std::string RepeatR(void (Ass::*f)(Reg), std::string fmt) {
55 const std::vector<Reg*> registers = GetRegisters();
56 std::string str;
57 for (auto reg : registers) {
58 (assembler_.get()->*f)(*reg);
59 std::string base = fmt;
60
61 size_t reg_index = base.find("{reg}");
62 if (reg_index != std::string::npos) {
63 std::ostringstream sreg;
64 sreg << *reg;
65 std::string reg_string = sreg.str();
66 base.replace(reg_index, 5, reg_string);
67 }
68
69 if (str.size() > 0) {
70 str += "\n";
71 }
72 str += base;
73 }
74 // Add a newline at the end.
75 str += "\n";
76 return str;
77 }
78
79 std::string RepeatRR(void (Ass::*f)(Reg, Reg), std::string fmt) {
80 const std::vector<Reg*> registers = GetRegisters();
81 std::string str;
82 for (auto reg1 : registers) {
83 for (auto reg2 : registers) {
84 (assembler_.get()->*f)(*reg1, *reg2);
85 std::string base = fmt;
86
87 size_t reg1_index = base.find("{reg1}");
88 if (reg1_index != std::string::npos) {
89 std::ostringstream sreg;
90 sreg << *reg1;
91 std::string reg_string = sreg.str();
92 base.replace(reg1_index, 6, reg_string);
93 }
94
95 size_t reg2_index = base.find("{reg2}");
96 if (reg2_index != std::string::npos) {
97 std::ostringstream sreg;
98 sreg << *reg2;
99 std::string reg_string = sreg.str();
100 base.replace(reg2_index, 6, reg_string);
101 }
102
103 if (str.size() > 0) {
104 str += "\n";
105 }
106 str += base;
107 }
108 }
109 // Add a newline at the end.
110 str += "\n";
111 return str;
112 }
113
114 std::string RepeatRI(void (Ass::*f)(Reg, const Imm&), size_t imm_bytes, std::string fmt) {
115 const std::vector<Reg*> registers = GetRegisters();
116 std::string str;
117 std::vector<int64_t> imms = CreateImmediateValues(imm_bytes);
118 for (auto reg : registers) {
119 for (int64_t imm : imms) {
Ian Rogerscf7f1912014-10-22 22:06:39 -0700120 Imm new_imm = CreateImmediate(imm);
121 (assembler_.get()->*f)(*reg, new_imm);
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700122 std::string base = fmt;
123
124 size_t reg_index = base.find("{reg}");
125 if (reg_index != std::string::npos) {
126 std::ostringstream sreg;
127 sreg << *reg;
128 std::string reg_string = sreg.str();
129 base.replace(reg_index, 5, reg_string);
130 }
131
132 size_t imm_index = base.find("{imm}");
133 if (imm_index != std::string::npos) {
134 std::ostringstream sreg;
135 sreg << imm;
136 std::string imm_string = sreg.str();
137 base.replace(imm_index, 5, imm_string);
138 }
139
140 if (str.size() > 0) {
141 str += "\n";
142 }
143 str += base;
144 }
145 }
146 // Add a newline at the end.
147 str += "\n";
148 return str;
149 }
150
151 std::string RepeatI(void (Ass::*f)(const Imm&), size_t imm_bytes, std::string fmt) {
152 std::string str;
153 std::vector<int64_t> imms = CreateImmediateValues(imm_bytes);
154 for (int64_t imm : imms) {
Ian Rogerscf7f1912014-10-22 22:06:39 -0700155 Imm new_imm = CreateImmediate(imm);
156 (assembler_.get()->*f)(new_imm);
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700157 std::string base = fmt;
158
159 size_t imm_index = base.find("{imm}");
160 if (imm_index != std::string::npos) {
161 std::ostringstream sreg;
162 sreg << imm;
163 std::string imm_string = sreg.str();
164 base.replace(imm_index, 5, imm_string);
165 }
166
167 if (str.size() > 0) {
168 str += "\n";
169 }
170 str += base;
171 }
172 // Add a newline at the end.
173 str += "\n";
174 return str;
175 }
176
177 // This is intended to be run as a test.
178 bool CheckTools() {
179 if (!FileExists(GetAssemblerCommand())) {
180 return false;
181 }
182 LOG(INFO) << "Chosen assembler command: " << GetAssemblerCommand();
183
184 if (!FileExists(GetObjdumpCommand())) {
185 return false;
186 }
187 LOG(INFO) << "Chosen objdump command: " << GetObjdumpCommand();
188
189 // Disassembly is optional.
190 std::string disassembler = GetDisassembleCommand();
191 if (disassembler.length() != 0) {
192 if (!FileExists(disassembler)) {
193 return false;
194 }
195 LOG(INFO) << "Chosen disassemble command: " << GetDisassembleCommand();
196 } else {
197 LOG(INFO) << "No disassembler given.";
198 }
199
200 return true;
201 }
202
203 protected:
204 void SetUp() OVERRIDE {
205 assembler_.reset(new Ass());
206
Andreas Gampeb40c6a72014-05-02 14:25:12 -0700207 // Fake a runtime test for ScratchFile
Andreas Gampe7747c8d2014-08-06 14:53:03 -0700208 CommonRuntimeTest::SetUpAndroidData(android_data_);
Andreas Gampeb40c6a72014-05-02 14:25:12 -0700209
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700210 SetUpHelpers();
211 }
212
Andreas Gampe7747c8d2014-08-06 14:53:03 -0700213 void TearDown() OVERRIDE {
214 // We leave temporaries in case this failed so we can debug issues.
215 CommonRuntimeTest::TearDownAndroidData(android_data_, false);
216 tmpnam_ = "";
217 }
218
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700219 // Override this to set up any architecture-specific things, e.g., register vectors.
220 virtual void SetUpHelpers() {}
221
222 virtual std::vector<Reg*> GetRegisters() = 0;
223
224 // Get the typically used name for this architecture, e.g., aarch64, x86_64, ...
225 virtual std::string GetArchitectureString() = 0;
226
227 // Get the name of the assembler, e.g., "as" by default.
228 virtual std::string GetAssemblerCmdName() {
229 return "as";
230 }
231
232 // Switches to the assembler command. Default none.
233 virtual std::string GetAssemblerParameters() {
234 return "";
235 }
236
237 // Return the host assembler command for this test.
238 virtual std::string GetAssemblerCommand() {
239 // Already resolved it once?
240 if (resolved_assembler_cmd_.length() != 0) {
241 return resolved_assembler_cmd_;
242 }
243
244 std::string line = FindTool(GetAssemblerCmdName());
245 if (line.length() == 0) {
246 return line;
247 }
248
249 resolved_assembler_cmd_ = line + GetAssemblerParameters();
250
251 return line;
252 }
253
254 // Get the name of the objdump, e.g., "objdump" by default.
255 virtual std::string GetObjdumpCmdName() {
256 return "objdump";
257 }
258
259 // Switches to the objdump command. Default is " -h".
260 virtual std::string GetObjdumpParameters() {
261 return " -h";
262 }
263
264 // Return the host objdump command for this test.
265 virtual std::string GetObjdumpCommand() {
266 // Already resolved it once?
267 if (resolved_objdump_cmd_.length() != 0) {
268 return resolved_objdump_cmd_;
269 }
270
271 std::string line = FindTool(GetObjdumpCmdName());
272 if (line.length() == 0) {
273 return line;
274 }
275
276 resolved_objdump_cmd_ = line + GetObjdumpParameters();
277
278 return line;
279 }
280
281 // Get the name of the objdump, e.g., "objdump" by default.
282 virtual std::string GetDisassembleCmdName() {
283 return "objdump";
284 }
285
286 // Switches to the objdump command. As it's a binary, one needs to push the architecture and
287 // such to objdump, so it's architecture-specific and there is no default.
288 virtual std::string GetDisassembleParameters() = 0;
289
290 // Return the host disassembler command for this test.
291 virtual std::string GetDisassembleCommand() {
292 // Already resolved it once?
293 if (resolved_disassemble_cmd_.length() != 0) {
294 return resolved_disassemble_cmd_;
295 }
296
297 std::string line = FindTool(GetDisassembleCmdName());
298 if (line.length() == 0) {
299 return line;
300 }
301
302 resolved_disassemble_cmd_ = line + GetDisassembleParameters();
303
304 return line;
305 }
306
307 // Create a couple of immediate values up to the number of bytes given.
308 virtual std::vector<int64_t> CreateImmediateValues(size_t imm_bytes) {
309 std::vector<int64_t> res;
310 res.push_back(0);
311 res.push_back(-1);
312 res.push_back(0x12);
313 if (imm_bytes >= 2) {
314 res.push_back(0x1234);
315 res.push_back(-0x1234);
316 if (imm_bytes >= 4) {
317 res.push_back(0x12345678);
318 res.push_back(-0x12345678);
319 if (imm_bytes >= 6) {
320 res.push_back(0x123456789ABC);
321 res.push_back(-0x123456789ABC);
322 if (imm_bytes >= 8) {
323 res.push_back(0x123456789ABCDEF0);
324 res.push_back(-0x123456789ABCDEF0);
325 }
326 }
327 }
328 }
329 return res;
330 }
331
332 // Create an immediate from the specific value.
Ian Rogerscf7f1912014-10-22 22:06:39 -0700333 virtual Imm CreateImmediate(int64_t imm_value) = 0;
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700334
335 private:
336 // Driver() assembles and compares the results. If the results are not equal and we have a
337 // disassembler, disassemble both and check whether they have the same mnemonics (in which case
338 // we just warn).
339 void Driver(std::string assembly_text, std::string test_name) {
340 EXPECT_NE(assembly_text.length(), 0U) << "Empty assembly";
341
342 NativeAssemblerResult res;
343 Compile(assembly_text, &res, test_name);
344
345 EXPECT_TRUE(res.ok) << res.error_msg;
346 if (!res.ok) {
347 // No way of continuing.
348 return;
349 }
350
351 size_t cs = assembler_->CodeSize();
Ian Rogers700a4022014-05-19 16:49:03 -0700352 std::unique_ptr<std::vector<uint8_t>> data(new std::vector<uint8_t>(cs));
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700353 MemoryRegion code(&(*data)[0], data->size());
354 assembler_->FinalizeInstructions(code);
355
356 if (*data == *res.code) {
357 Clean(&res);
358 } else {
359 if (DisassembleBinaries(*data, *res.code, test_name)) {
360 if (data->size() > res.code->size()) {
Andreas Gampe54e15de2014-08-06 15:31:06 -0700361 // Fail this test with a fancy colored warning being printed.
362 EXPECT_TRUE(false) << "Assembly code is not identical, but disassembly of machine code "
363 "is equal: this implies sub-optimal encoding! Our code size=" << data->size() <<
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700364 ", gcc size=" << res.code->size();
365 } else {
Andreas Gampe54e15de2014-08-06 15:31:06 -0700366 // Otherwise just print an info message and clean up.
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700367 LOG(INFO) << "GCC chose a different encoding than ours, but the overall length is the "
368 "same.";
Andreas Gampe54e15de2014-08-06 15:31:06 -0700369 Clean(&res);
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700370 }
371 } else {
372 // This will output the assembly.
Nicolas Geoffray102cbed2014-10-15 18:31:05 +0100373 EXPECT_EQ(*res.code, *data) << "Outputs (and disassembly) not identical.";
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700374 }
375 }
376 }
377
378 // Structure to store intermediates and results.
379 struct NativeAssemblerResult {
380 bool ok;
381 std::string error_msg;
382 std::string base_name;
Ian Rogers700a4022014-05-19 16:49:03 -0700383 std::unique_ptr<std::vector<uint8_t>> code;
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700384 uintptr_t length;
385 };
386
387 // Compile the assembly file from_file to a binary file to_file. Returns true on success.
388 bool Assemble(const char* from_file, const char* to_file, std::string* error_msg) {
389 bool have_assembler = FileExists(GetAssemblerCommand());
390 EXPECT_TRUE(have_assembler) << "Cannot find assembler:" << GetAssemblerCommand();
391 if (!have_assembler) {
392 return false;
393 }
394
395 std::vector<std::string> args;
396
397 args.push_back(GetAssemblerCommand());
398 args.push_back("-o");
399 args.push_back(to_file);
400 args.push_back(from_file);
401
402 return Exec(args, error_msg);
403 }
404
405 // Runs objdump -h on the binary file and extracts the first line with .text.
406 // Returns "" on failure.
407 std::string Objdump(std::string file) {
408 bool have_objdump = FileExists(GetObjdumpCommand());
409 EXPECT_TRUE(have_objdump) << "Cannot find objdump: " << GetObjdumpCommand();
410 if (!have_objdump) {
411 return "";
412 }
413
414 std::string error_msg;
415 std::vector<std::string> args;
416
417 args.push_back(GetObjdumpCommand());
418 args.push_back(file);
419 args.push_back(">");
420 args.push_back(file+".dump");
421 std::string cmd = Join(args, ' ');
422
423 args.clear();
424 args.push_back("/bin/sh");
425 args.push_back("-c");
426 args.push_back(cmd);
427
428 if (!Exec(args, &error_msg)) {
429 EXPECT_TRUE(false) << error_msg;
430 }
431
432 std::ifstream dump(file+".dump");
433
434 std::string line;
435 bool found = false;
436 while (std::getline(dump, line)) {
437 if (line.find(".text") != line.npos) {
438 found = true;
439 break;
440 }
441 }
442
443 dump.close();
444
445 if (found) {
446 return line;
447 } else {
448 return "";
449 }
450 }
451
452 // Disassemble both binaries and compare the text.
453 bool DisassembleBinaries(std::vector<uint8_t>& data, std::vector<uint8_t>& as,
454 std::string test_name) {
455 std::string disassembler = GetDisassembleCommand();
456 if (disassembler.length() == 0) {
457 LOG(WARNING) << "No dissassembler command.";
458 return false;
459 }
460
461 std::string data_name = WriteToFile(data, test_name + ".ass");
462 std::string error_msg;
463 if (!DisassembleBinary(data_name, &error_msg)) {
464 LOG(INFO) << "Error disassembling: " << error_msg;
465 std::remove(data_name.c_str());
466 return false;
467 }
468
469 std::string as_name = WriteToFile(as, test_name + ".gcc");
470 if (!DisassembleBinary(as_name, &error_msg)) {
471 LOG(INFO) << "Error disassembling: " << error_msg;
472 std::remove(data_name.c_str());
473 std::remove((data_name + ".dis").c_str());
474 std::remove(as_name.c_str());
475 return false;
476 }
477
478 bool result = CompareFiles(data_name + ".dis", as_name + ".dis");
479
480 if (result) {
481 std::remove(data_name.c_str());
482 std::remove(as_name.c_str());
483 std::remove((data_name + ".dis").c_str());
484 std::remove((as_name + ".dis").c_str());
485 }
486
487 return result;
488 }
489
490 bool DisassembleBinary(std::string file, std::string* error_msg) {
491 std::vector<std::string> args;
492
493 args.push_back(GetDisassembleCommand());
494 args.push_back(file);
495 args.push_back("| sed -n \'/<.data>/,$p\' | sed -e \'s/.*://\'");
496 args.push_back(">");
497 args.push_back(file+".dis");
498 std::string cmd = Join(args, ' ');
499
500 args.clear();
501 args.push_back("/bin/sh");
502 args.push_back("-c");
503 args.push_back(cmd);
504
505 return Exec(args, error_msg);
506 }
507
508 std::string WriteToFile(std::vector<uint8_t>& buffer, std::string test_name) {
509 std::string file_name = GetTmpnam() + std::string("---") + test_name;
510 const char* data = reinterpret_cast<char*>(buffer.data());
511 std::ofstream s_out(file_name + ".o");
512 s_out.write(data, buffer.size());
513 s_out.close();
514 return file_name + ".o";
515 }
516
517 bool CompareFiles(std::string f1, std::string f2) {
518 std::ifstream f1_in(f1);
519 std::ifstream f2_in(f2);
520
521 bool result = std::equal(std::istreambuf_iterator<char>(f1_in),
522 std::istreambuf_iterator<char>(),
523 std::istreambuf_iterator<char>(f2_in));
524
525 f1_in.close();
526 f2_in.close();
527
528 return result;
529 }
530
531 // Compile the given assembly code and extract the binary, if possible. Put result into res.
532 bool Compile(std::string assembly_code, NativeAssemblerResult* res, std::string test_name) {
533 res->ok = false;
534 res->code.reset(nullptr);
535
536 res->base_name = GetTmpnam() + std::string("---") + test_name;
537
538 // TODO: Lots of error checking.
539
540 std::ofstream s_out(res->base_name + ".S");
541 s_out << assembly_code;
542 s_out.close();
543
544 if (!Assemble((res->base_name + ".S").c_str(), (res->base_name + ".o").c_str(),
545 &res->error_msg)) {
546 res->error_msg = "Could not compile.";
547 return false;
548 }
549
550 std::string odump = Objdump(res->base_name + ".o");
551 if (odump.length() == 0) {
552 res->error_msg = "Objdump failed.";
553 return false;
554 }
555
556 std::istringstream iss(odump);
557 std::istream_iterator<std::string> start(iss);
558 std::istream_iterator<std::string> end;
559 std::vector<std::string> tokens(start, end);
560
561 if (tokens.size() < OBJDUMP_SECTION_LINE_MIN_TOKENS) {
562 res->error_msg = "Objdump output not recognized: too few tokens.";
563 return false;
564 }
565
566 if (tokens[1] != ".text") {
567 res->error_msg = "Objdump output not recognized: .text not second token.";
568 return false;
569 }
570
571 std::string lengthToken = "0x" + tokens[2];
572 std::istringstream(lengthToken) >> std::hex >> res->length;
573
574 std::string offsetToken = "0x" + tokens[5];
575 uintptr_t offset;
576 std::istringstream(offsetToken) >> std::hex >> offset;
577
578 std::ifstream obj(res->base_name + ".o");
579 obj.seekg(offset);
580 res->code.reset(new std::vector<uint8_t>(res->length));
581 obj.read(reinterpret_cast<char*>(&(*res->code)[0]), res->length);
582 obj.close();
583
584 res->ok = true;
585 return true;
586 }
587
588 // Remove temporary files.
589 void Clean(const NativeAssemblerResult* res) {
590 std::remove((res->base_name + ".S").c_str());
591 std::remove((res->base_name + ".o").c_str());
592 std::remove((res->base_name + ".o.dump").c_str());
593 }
594
595 // Check whether file exists. Is used for commands, so strips off any parameters: anything after
596 // the first space. We skip to the last slash for this, so it should work with directories with
597 // spaces.
598 static bool FileExists(std::string file) {
599 if (file.length() == 0) {
600 return false;
601 }
602
603 // Need to strip any options.
604 size_t last_slash = file.find_last_of('/');
605 if (last_slash == std::string::npos) {
606 // No slash, start looking at the start.
607 last_slash = 0;
608 }
609 size_t space_index = file.find(' ', last_slash);
610
611 if (space_index == std::string::npos) {
612 std::ifstream infile(file.c_str());
613 return infile.good();
614 } else {
615 std::string copy = file.substr(0, space_index - 1);
616
617 struct stat buf;
618 return stat(copy.c_str(), &buf) == 0;
619 }
620 }
621
622 static std::string GetGCCRootPath() {
623 return "prebuilts/gcc/linux-x86";
624 }
625
626 static std::string GetRootPath() {
627 // 1) Check ANDROID_BUILD_TOP
628 char* build_top = getenv("ANDROID_BUILD_TOP");
629 if (build_top != nullptr) {
630 return std::string(build_top) + "/";
631 }
632
633 // 2) Do cwd
634 char temp[1024];
635 return getcwd(temp, 1024) ? std::string(temp) + "/" : std::string("");
636 }
637
638 std::string FindTool(std::string tool_name) {
639 // Find the current tool. Wild-card pattern is "arch-string*tool-name".
640 std::string gcc_path = GetRootPath() + GetGCCRootPath();
641 std::vector<std::string> args;
642 args.push_back("find");
643 args.push_back(gcc_path);
644 args.push_back("-name");
645 args.push_back(GetArchitectureString() + "*" + tool_name);
646 args.push_back("|");
647 args.push_back("sort");
648 args.push_back("|");
649 args.push_back("tail");
650 args.push_back("-n");
651 args.push_back("1");
652 std::string tmp_file = GetTmpnam();
653 args.push_back(">");
654 args.push_back(tmp_file);
655 std::string sh_args = Join(args, ' ');
656
657 args.clear();
658 args.push_back("/bin/sh");
659 args.push_back("-c");
660 args.push_back(sh_args);
661
662 std::string error_msg;
663 if (!Exec(args, &error_msg)) {
664 EXPECT_TRUE(false) << error_msg;
665 return "";
666 }
667
668 std::ifstream in(tmp_file.c_str());
669 std::string line;
670 if (!std::getline(in, line)) {
671 in.close();
672 std::remove(tmp_file.c_str());
673 return "";
674 }
675 in.close();
676 std::remove(tmp_file.c_str());
677 return line;
678 }
679
680 // Use a consistent tmpnam, so store it.
681 std::string GetTmpnam() {
682 if (tmpnam_.length() == 0) {
Andreas Gampeb40c6a72014-05-02 14:25:12 -0700683 ScratchFile tmp;
684 tmpnam_ = tmp.GetFilename() + "asm";
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700685 }
686 return tmpnam_;
687 }
688
Ian Rogers700a4022014-05-19 16:49:03 -0700689 std::unique_ptr<Ass> assembler_;
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700690
691 std::string resolved_assembler_cmd_;
692 std::string resolved_objdump_cmd_;
693 std::string resolved_disassemble_cmd_;
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700694
Andreas Gampe7747c8d2014-08-06 14:53:03 -0700695 std::string android_data_;
696
Andreas Gampe5a4fa822014-03-31 16:50:12 -0700697 static constexpr size_t OBJDUMP_SECTION_LINE_MIN_TOKENS = 6;
698};
699
700} // namespace art
701
702#endif // ART_COMPILER_UTILS_ASSEMBLER_TEST_H_