[WebAssembly] Raname a test and fix comments
authorHeejin Ahn <aheejin@gmail.com>
Wed, 31 Mar 2021 09:32:51 +0000 (02:32 -0700)
committerHeejin Ahn <aheejin@gmail.com>
Wed, 31 Mar 2021 16:13:08 +0000 (09:13 -0700)
D99627 fixed a decoding bug, not an encoding bug. This renames the test
to correct it and fix comments.

Reviewed By: dschuff

Differential Revision: https://reviews.llvm.org/D99644

llvm/test/MC/WebAssembly/event-section-decoding.ll [moved from llvm/test/MC/WebAssembly/event-section-encoding.ll with 98% similarity]

@@ -1,6 +1,6 @@
 ; RUN: llc -filetype=obj -exception-model=wasm -mattr=+exception-handling %s -o - | obj2yaml | FileCheck %s
 
-; This is a regression test for an encoding bug that happens when an event's
+; This is a regression test for a decoding bug that happens when an event's
 ; sigindex is greater than 63, so we put 63 dummy functions with different
 ; signatures before the function that contains the 'throw' instruction to make
 ; the event's sigindex 64.
@@ -334,8 +334,8 @@ define i32 @test_throw(i8* %p) {
   ret i32 0
 }
 
-; Checks to see if the event index is correctly encoded in ULEB128. If it is
-; encoded with LEB128, 64 will not be correctly decoded. 64 is the smallest
+; Checks to see if the event index is correctly decoded in ULEB128. If it is
+; decoded with LEB128, 64 will not be correctly decoded. 64 is the smallest
 ; number with which its LEB128 and ULEB128 encodings are different, because its
 ; 7th least significant bit is not 0.
 ; CHECK:      - Type:            EVENT