[llvm] f38a9d6 - [WebAssembly] Raname a test and fix comments

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 31 09:13:36 PDT 2021


Author: Heejin Ahn
Date: 2021-03-31T09:13:08-07:00
New Revision: f38a9d63402d8a6b524e5397845a6435faedb10a

URL: https://github.com/llvm/llvm-project/commit/f38a9d63402d8a6b524e5397845a6435faedb10a
DIFF: https://github.com/llvm/llvm-project/commit/f38a9d63402d8a6b524e5397845a6435faedb10a.diff

LOG: [WebAssembly] Raname a test and fix comments

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

Added: 
    llvm/test/MC/WebAssembly/event-section-decoding.ll

Modified: 
    

Removed: 
    llvm/test/MC/WebAssembly/event-section-encoding.ll


################################################################################
diff  --git a/llvm/test/MC/WebAssembly/event-section-encoding.ll b/llvm/test/MC/WebAssembly/event-section-decoding.ll
similarity index 98%
rename from llvm/test/MC/WebAssembly/event-section-encoding.ll
rename to llvm/test/MC/WebAssembly/event-section-decoding.ll
index 54b6f6a417289..19a1ec6565687 100644
--- a/llvm/test/MC/WebAssembly/event-section-encoding.ll
+++ b/llvm/test/MC/WebAssembly/event-section-decoding.ll
@@ -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 
diff erent
 ; 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 
diff erent, because its
 ; 7th least significant bit is not 0.
 ; CHECK:      - Type:            EVENT


        


More information about the llvm-commits mailing list