/external/vixl/test/ |
D | test-code-generation-scopes.cc | 47 #define __ masm. 55 aarch32::MacroAssembler masm; in TEST() local 58 CodeBufferCheckScope scope(&masm, aarch32::kA32InstructionSizeInBytes); in TEST() 62 masm.FinalizeCode(); in TEST() 69 aarch64::MacroAssembler masm; in TEST() local 72 CodeBufferCheckScope scope(&masm, aarch64::kInstructionSize); in TEST() 76 masm.FinalizeCode(); in TEST() 83 aarch32::MacroAssembler masm; in TEST() local 86 CodeBufferCheckScope scope(&masm, 2 * aarch32::kA32InstructionSizeInBytes); in TEST() 91 masm.FinalizeCode(); in TEST() [all …]
|
/external/vixl/test/aarch64/ |
D | test-disasm-aarch64.h | 30 MacroAssembler masm; \ 31 masm.GetCPUFeatures()->Combine(CPUFeatures::All()); \ 40 masm.SetGenerateSimulatorCode(true) 45 masm.SetGenerateSimulatorCode(false) 57 Instruction* start = masm.GetBuffer()->GetStartAddress<Instruction*>(); \ 58 Instruction* end = masm.GetBuffer()->GetEndAddress<Instruction*>(); \ 64 masm.Reset(); \ 66 ExactAssemblyScope guard(&masm, \ 69 masm.ASM; \ 71 masm.FinalizeCode(); \ [all …]
|
D | test-assembler-aarch64.h | 80 #define __ masm. 87 MacroAssembler masm; \ 92 MacroAssembler masm; \ 95 masm.SetCPUFeatures(CPUFeatures(__VA_ARGS__)); \ 99 MacroAssembler masm(size + CodeBuffer::kDefaultCapacity, pic); \ 104 MacroAssembler masm; \ 116 masm.SetCPUFeatures(CPUFeatures::None()); \ 117 masm.SetGenerateSimulatorCode(true); \ 129 masm.Reset(); \ 132 SimulationCPUFeaturesScope cpu(&masm, kInfrastructureCPUFeatures); \ [all …]
|
/external/vixl/test/aarch64/examples/ |
D | test-examples.cc | 129 masm.GetLabelAddress<uint64_t>(&Func)); \ 130 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&test)); \ 159 MacroAssembler masm; \ 168 masm.Bind(&test); \ 176 masm.Trace(static_cast<TraceParameters>(trace_parameters), \ 180 masm.Blr(test_function_reg); \ 181 masm.Trace(LOG_ALL, TRACE_DISABLE); \ 182 regs.Dump(&masm); \ 183 masm.Mov(lr, reinterpret_cast<uint64_t>(Simulator::kEndOfSimAddress)); \ 184 masm.Ret(); \ [all …]
|
/external/vixl/examples/aarch64/ |
D | examples.h | 37 void GenerateFactorial(vixl::aarch64::MacroAssembler* masm); 43 void GenerateFactorialRec(vixl::aarch64::MacroAssembler* masm); 49 void GenerateNEONMatrixMultiply(vixl::aarch64::MacroAssembler* masm); 55 void GenerateAdd2Vectors(vixl::aarch64::MacroAssembler* masm); 62 void GenerateAdd3Double(vixl::aarch64::MacroAssembler* masm); 69 void GenerateAdd4Double(vixl::aarch64::MacroAssembler* masm); 76 void GenerateSumArray(vixl::aarch64::MacroAssembler* masm); 82 void GenerateAbs(vixl::aarch64::MacroAssembler* masm); 91 void GenerateCheckBounds(vixl::aarch64::MacroAssembler* masm); 98 void GenerateCrc32(vixl::aarch64::MacroAssembler* masm); [all …]
|
D | literal.cc | 32 #define __ masm. 37 MacroAssembler masm; in LiteralExample() local 41 Literal<int64_t> automatically_placed_literal(111, masm.GetLiteralPool()); in LiteralExample() 46 masm.Bind(&start); in LiteralExample() 48 ExactAssemblyScope scope(&masm, in LiteralExample() 61 masm.FinalizeCode(); in LiteralExample() 65 size_t code_size = masm.GetSizeOfCodeGenerated(); in LiteralExample() 70 memcpy(code, masm.GetBuffer()->GetStartAddress<void*>(), code_size); in LiteralExample() 73 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&start)); in LiteralExample()
|
D | neon-matrix-multiply.cc | 32 #define __ masm-> 46 static void GenerateMultiplyColumn(MacroAssembler* masm, in GenerateMultiplyColumn() argument 60 void GenerateNEONMatrixMultiply(MacroAssembler* masm) { in GenerateNEONMatrixMultiply() argument 86 GenerateMultiplyColumn(masm, 0, 16); in GenerateNEONMatrixMultiply() 87 GenerateMultiplyColumn(masm, 1, 17); in GenerateNEONMatrixMultiply() 88 GenerateMultiplyColumn(masm, 2, 18); in GenerateNEONMatrixMultiply() 89 GenerateMultiplyColumn(masm, 3, 19); in GenerateNEONMatrixMultiply() 102 MacroAssembler masm; in main() local 108 masm.Bind(&neon_matrix_multiply); in main() 109 GenerateNEONMatrixMultiply(&masm); in main() [all …]
|
D | getting-started.cc | 33 #define __ masm-> 37 void GenerateDemoFunction(MacroAssembler *masm) { in GenerateDemoFunction() argument 48 MacroAssembler masm; in main() local 53 masm.Bind(&demo_function); in main() 54 GenerateDemoFunction(&masm); in main() 55 masm.FinalizeCode(); in main() 58 simulator.RunFrom(masm.GetLabelAddress<Instruction *>(&demo_function)); in main()
|
D | abs.cc | 32 #define __ masm-> 34 void GenerateAbs(MacroAssembler* masm) { in GenerateAbs() argument 50 MacroAssembler masm; in main() local 56 masm.Bind(&abs); in main() 57 GenerateAbs(&masm); in main() 58 masm.FinalizeCode(); in main() 63 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&abs)); in main()
|
D | add3-double.cc | 32 #define __ masm-> 34 void GenerateAdd3Double(MacroAssembler* masm) { in GenerateAdd3Double() argument 51 MacroAssembler masm; in main() local 57 masm.Bind(&add3_double); in main() 58 GenerateAdd3Double(&masm); in main() 59 masm.FinalizeCode(); in main() 68 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&add3_double)); in main()
|
D | sve-strlen.cc | 32 #define __ masm-> 35 void GenerateSVEStrlen(MacroAssembler* masm) { in GenerateSVEStrlen() argument 87 MacroAssembler masm; in main() local 92 masm.GetCPUFeatures()->Combine(CPUFeatures::kSVE); in main() 96 masm.Bind(&sve_strlen); in main() 97 GenerateSVEStrlen(&masm); in main() 98 masm.FinalizeCode(); in main() 105 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&sve_strlen)); in main()
|
D | simulated-runtime-calls.cc | 38 #define __ masm-> 63 void GenerateRuntimeCallExamples(MacroAssembler* masm) { in GenerateRuntimeCallExamples() argument 90 MacroAssembler masm; in main() local 94 masm.Bind(&call_runtime_add_floats); in main() 95 GenerateRuntimeCallExamples(&masm); in main() 96 masm.FinalizeCode(); in main() 99 masm.GetLabelAddress<Instruction*>(&call_runtime_add_floats); in main() 103 disassembler.DisassembleBuffer(start, masm.GetSizeOfCodeGenerated()); in main()
|
D | non-const-visitor.cc | 33 #define __ masm-> 53 void GenerateNonConstVisitorTestCode(MacroAssembler* masm) { in GenerateNonConstVisitorTestCode() argument 89 MacroAssembler masm; in main() local 93 masm.Bind(&code_start); in main() 94 GenerateNonConstVisitorTestCode(&masm); in main() 95 masm.Bind(&code_end); in main() 96 masm.FinalizeCode(); in main() 97 Instruction* instr_start = masm.GetLabelAddress<Instruction*>(&code_start); in main() 98 Instruction* instr_end = masm.GetLabelAddress<Instruction*>(&code_end); in main()
|
D | factorial.cc | 32 #define __ masm-> 34 void GenerateFactorial(MacroAssembler* masm) { in GenerateFactorial() argument 60 MacroAssembler masm; in main() local 66 masm.Bind(&factorial); in main() 67 GenerateFactorial(&masm); in main() 68 masm.FinalizeCode(); in main() 73 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&factorial)); in main()
|
D | add4-double.cc | 32 #define __ masm-> 34 void GenerateAdd4Double(MacroAssembler* masm) { in GenerateAdd4Double() argument 59 MacroAssembler masm; in main() local 65 masm.Bind(&add4_double); in main() 66 GenerateAdd4Double(&masm); in main() 67 masm.FinalizeCode(); in main() 78 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&add4_double)); in main()
|
D | factorial-rec.cc | 32 #define __ masm-> 34 void GenerateFactorialRec(MacroAssembler* masm) { in GenerateFactorialRec() argument 62 MacroAssembler masm; in main() local 68 masm.Bind(&factorial_rec); in main() 69 GenerateFactorialRec(&masm); in main() 70 masm.FinalizeCode(); in main() 75 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&factorial_rec)); in main()
|
D | swap4.cc | 32 #define __ masm-> 34 void GenerateSwap4(MacroAssembler* masm) { in GenerateSwap4() argument 54 MacroAssembler masm; in main() local 60 masm.Bind(&swap4); in main() 61 GenerateSwap4(&masm); in main() 62 masm.FinalizeCode(); in main() 80 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&swap4)); in main()
|
D | check-bounds.cc | 32 #define __ masm-> 34 void GenerateCheckBounds(MacroAssembler* masm) { in GenerateCheckBounds() argument 84 MacroAssembler masm; in main() local 90 masm.Bind(&check_bounds); in main() 91 GenerateCheckBounds(&masm); in main() 92 masm.FinalizeCode(); in main() 95 Instruction* function = masm.GetLabelAddress<Instruction*>(&check_bounds); in main()
|
D | swap-int32.cc | 32 #define __ masm-> 34 void GenerateSwapInt32(MacroAssembler* masm) { in GenerateSwapInt32() argument 68 MacroAssembler masm; in main() local 74 masm.Bind(&swap_int32); in main() 75 GenerateSwapInt32(&masm); in main() 76 masm.FinalizeCode(); in main() 89 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&swap_int32)); in main()
|
/external/vixl/src/ |
D | code-generation-scopes-vixl.h | 153 EmissionCheckScope(MacroAssemblerInterface* masm, 156 Open(masm, size, size_policy); 177 void Open(MacroAssemblerInterface* masm, 180 Open(masm, size, size_policy, kBlockPools); 202 void Open(MacroAssemblerInterface* masm, in Open() argument 206 if (masm == NULL) { in Open() 212 masm_ = masm; in Open() 218 masm->EnsureEmitPoolsFor(size); in Open() 219 masm->BlockPools(); in Open() 222 CodeBufferCheckScope::Open(masm->AsAssemblerBase(), in Open() [all …]
|
/external/vixl/benchmarks/aarch64/ |
D | bench-branch-link-masm.cc | 46 MacroAssembler masm(buffer_size); in main() local 52 masm.Reset(); in main() 56 masm.B(&target_1); in main() 58 masm.Bind(&target_1); in main() 60 masm.B(eq, &target_2); in main() 62 masm.Bind(&target_2); in main() 64 masm.Cbz(x2, &target_3); in main() 66 masm.Bind(&target_3); in main() 68 masm.Tbz(x3, 2, &target_4); in main() 70 masm.Bind(&target_4); in main() [all …]
|
D | bench-branch-masm.cc | 49 MacroAssembler masm(buffer_size); in main() local 55 masm.Reset(); in main() 58 masm.B(&target); in main() 59 masm.B(eq, &target); in main() 60 masm.Cbz(x2, &target); in main() 61 masm.Tbz(x3, 2, &target); in main() 62 masm.Bind(&target); in main() 64 masm.FinalizeCode(); in main()
|
/external/vixl/test/aarch32/ |
D | test-assembler-aarch32.cc | 93 #define __ masm. 106 MacroAssembler masm(BUF_SIZE, isa); \ 107 TestMacroAssembler test(&masm); 109 #define START() masm.GetBuffer()->Reset(); 121 MacroAssembler masm(BUF_SIZE, isa); \ 122 TestMacroAssembler test(&masm); \ 126 harness_scratch.Open(&masm); \ 128 masm.GetBuffer()->Reset(); \ 146 core.Dump(&masm); \ 167 int pcs_offset = masm.IsUsingT32() ? 1 : 0; \ [all …]
|
/external/vixl/examples/aarch32/ |
D | getting-started.cc | 32 #define __ masm-> 34 void GenerateDemo(MacroAssembler* masm) { in GenerateDemo() argument 46 MacroAssembler masm; in main() local 51 masm.Bind(&demo); in main() 52 GenerateDemo(&masm); in main() 55 masm.FinalizeCode(); in main() 59 byte* code = masm.GetBuffer()->GetStartAddress<byte*>(); in main() 60 uint32_t code_size = masm.GetSizeOfCodeGenerated(); in main() 66 masm.GetInstructionSetInUse()); in main()
|
D | abs.cc | 32 #define __ masm-> 34 void GenerateAbs(MacroAssembler* masm) { in GenerateAbs() argument 48 MacroAssembler masm(A32); in main() local 51 masm.Bind(&abs); in main() 52 GenerateAbs(&masm); in main() 53 masm.FinalizeCode(); in main() 58 byte* code = masm.GetBuffer()->GetStartAddress<byte*>(); in main() 59 uint32_t code_size = masm.GetSizeOfCodeGenerated(); in main() 64 masm.GetInstructionSetInUse()); in main()
|