summaryrefslogtreecommitdiffhomepage
path: root/test-asm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test-asm.cpp')
-rw-r--r--test-asm.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test-asm.cpp b/test-asm.cpp
index 1d4634e..2d3afa0 100644
--- a/test-asm.cpp
+++ b/test-asm.cpp
@@ -39,7 +39,7 @@ protected:
TEST_F(AsmTest, Intel64_add) {
Segment segment;
- AsmArgs args{{AsmArgs::Register32("eax"), AsmArgs::Immediate32(1)}};
+ Asm::Args args{{Asm::Args::Register32("eax"), Asm::Args::Immediate32(1)}};
segment.push_back(makeOp("add", args));
ASSERT_EQ(segment.size(), 1);
@@ -48,7 +48,7 @@ TEST_F(AsmTest, Intel64_add) {
TEST_F(AsmTest, Intel64_int_0) {
Segment segment;
- AsmArgs args{{AsmArgs::Immediate8(0)}};
+ Asm::Args args{{Asm::Args::Immediate8(0)}};
segment.push_back(makeOp("int", args));
ASSERT_EQ(segment.size(), 1);
@@ -57,7 +57,7 @@ TEST_F(AsmTest, Intel64_int_0) {
TEST_F(AsmTest, Intel64_int_1) {
Segment segment;
- AsmArgs args{{AsmArgs::Immediate8(1)}};
+ Asm::Args args{{Asm::Args::Immediate8(1)}};
segment.push_back(makeOp("int", args));
ASSERT_EQ(segment.size(), 1);
@@ -66,7 +66,7 @@ TEST_F(AsmTest, Intel64_int_1) {
TEST_F(AsmTest, Intel64_int_5) {
Segment segment;
- AsmArgs args{{AsmArgs::Immediate8(5)}};
+ Asm::Args args{{Asm::Args::Immediate8(5)}};
segment.push_back(makeOp("int", args));
ASSERT_EQ(segment.size(), 1);
@@ -93,12 +93,12 @@ TEST_F(AsmTest, Intel64_multiple) {
Segment segment;
segment.push_back(makeOp("nop"));
- AsmArgs args0{{AsmArgs::Immediate8(5)}};
+ Asm::Args args0{{Asm::Args::Immediate8(5)}};
segment.push_back(makeOp("int", args0));
segment.push_back(makeOp("ret"));
segment.push_back(makeLabel("data1"));
segment.push_back(makeOp("ret"));
- AsmArgs args1{{AsmArgs::Label("data1")}};
+ Asm::Args args1{{Asm::Args::Label("data1")}};
segment.push_back(makeOp("jmp", args1));
segment.push_back(makeData({1, 2, 3}));