1 #include "X86TestBase.h"
2 #include "MCTargetDesc/X86MCTargetDesc.h"
3 #include "llvm/MC/MCInstBuilder.h"
4 #include "llvm/Support/TargetSelect.h"
9 X86TestBase::X86TestBase() : MCATestBase("x86_64-unknown-linux", "skylake") {
10 LLVMInitializeX86TargetInfo();
11 LLVMInitializeX86TargetMC();
12 LLVMInitializeX86Target();
13 LLVMInitializeX86AsmPrinter();
16 void X86TestBase::getSimpleInsts(SmallVectorImpl
<MCInst
> &Insts
,
18 for (unsigned i
= 0U; i
< Repeats
; ++i
) {
19 // vmulps %xmm0, %xmm1, %xmm2
20 Insts
.push_back(MCInstBuilder(X86::VMULPSrr
)
24 // vhaddps %xmm2, %xmm2, %xmm3
25 Insts
.push_back(MCInstBuilder(X86::VHADDPSrr
)
29 // vhaddps %xmm3, %xmm3, %xmm4
30 Insts
.push_back(MCInstBuilder(X86::VHADDPSrr
)