| OLD | NEW |
| 1 //===- unittest/IceParseInstsTest.cpp - test instruction errors -----------===// | 1 //===- unittest/IceParseInstsTest.cpp - test instruction errors -----------===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #pragma clang diagnostic push | 12 #pragma clang diagnostic push |
| 13 #pragma clang diagnostic ignored "-Wunused-parameter" | 13 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 14 #pragma clang diagnostic ignored "-Wshadow" |
| 14 #include "llvm/ADT/STLExtras.h" | 15 #include "llvm/ADT/STLExtras.h" |
| 15 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" | 16 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" |
| 16 #include "llvm/Bitcode/NaCl/NaClLLVMBitCodes.h" | 17 #include "llvm/Bitcode/NaCl/NaClLLVMBitCodes.h" |
| 17 #pragma clang diagnostic pop | 18 #pragma clang diagnostic pop |
| 18 | 19 |
| 19 #include "BitcodeMunge.h" | 20 #include "BitcodeMunge.h" |
| 20 #include "unittests/Bitcode/NaClMungeTest.h" | 21 #include "unittests/Bitcode/NaClMungeTest.h" |
| 21 | 22 |
| 22 using namespace llvm; | 23 using namespace llvm; |
| 23 using namespace naclmungetest; | 24 using namespace naclmungetest; |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 EXPECT_EQ("Error(62:4): Invalid function record: <24 2 1 31>\n", | 396 EXPECT_EQ("Error(62:4): Invalid function record: <24 2 1 31>\n", |
| 396 Munger.getTestResults()); | 397 Munger.getTestResults()); |
| 397 EXPECT_FALSE(DumpMunger.runTestForAssembly(ARRAY(Align30))); | 398 EXPECT_FALSE(DumpMunger.runTestForAssembly(ARRAY(Align30))); |
| 398 EXPECT_EQ( | 399 EXPECT_EQ( |
| 399 " store float %p1, float* %p0, align 0;\n" | 400 " store float %p1, float* %p0, align 0;\n" |
| 400 "Error(62:4): store: Illegal alignment for float. Expects: 1 or 4\n", | 401 "Error(62:4): store: Illegal alignment for float. Expects: 1 or 4\n", |
| 401 DumpMunger.getLinesWithSubstring("store")); | 402 DumpMunger.getLinesWithSubstring("store")); |
| 402 } | 403 } |
| 403 | 404 |
| 404 } // end of anonymous namespace | 405 } // end of anonymous namespace |
| OLD | NEW |