1 //===-- AssemblerTest.cpp ---------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "../Common/AssemblerUtils.h"
10 #include "ARMInstrInfo.h"
16 class ARMMachineFunctionGeneratorTest
17 : public MachineFunctionGeneratorBaseTest
{
19 ARMMachineFunctionGeneratorTest()
20 : MachineFunctionGeneratorBaseTest("armv7-none-linux-gnueabi", "") {}
22 static void SetUpTestCase() {
23 LLVMInitializeARMTargetInfo();
24 LLVMInitializeARMTargetMC();
25 LLVMInitializeARMTarget();
26 LLVMInitializeARMAsmPrinter();
30 TEST_F(ARMMachineFunctionGeneratorTest
, DISABLED_JitFunction
) {
31 Check({}, MCInst(), 0x1e, 0xff, 0x2f, 0xe1);
34 TEST_F(ARMMachineFunctionGeneratorTest
, DISABLED_JitFunctionADDrr
) {
35 Check({{ARM::R0
, APInt()}},
36 MCInstBuilder(ARM::ADDrr
)
43 0x00, 0x00, 0x80, 0xe0, 0x1e, 0xff, 0x2f, 0xe1);
47 } // namespace exegesis