Home
last modified time | relevance | path

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

12345

/third_party/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 …]
/third_party/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()
Dsve-strlen.cc89 Simulator simulator(&decoder); in main() local
103 simulator.ResetState(); in main()
104 simulator.WriteXRegister(0, reinterpret_cast<uintptr_t>(example_input)); in main()
105 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&sve_strlen)); in main()
109 simulator.ReadXRegister(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()
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()
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.cc77 Simulator simulator(&simulator_decoder); in RunNonConstVisitorTestGeneratedCode() local
81 simulator.WriteXRegister(0, a); in RunNonConstVisitorTestGeneratedCode()
82 simulator.WriteXRegister(1, b); in RunNonConstVisitorTestGeneratedCode()
83 simulator.RunFrom(start_instr); in RunNonConstVisitorTestGeneratedCode()
84 int64_t res = simulator.ReadXRegister(0); in RunNonConstVisitorTestGeneratedCode()
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()
Dgetting-started.cc58 Simulator simulator(&decoder); in main() local
60 simulator.WriteXRegister(0, 0x8899aabbccddeeff); in main()
61 simulator.RunFrom(masm.GetLabelAddress<Instruction *>(&demo)); in main()
62 printf("x0 = %" PRIx64 "\n", simulator.ReadXRegister(0)); in main()
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, vec_a_addr); in main()
137 simulator.WriteXRegister(1, vec_b_addr); in main()
138 simulator.WriteXRegister(2, ARRAY_SIZE(vec_a)); in main()
144 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&add2_vectors)); in main()
/third_party/node/deps/v8/src/profiler/
Dtick-sample.cc94 Simulator* simulator = isolate->thread_local_top()->simulator_; in FillRegisters() local
96 if (simulator == nullptr) return false; in FillRegisters()
98 if (!simulator->has_bad_pc()) { in FillRegisters()
99 state->pc = reinterpret_cast<void*>(simulator->get_pc()); in FillRegisters()
101 state->sp = reinterpret_cast<void*>(simulator->get_register(Simulator::sp)); in FillRegisters()
102 state->fp = reinterpret_cast<void*>(simulator->get_register(Simulator::r11)); in FillRegisters()
103 state->lr = reinterpret_cast<void*>(simulator->get_register(Simulator::lr)); in FillRegisters()
105 state->pc = reinterpret_cast<void*>(simulator->pc()); in FillRegisters()
106 state->sp = reinterpret_cast<void*>(simulator->sp()); in FillRegisters()
107 state->fp = reinterpret_cast<void*>(simulator->fp()); in FillRegisters()
[all …]
/third_party/vixl/test/aarch64/
Dtest-assembler-aarch64.h96 simulator.SetCPUFeatures(CPUFeatures(__VA_ARGS__))
106 Simulator simulator(&simulator_decoder, stdout, __VA_ARGS__); \
107 simulator.SetColouredTrace(Test::coloured_trace()); \
108 simulator.SetCPUFeatures(CPUFeatures::None())
124 Simulator simulator(&simulator_decoder); \
125 simulator.SetColouredTrace(Test::coloured_trace()); \
126 simulator.SetCPUFeatures(CPUFeatures::None())
130 simulator.ResetState(); \
168 simulator.GetCPUFeatures()->With(CPUFeatures::kNEON); \
169 CPUFeatures const& seen = simulator.GetSeenFeatures(); \
[all …]
/third_party/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 …]
/third_party/node/deps/v8/src/execution/arm/
Dsimulator-arm.cc740 Simulator* sim = isolate_data->simulator(); in current()
3935 void Unop(Simulator* simulator, int Vd, int Vm, std::function<T(T)> unop) { in Unop() argument
3938 simulator->get_neon_register<T, SIZE>(Vm, src); in Unop()
3942 simulator->set_neon_register<T, SIZE>(Vd, src); in Unop()
3946 void Binop(Simulator* simulator, int Vd, int Vm, int Vn, in Binop() argument
3950 simulator->get_neon_register<T, SIZE>(Vn, src1); in Binop()
3951 simulator->get_neon_register<T, SIZE>(Vm, src2); in Binop()
3955 simulator->set_neon_register<T, SIZE>(Vd, src1); in Binop()
3967 void Widen(Simulator* simulator, int Vd, int Vm) { in Widen() argument
3971 simulator->get_neon_register<T, kDoubleSize>(Vm, src); in Widen()
[all …]
/third_party/cJSON/tests/unity/extras/fixture/
Drakefile_helper.rb162 simulator = build_simulator_fields
164 cmd_str = if simulator.nil?
167 … "#{simulator[:command]} #{simulator[:pre_support]} #{executable} #{simulator[:post_support]}"
/third_party/cJSON/tests/unity/examples/example_3/
Drakefile_helper.rb203 simulator = build_simulator_fields
205 cmd_str = if simulator.nil?
208 … "#{simulator[:command]} #{simulator[:pre_support]} #{executable} #{simulator[:post_support]}"
/third_party/cJSON/tests/unity/test/
Drakefile_helper.rb242 simulator = build_simulator_fields
244 cmd_str = if simulator.nil?
247 … "#{simulator[:command]} #{simulator[:pre_support]} #{executable} #{simulator[:post_support]}"

12345