summaryrefslogtreecommitdiffhomepage
path: root/test-asm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test-asm.cpp')
-rw-r--r--test-asm.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test-asm.cpp b/test-asm.cpp
index d839683..256902c 100644
--- a/test-asm.cpp
+++ b/test-asm.cpp
@@ -39,7 +39,7 @@ protected:
TEST_F(AsmTest, Intel64_add) {
Segment segment;
- AsmArgs args{{Register32("eax"), Immediate32(1)}};
+ AsmArgs args{{AsmArgs::Register32("eax"), AsmArgs::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{{Immediate8(0)}};
+ AsmArgs args{{AsmArgs::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{{Immediate8(1)}};
+ AsmArgs args{{AsmArgs::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{{Immediate8(5)}};
+ AsmArgs args{{AsmArgs::Immediate8(5)}};
segment.push_back(makeOp("int", args));
ASSERT_EQ(segment.size(), 1);
@@ -93,7 +93,7 @@ TEST_F(AsmTest, Intel64_multiple) {
Segment segment;
segment.push_back(makeOp("nop"));
- AsmArgs args{{Immediate8(5)}};
+ AsmArgs args{{AsmArgs::Immediate8(5)}};
segment.push_back(makeOp("int", args));
segment.push_back(makeOp("ret"));
segment.push_back(makeLabel("data1"));