Skip to content

Commit 3e7f049

Browse files
badumbatishlukel97
andauthored
Apply suggestions from nit
Co-authored-by: Luke Lau <[email protected]>
1 parent 65f68c3 commit 3e7f049

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

llvm/test/CodeGen/WebAssembly/eh-lsda.ll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
; RUN: llc < %s --mtriple=wasm32-unknown-unknown -wasm-disable-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling | FileCheck %s -check-prefixes=CHECK,NOPIC -DPTR=32
2-
; RUN: llc < %s --mtriple=wasm64-unknown-unknown -wasm-disable-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling | FileCheck %s -check-prefixes=CHECK,NOPIC -DPTR=64
3-
; RUN: llc < %s --mtriple=wasm32-unknown-emscripten -wasm-disable-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling | FileCheck %s -check-prefixes=CHECK,NOPIC -DPTR=32
4-
; RUN: llc < %s --mtriple=wasm64-unknown-emscripten -wasm-disable-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling | FileCheck %s -check-prefixes=CHECK,NOPIC -DPTR=64
1+
; RUN: llc < %s --mtriple=wasm32-unknown-unknown -wasm-disable-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling | FileCheck %s -check-prefixes=CHECK,NOPIC -DPTR=32
2+
; RUN: llc < %s --mtriple=wasm64-unknown-unknown -wasm-disable-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling | FileCheck %s -check-prefixes=CHECK,NOPIC -DPTR=64
3+
; RUN: llc < %s --mtriple=wasm32-unknown-emscripten -wasm-disable-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling | FileCheck %s -check-prefixes=CHECK,NOPIC -DPTR=32
4+
; RUN: llc < %s --mtriple=wasm64-unknown-emscripten -wasm-disable-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling | FileCheck %s -check-prefixes=CHECK,NOPIC -DPTR=64
55
; RUN: llc < %s --mtriple=wasm32-unknown-emscripten -wasm-disable-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling -relocation-model=pic | FileCheck %s -check-prefixes=CHECK,PIC -DPTR=32
66
; RUN: llc < %s --mtriple=wasm64-unknown-emscripten -wasm-disable-explicit-locals -wasm-keep-registers -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling -relocation-model=pic | FileCheck %s -check-prefixes=CHECK,PIC -DPTR=64
77

@@ -73,11 +73,11 @@ try.cont: ; preds = %entry, %catch.start
7373
; In case of PIC, we make GCC_except_table symbols a relative on based on
7474
; __memory_base.
7575
; PIC: global.get $push[[CONTEXT:.*]]=, __wasm_lpad_context@GOT
76-
; PIC-NEXT: local.tee $push{{.*}}=, $[[CONTEXT_LOCAL:.*]]=, $pop[[CONTEXT]]
76+
; PIC-NEXT: local.tee $push{{.*}}=, $[[CONTEXT_LOCAL:.*]]=, $pop[[CONTEXT]]
7777
; PIC: global.get $push[[MEMORY_BASE:.*]]=, __memory_base
7878
; PIC-NEXT: i[[PTR]].const $push[[EXCEPT_TABLE_REL:.*]]=, GCC_except_table1@MBREL
7979
; PIC-NEXT: i[[PTR]].add $push[[EXCEPT_TABLE:.*]]=, $pop[[MEMORY_BASE]], $pop[[EXCEPT_TABLE_REL]]
80-
; PIC-NEXT: i[[PTR]].store {{[48]}}($[[CONTEXT_LOCAL]]), $pop[[EXCEPT_TABLE]]
80+
; PIC-NEXT: i[[PTR]].store {{[48]}}($[[CONTEXT_LOCAL]]), $pop[[EXCEPT_TABLE]]
8181

8282
; CHECK: .section .rodata.gcc_except_table,"",@
8383
; CHECK-NEXT: .p2align 2

llvm/test/CodeGen/WebAssembly/offset.ll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ define i32 @load_i32_from_global_address() {
120120

121121
define i32 @load_i32_global_with_folded_gep_offset_nonconst_nuw(i32 %idx) {
122122
; CHECK-LABEL: load_i32_global_with_folded_gep_offset_nonconst_nuw:
123-
; CHECK: i32.const $push0=, 2
124-
; CHECK-NEXT: i32.shl $push1=, $0, $pop0
125-
; CHECK-NOT: i32.add
126-
; CHECK-NEXT: i32.load $push2=, gv($pop1)
123+
; CHECK: i32.const $push0=, 2
124+
; CHECK: i32.shl $push1=, $0, $pop0
125+
; CHECK: i32.load $push2=, gv($pop1)
127126
%s = getelementptr nuw i32, ptr @gv, i32 %idx
128127
%t = load i32, ptr %s
129128
ret i32 %t

0 commit comments

Comments
 (0)