Commit f746f3d3 by John Porto

Adds basic tests to the AssemblerX8632.

More tests will be added during the AssemblerX8664 (on a separate CL.) BUG= R=jvoung@chromium.org Review URL: https://codereview.chromium.org/1231903002.
parent e105c74b
......@@ -218,6 +218,7 @@ SB_OBJS=$(patsubst %.cpp, $(SB_OBJDIR)/%.o, $(SRCS))
UNITTEST_SRCS = \
BitcodeMunge.cpp \
IceAssemblerX8632Test.cpp \
IceELFSectionTest.cpp \
IceParseInstsTest.cpp
......
......@@ -332,10 +332,10 @@ public:
void setcc(typename Traits::Cond::BrCond condition,
const typename Traits::Address &address);
// All mov() overloads are tested.
void mov(Type Ty, typename Traits::GPRRegister dst, const Immediate &src);
void mov(Type Ty, typename Traits::GPRRegister dst,
typename Traits::GPRRegister src);
void mov(Type Ty, typename Traits::GPRRegister dst,
const typename Traits::Address &src);
void mov(Type Ty, const typename Traits::Address &dst,
......@@ -824,6 +824,9 @@ public:
void hlt();
void ud2();
// j(Label) is fully tested.
// j(ConstantRelocatable) is not tested as the test can not easily create such
// an argument.
void j(typename Traits::Cond::BrCond condition, Label *label,
bool near = kFarJump);
void j(typename Traits::Cond::BrCond condition,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment