• Home
Name Date Size #Lines LOC

..--

fill-const-array/12-May-2024-125102

verify_aot_tests/12-May-2024-124105

CMakeLists.txtD12-May-202412 KiB241210

README.mdD12-May-20243.6 KiB4638

aot.paD12-May-20242.2 KiB9980

aot_cha.paD12-May-20243.7 KiB8672

aot_cha_panda_files.paD12-May-20242.5 KiB6656

aot_cha_vcalls.paD12-May-20244.3 KiB10084

basics_aot.paD12-May-20241.1 KiB3730

cast_bool.paD12-May-20242 KiB10287

check_verifier.paD12-May-20241.4 KiB5951

checkcast_elimination.paD12-May-20244.3 KiB208183

checkcast_elimination_test.paD12-May-20245 KiB238196

checkcast_nullcheck.paD12-May-20241.3 KiB5246

checker.rbD12-May-202417.2 KiB616482

checker_tests.rbD12-May-20242 KiB7759

cleanup_sso.paD12-May-20241.6 KiB5349

combine_shifts.paD12-May-20244.3 KiB213189

compare_lenarray_with_zero.paD12-May-20241.8 KiB7467

compare_obj.paD12-May-20242.6 KiB112105

compiler_to_interpreter.paD12-May-20242.3 KiB7258

const-array-vectorization.paD12-May-2024946 2722

const_array_test.paD12-May-20243.4 KiB153144

cross_peephole.paD12-May-20242.2 KiB7161

deoptimize_compare.paD12-May-20241.7 KiB6359

disable_intrinsics.paD12-May-20243.4 KiB9991

disasm_and_log_demo.paD12-May-2024842 2219

float_intrinsic.paD12-May-20242.8 KiB10996

float_zero.paD12-May-20241.3 KiB4036

force_an.paD12-May-2024989 2724

force_unresolved_option.paD12-May-20242.7 KiB9285

ifcvt.paD12-May-20244.4 KiB149139

ifcvt_float.paD12-May-20242.4 KiB10196

implicit_nullcheck_tests.paD12-May-20247.5 KiB302263

initobj_osr.paD12-May-20241.5 KiB6247

inline.paD12-May-202426.7 KiB851767

inline_external.paD12-May-20242.3 KiB11597

inline_ic.paD12-May-202412.7 KiB454397

irreducible_loop_test.paD12-May-20241.5 KiB6553

isinstance_elimination.paD12-May-20242.6 KiB125108

isinstance_elimination_test.paD12-May-20241.1 KiB4438

isinstance_nullcheck.paD12-May-20241.2 KiB4338

ldarray_obj.paD12-May-20241.2 KiB4236

llvmaot-broken-ir.paD12-May-20241.3 KiB3832

llvmaot-gc-int-vs-ptr.paD12-May-20241.8 KiB5247

llvmaot-gc-liveness.paD12-May-20241.6 KiB5348

llvmaot-inlines-from-split-module.paD12-May-20241 KiB3226

llvmaot-optlevel.paD12-May-20241.1 KiB4743

llvmaot-tracking.paD12-May-20241,015 3229

loop-unroll-constant.paD12-May-20243.6 KiB132117

lowering_test.paD12-May-20241.6 KiB6458

memory-barrier.paD12-May-2024901 3125

memset.paD12-May-20241 KiB3531

memset_loop_idiom.paD12-May-20243.1 KiB130121

monitor.paD12-May-20242.2 KiB8071

move_nullcheck_out_of_loop.paD12-May-20243.2 KiB131119

osr.paD12-May-20242.3 KiB113100

osr_irtoc_test.paD12-May-20245.7 KiB329307

parameter_test.paD12-May-20243 KiB147138

ref_check_elim_test.paD12-May-20242.2 KiB7669

remove_redundant_checks.paD12-May-20242 KiB7060

scalar_replacement.paD12-May-20241.2 KiB3733

source_line.paD12-May-20242.3 KiB8774

