Home
last modified time | relevance | path

Searched refs:simulator (Results 1 – 25 of 134) sorted by relevance

123456

/external/vixl/test/aarch64/examples/
Dtest-examples.cc104 saved_xregs[0] = simulator.ReadXRegister(19); \
105 saved_xregs[1] = simulator.ReadXRegister(20); \
106 saved_xregs[2] = simulator.ReadXRegister(21); \
107 saved_xregs[3] = simulator.ReadXRegister(22); \
108 saved_xregs[4] = simulator.ReadXRegister(23); \
109 saved_xregs[5] = simulator.ReadXRegister(24); \
110 saved_xregs[6] = simulator.ReadXRegister(25); \
111 saved_xregs[7] = simulator.ReadXRegister(26); \
112 saved_xregs[8] = simulator.ReadXRegister(27); \
113 saved_xregs[9] = simulator.ReadXRegister(28); \
[all …]
/external/vixl/examples/aarch64/
Dswap4.cc56 Simulator simulator(&decoder); in main() local
65 simulator.WriteXRegister(0, 0x1111111111111111); in main()
66 simulator.WriteXRegister(1, 0x2222222222222222); in main()
67 simulator.WriteXRegister(2, 0x3333333333333333); in main()
68 simulator.WriteXRegister(3, 0x4444444444444444); in main()
76 simulator.ReadXRegister(0), simulator.ReadXRegister(1), in main()
77 simulator.ReadXRegister(2), simulator.ReadXRegister(3)); in main()
80 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&swap4)); in main()
88 simulator.ReadXRegister(0), simulator.ReadXRegister(1), in main()
89 simulator.ReadXRegister(2), simulator.ReadXRegister(3)); in main()
Dcheck-bounds.cc64 void run_function(Simulator* simulator, in run_function() argument
69 simulator->WriteXRegister(0, value); in run_function()
70 simulator->WriteXRegister(1, low); in run_function()
71 simulator->WriteXRegister(2, high); in run_function()
73 simulator->RunFrom(function); in run_function()
76 simulator->ReadXRegister(0) ? "is" : "is not", in run_function()
80 simulator->ResetState(); in run_function()
86 Simulator simulator(&decoder); in main() local
96 run_function(&simulator, function, 546, 50, 1000); in main()
97 run_function(&simulator, function, 62, 100, 200); in main()
[all …]
Dswap-int32.cc70 Simulator simulator(&decoder); in main() local
79 simulator.WriteWRegister(0, 0x11111111); in main()
80 simulator.WriteWRegister(1, 0x22222222); in main()
86 simulator.ReadWRegister(0), simulator.ReadWRegister(1)); in main()
89 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&swap_int32)); in main()
95 simulator.ReadWRegister(0), simulator.ReadWRegister(1)); in main()
Dadd4-double.cc61 Simulator simulator(&decoder); in main() local
74 simulator.WriteXRegister(0, a); in main()
75 simulator.WriteDRegister(0, b); in main()
76 simulator.WriteXRegister(1, c); in main()
77 simulator.WriteDRegister(1, d); in main()
78 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&add4_double)); in main()
81 a, b, c, d, simulator.ReadDRegister(0)); in main()
Dadd3-double.cc53 Simulator simulator(&decoder); in main() local
65 simulator.WriteDRegister(0, a); in main()
66 simulator.WriteDRegister(1, b); in main()
67 simulator.WriteDRegister(2, c); in main()
68 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&add3_double)); in main()
69 printf("%f + %f + %f = %f\n", a, b, c, simulator.ReadDRegister(0)); in main()
Dliteral.cc39 Simulator simulator(&decoder); in LiteralExample() local
73 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&start)); in LiteralExample()
74 printf("111 + 222 = %" PRId64 "\n", simulator.ReadXRegister(0)); in LiteralExample()
81 simulator.RunFrom(reinterpret_cast<Instruction*>(code)); in LiteralExample()
85 simulator.ReadXRegister(0)); in LiteralExample()
87 return simulator.ReadXRegister(0); in LiteralExample()
Dcrc-checksums.cc85 Simulator simulator(&decoder); in runExample() local
86 simulator.WriteXRegister(0, msg_addr); in runExample()
87 simulator.WriteXRegister(1, msg_size); in runExample()
88 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&func)); in runExample()
89 printf("crc32(\"%s\")=0x%x\n", msg, simulator.ReadWRegister(0)); in runExample()
Dsum-array.cc68 Simulator simulator(&decoder); in main() local
79 simulator.WriteXRegister(0, data_addr); in main()
80 simulator.WriteXRegister(1, ARRAY_SIZE(data)); in main()
81 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&sum_array)); in main()
87 printf("%d = %d\n", data[i], simulator.ReadWRegister(0)); in main()
Dsimulated-runtime-calls.cc106 Simulator simulator(&decoder); in main() local
110 simulator.WriteWRegister(0, input_a); in main()
111 simulator.WriteWRegister(1, input_b); in main()
112 simulator.RunFrom(start); in main()
113 printf("The final result is %d\n", simulator.ReadWRegister(0)); in main()
Dgetting-started.cc50 Simulator simulator(&decoder); in main() local
57 simulator.WriteXRegister(0, 0x8899aabbccddeeff); in main()
58 simulator.RunFrom(masm.GetLabelAddress<Instruction *>(&demo_function)); in main()
59 printf("x0 = %" PRIx64 "\n", simulator.ReadXRegister(0)); in main()
Dabs.cc52 Simulator simulator(&decoder); in main() local
62 simulator.WriteXRegister(0, input_value); in main()
63 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&abs)); in main()
66 simulator.ReadXRegister(0)); in main()
Dfactorial.cc62 Simulator simulator(&decoder); in main() local
72 simulator.WriteXRegister(0, input_val); in main()
73 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&factorial)); in main()
76 simulator.ReadXRegister(0)); in main()
Dneon-matrix-multiply.cc104 Simulator simulator(&decoder); in main() local
161 simulator.ResetState(); in main()
162 simulator.WriteXRegister(0, reinterpret_cast<uintptr_t>(output)); in main()
163 simulator.WriteXRegister(1, reinterpret_cast<uintptr_t>(mat1)); in main()
164 simulator.WriteXRegister(2, reinterpret_cast<uintptr_t>(mat2)); in main()
165 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&neon_matrix_multiply)); in main()
Dnon-const-visitor.cc67 Simulator simulator(&simulator_decoder); in RunNonConstVisitorTestGeneratedCode() local
71 simulator.WriteXRegister(0, a); in RunNonConstVisitorTestGeneratedCode()
72 simulator.WriteXRegister(1, b); in RunNonConstVisitorTestGeneratedCode()
73 simulator.RunFrom(start_instr); in RunNonConstVisitorTestGeneratedCode()
74 int64_t res = simulator.ReadXRegister(0); in RunNonConstVisitorTestGeneratedCode()
Dfactorial-rec.cc64 Simulator simulator(&decoder); in main() local
74 simulator.WriteXRegister(0, input_val); in main()
75 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&factorial_rec)); in main()
78 simulator.ReadXRegister(0)); in main()
Dadd2-vectors.cc135 Simulator simulator(&decoder); in main() local
136 simulator.WriteXRegister(0, vecA_addr); in main()
137 simulator.WriteXRegister(1, vecB_addr); in main()
138 simulator.WriteXRegister(2, ARRAY_SIZE(vecA)); in main()
144 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&add2_vectors)); in main()
/external/v8/src/profiler/
Dtick-sample.cc93 Simulator* simulator = isolate->thread_local_top()->simulator_; in FillRegisters() local
95 if (simulator == nullptr) return false; in FillRegisters()
97 if (!simulator->has_bad_pc()) { in FillRegisters()
98 state->pc = reinterpret_cast<void*>(simulator->get_pc()); in FillRegisters()
100 state->sp = reinterpret_cast<void*>(simulator->get_register(Simulator::sp)); in FillRegisters()
101 state->fp = reinterpret_cast<void*>(simulator->get_register(Simulator::r11)); in FillRegisters()
102 state->lr = reinterpret_cast<void*>(simulator->get_register(Simulator::lr)); in FillRegisters()
104 state->pc = reinterpret_cast<void*>(simulator->pc()); in FillRegisters()
105 state->sp = reinterpret_cast<void*>(simulator->sp()); in FillRegisters()
106 state->fp = reinterpret_cast<void*>(simulator->fp()); in FillRegisters()
[all …]
/external/libbackup/src/com/google/android/libraries/backup/shadow/
DBackupAgentHelperShadow.java136 final BackupHelperSimulator simulator; in addHelper() local
138 simulator = SharedPreferencesBackupHelperSimulator.fromHelper( in addHelper()
141 simulator = FileBackupHelperSimulator.fromHelper(keyPrefix, (FileBackupHelper) helper); in addHelper()
145 simulator = new UnsupportedBackupHelperSimulator(keyPrefix, helper); in addHelper()
147 helperSimulators.put(keyPrefix, simulator); in addHelper()
157 BackupHelperSimulator simulator = simulatorEntry.getValue(); in onBackup() local
158 backupDataMapBuilder.put(keyPrefix, simulator.backup(realHelper)); in onBackup()
177 BackupHelperSimulator simulator = simulatorEntry.getValue(); in onRestore() local
178 simulator.restore(realHelper, dataToRestore); in onRestore()
/external/pdfium/testing/
Dfake_file_access.cpp19 explicit FileAccessWrapper(FakeFileAccess* simulator) in FileAccessWrapper() argument
20 : simulator_(simulator) { in FileAccessWrapper()
40 explicit FileAvailImpl(FakeFileAccess* simulator) : simulator_(simulator) { in FileAvailImpl() argument
58 explicit DownloadHintsImpl(FakeFileAccess* simulator) in DownloadHintsImpl() argument
59 : simulator_(simulator) { in DownloadHintsImpl()
/external/vixl/test/aarch64/
Dtest-assembler-aarch64.h98 simulator.SetCPUFeatures(CPUFeatures(__VA_ARGS__))
111 Simulator simulator(&simulator_decoder); \
112 simulator.SetColouredTrace(Test::coloured_trace()); \
113 simulator.SetInstructionStats(Test::instruction_stats()); \
114 simulator.SetCPUFeatures(CPUFeatures::None()); \
121 simulator.ResetState(); \
173 simulator.GetCPUFeatures()->With(CPUFeatures::kNEON); \
174 CPUFeatures const& seen = simulator.GetSeenFeatures(); \
198 simulator.RunFrom(masm.GetBuffer()->GetStartAddress<Instruction*>())
/external/vixl/doc/aarch64/
Dgetting-started-aarch64.md8 generated code in the VIXL simulator.
14 Creating the macro assembler and the simulator.
18 the simulator are included. You should have the following lines at the beginning
21 #include "aarch64/simulator-aarch64.h"
38 We also need to set up the simulator. The simulator uses a Decoder object to
40 decoder and bind our simulator to this decoder.
43 Simulator simulator(&decoder);
176 Running the code in the simulator.
179 Now we are going to see how to use the simulator to run the code that we
182 Use the simulator to assign a value to the registers. Our previous code example
[all …]
/external/vixl/benchmarks/aarch64/
Dbench-mixed-sim.cc76 Simulator simulator(&decoder); in main() local
77 simulator.SetCPUFeatures(CPUFeatures::All()); in main()
83 simulator.RunFrom(start); in main()
/external/crosvm/tpm2/src/
Dlib.rs49 let mut simulator = Simulator { _priv: () }; in singleton_in_current_directory() localVariable
59 let _ = simulator.execute_command(startup_command); in singleton_in_current_directory()
61 simulator in singleton_in_current_directory()
/external/v8/src/execution/arm/
Dsimulator-arm.cc702 Simulator* sim = isolate_data->simulator(); in current()
3884 void Unop(Simulator* simulator, int Vd, int Vm, std::function<T(T)> unop) { in Unop() argument
3887 simulator->get_neon_register(Vm, src); in Unop()
3891 simulator->set_neon_register(Vd, src); in Unop()
3895 void Binop(Simulator* simulator, int Vd, int Vm, int Vn, in Binop() argument
3899 simulator->get_neon_register(Vn, src1); in Binop()
3900 simulator->get_neon_register(Vm, src2); in Binop()
3904 simulator->set_neon_register(Vd, src1); in Binop()
3929 void Widen(Simulator* simulator, int Vd, int Vm) { in Widen() argument
3933 simulator->get_neon_register<T, kDoubleSize>(Vm, src); in Widen()
[all …]

123456