summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/cmp.h
blob: 7cad00885613ef71b227f50e7e54b485ec7b78b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Compare Two Operands

#pragma once

#include <asm/assembler.h>

class Op_cmp: public Op
{
public:
 Op_cmp(const Asm::Args& args);

public:
 std::vector<uint8_t> getCode() override
 {
  return machine_code;
 }

 size_t size() override
 {
  return machine_code.size();
 }

 bool optimize() override ///< returns true if changed
 {
  return false;
 }

protected:
 std::vector<uint8_t> machine_code;
};