ss_ir_builder.paD12-May-20241.5 KiB6250

stack_overflow.paD12-May-20241.7 KiB5846

tlab_test.paD12-May-20245.7 KiB204181

vcalls_aux.paD12-May-20241.2 KiB5043

virtual_to_static.paD12-May-20242 KiB7466

xor_to_compare_to_xor.paD12-May-20241.4 KiB4743

zero_const_in_save_state.paD12-May-20241.9 KiB6960

README.md

1# Checked Tests
2
3Checked tests is the tests that have additional functionality to check result of the test being run.
4For example, check some event was raised or some IR instruction is appeared after specific optimization.
5
6Each checker's command should start with special token (`'#!'` for panda assembly language, `//!` for other languages) at the
7beginning of the line.
8
9Allowed multiple checkers in a single file. Each checker starts with command `CHECKER` and ends with line without
10command token at the zero position.
11
12Each command is a valid code in the `ruby` language.
13
14## List of commands
15
16* **CHECKER** (description: string) begin new Checker with specified description
17* **RUN** run panda application, following named arguments are allowed:
18    - *force_jit: bool* - run jit compilation for every executed method
19    - *options: string* - additional options for Panda VM
20    - *entry: string* - entry point, default - `_GLOBAL::main`
21    - *result: int* - expected value to be returned by the `panda` application
22    - *abort: int* - expected terminal signal
23* **RUN_PAOC** run paoc application on the compiled panda file. Output panda file will be passed to the following panda
24    run. Thus, `RUN_PAOC` command must be placed before `RUN` command.
25* **EVENT** (event: pattern) search event within all events
26* **EVENT_NEXT** (event: pattern) ordered search event, i.e. search from position of the last founded event
27* **EVENT_NOT** (event: pattern) ensure event is not occurred
28* **EVENT_NEXT_NOT** (event: pattern) ensure event is not occurred after current position
29* **METHOD** (name: string) start check of specified method, all following checks that require specific method will use method specified by this command
30* **PASS_AFTER** (pass_name: string) specify pass after which IR commands should operate
31* **PASS_BEFORE** (pass_name: string) select pass that is right before the specified one
32* **INST** (inst: pattern) search specified instruction in the ir dump file specified by commands `METHOD` and `PASS_AFTER`
33* **INST_NOT** (inst: pattern) equal to `NOT INST`, i.e. check that instruction is not exist
34* **INST_NEXT_NOT** (event: pattern) ensure instruction is not occurred after current position
35* **IR_COUNT** (inst: string) search specified phrase and counts the number in the ir dump file specified by commands `METHOD` and `PASS_AFTER`, returns the value
36* **BLOCK_COUNT** () equal to `IR_COUNT ("BB ")`, i.e. search specified basic blocks and counts the number
37* **TRUE** (condition) ensure the condition is correct
38* **SKIP_IF** (condition) if condition is `true`, skip all commands from that to end of this checker
39* **ASM_METHOD** (name: string) select a specified method in disasm file, next "ASM*" checks will be applied only for this method's code.
40* **ASM_INST** (inst: pattern) select a specified instruction in disasm file, next "ASM*" checks will be applied only for this instruction's code.
41* **ASM/ASM_NEXT/ASM_NOT/ASM_NEXT_NOT** (inst: pattern) same as other similar checks, but search only in a current disasm scope, defined by `ASM_METHOD` or `ASM_INST`.
42If none of these checks were specified, then search will be applied in the whole disasm file.
43* **IN_BLOCK** (block: pattern) limits the search for instructions to one block. The block is defined by lines "props: ..." and "succs: ...". The search pattern is found in the first line "props: rest\_of\_line\_for\_matching". You can define only one block for searching and you can't return to the search in the entire method after in the currently analized compiler pass.
44
45*pattern* can be a string(surrounded by quotes) or regex(surrounded by slashes): string - `"SearchPattern"`, regex - `/SearchPattern/`.
46