test_cases.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "name": "gc-aot-test-suites",
  3. "description": "Test suites for GC AOT feature",
  4. "sub-requirements": [
  5. {
  6. "req_id": 1,
  7. "issue_id": "633",
  8. "desciption": "Modify existing opcodes to conform to the semantics of the GC proposal when needed.",
  9. "cases": [
  10. {
  11. "name": "local_set",
  12. "description": "Test opcodes: 'WASM_OP_GET_LOCAL', 'WASM_OP_SET_LOCAL'"
  13. },
  14. {
  15. "name": "local_tee",
  16. "description": "Test opcodes: 'WASM_OP_GET_LOCAL', 'WASM_OP_TEE_LOCAL'"
  17. },
  18. {
  19. "name": "table_init",
  20. "description": "Test opcodes: 'WASM_OP_TABLE_INIT'"
  21. },
  22. {
  23. "name": "table_grow",
  24. "description": "Test opcodes: 'WASM_OP_TABLE_GROW'"
  25. },
  26. {
  27. "name": "table_fill",
  28. "description": "Test opcodes: 'WASM_OP_TABLE_FILL'"
  29. },
  30. {
  31. "name": "call_ref",
  32. "description": "Test opcodes: 'WASM_OP_CALL_REF'"
  33. },
  34. {
  35. "name": "return_call_ref",
  36. "description": "Test opcodes: 'WASM_OP_RETURN_CALL_REF'"
  37. },
  38. {
  39. "name": "table_get",
  40. "description": "Test opcodes: 'WASM_OP_TABLE_GET'"
  41. },
  42. {
  43. "name": "table_set",
  44. "description": "Test opcodes: 'WASM_OP_TABLE_SET'"
  45. },
  46. {
  47. "name": "select",
  48. "description": "Test opcodes: 'WASM_OP_SELECT_T'"
  49. }
  50. ]
  51. },
  52. {
  53. "req_id": 2,
  54. "issue_id": "634",
  55. "desciption": "Supporting new GC opcodes(semantics of GC MVP proposal spec).",
  56. "cases": [
  57. {
  58. "name": "ref_test",
  59. "description": "Test opcodes: 'WASM_OP_TABLE_GET', 'WASM_OP_TABLE_SET', 'WASM_OP_REF_NULL', 'WASM_OP_REF_IS_NULL', 'WASM_OP_REF_TEST', 'WASM_OP_REF_TEST_NULLABLE'"
  60. },
  61. {
  62. "name": "ref_eq",
  63. "description": "Test opcodes: 'WASM_OP_REF_EQ', 'WASM_OP_GET_LOCAL'"
  64. },
  65. {
  66. "name": "ref_cast",
  67. "description": "Test opcodes: 'WASM_OP_REF_CAST', 'WASM_OP_REF_CAST_NULLABLE', 'WASM_OP_REF_AS_NON_NULL'"
  68. },
  69. {
  70. "name": "type_subtyping",
  71. "description": "Test opcodes: 'WASM_OP_CALL_INDIRECT', 'WASM_OP_REF_FUNC'"
  72. },
  73. {
  74. "name": "array",
  75. "description": "Test opcodes: 'WASM_OP_ARRAY_NEW', 'WASM_OP_ARRAY_NEW_DEFAULT', 'WASM_OP_ARRAY_NEW_FIXED', 'WASM_OP_ARRAY_NEW_DATA', 'WASM_OP_ARRAY_GET', 'WASM_OP_ARRAY_GET_S', 'WASM_OP_ARRAY_GET_U', 'WASM_OP_ARRAY_SET', 'WASM_OP_ARRAY_LEN'"
  76. },
  77. {
  78. "name": "array_fill",
  79. "description": "Test opcodes: 'WASM_OP_ARRAY_FILL'"
  80. },
  81. {
  82. "name": "struct",
  83. "description": "Test opcodes: 'WASM_OP_STRUCT_NEW', 'WASM_OP_STRUCT_NEW_DEFAULT', 'WASM_OP_STRUCT_GET', 'WASM_OP_STRUCT_GET_S', 'WASM_OP_STRUCT_GET_U', 'WASM_OP_STRUCT_SET'"
  84. },
  85. {
  86. "name": "i31",
  87. "description": "Test opcodes: 'WASM_OP_I31_NEW', 'WASM_OP_I31_GET_S', 'WASM_OP_I31_GET_U'"
  88. },
  89. {
  90. "name": "br_on_cast",
  91. "description": "Test opcodes: 'WASM_OP_BR_ON_NULL', 'WASM_OP_BR_ON_CAST'"
  92. },
  93. {
  94. "name": "br_on_cast_fail",
  95. "description": "Test opcodes: 'WASM_OP_BR_ON_NON_NULL', 'WASM_OP_BR_ON_CAST_FAIL'"
  96. },
  97. {
  98. "name": "extern",
  99. "description": "Test opcodes: 'WASM_OP_ANY_CONVERT_EXTERN', 'WASM_OP_EXTERN_CONVERT_ANY'"
  100. }
  101. ]
  102. },
  103. {
  104. "req_id": 3,
  105. "issue_id": "635",
  106. "desciption": "Supporting new GC opcode(semantics of Binaryen GC spec).",
  107. "cases": [
  108. {
  109. "name": "array_copy",
  110. "description": "Test the opcodes: 'WASM_OP_ARRAY_COPY', 'WASM_OP_SET_LOCAL'"
  111. }
  112. ]
  113. }
  114. ]
  115. }