aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPierre Langlois <pierre.langlois@arm.com>2017-01-24 19:04:12 +0000
committerPierre Langlois <pierre.langlois@arm.com>2017-01-25 11:10:17 +0000
commit59bfe1ca76d3155c56ab97fba60646a734aeb01b (patch)
treeaac17a769d66031f74264573211f0a8d9e647ccf /examples
parentbde2e4b5ce376456d50a972b6f3aaee3475f8786 (diff)
[aarch64] Do not mix the Assembler and MacroAssembler in tests
Cleanup all of vixl64's test to stop use ExactAssemblyScope instead of CodeBufferCheckScope. The latter allows for mixing the assembler and macro-assembler. Fixing the disassembler tests were not completely obvious. We used to have a different SETUP macro for the Assembler and MacroAssembler. It's much simpler to have a single SETUP macro that always creates a MacroAssembler and then use COMPARE or COMPARE_MACRO to define the tests. The former allows the Assembler with an ExactAssemblyScope while the latter does not. Change-Id: Ic37c25742b77767f257f88e06c7e4106ea55425f
Diffstat (limited to 'examples')
-rw-r--r--examples/aarch64/literal.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/aarch64/literal.cc b/examples/aarch64/literal.cc
index 77607c76..f1c5b334 100644
--- a/examples/aarch64/literal.cc
+++ b/examples/aarch64/literal.cc
@@ -42,10 +42,9 @@ int64_t LiteralExample(int64_t a, int64_t b) {
Label start;
masm.Bind(&start);
{
- CodeBufferCheckScope scope(&masm,
- kInstructionSize + sizeof(int64_t),
- CodeBufferCheckScope::kCheck,
- CodeBufferCheckScope::kExactSize);
+ ExactAssemblyScope scope(&masm,
+ kInstructionSize + sizeof(int64_t),
+ ExactAssemblyScope::kExactSize);
Label over_literal;
__ b(&over_literal);
__ place(&manually_placed_literal);