From 1402606477098c75c36f83883c5e0c2d7d4fcdc7 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 8 Mar 2016 03:18:12 +0000 Subject: [WebAssembly] Update for spec change from tableswitch to br_table. Also note that the operand order changed; the default label is now listed after the regular labels. llvm-svn: 262903 --- llvm/test/CodeGen/WebAssembly/cfg-stackify.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/test/CodeGen/WebAssembly/cfg-stackify.ll') diff --git a/llvm/test/CodeGen/WebAssembly/cfg-stackify.ll b/llvm/test/CodeGen/WebAssembly/cfg-stackify.ll index e831b534990..676763ee5db 100644 --- a/llvm/test/CodeGen/WebAssembly/cfg-stackify.ll +++ b/llvm/test/CodeGen/WebAssembly/cfg-stackify.ll @@ -895,7 +895,7 @@ end: ; CHECK-NOT: block ; CHECK: br_if 5, {{[^,]+}}{{$}} ; CHECK-NOT: block -; CHECK: tableswitch {{[^,]+}}, 0, 0, 1, 5, 2, 4{{$}} +; CHECK: br_table {{[^,]+}}, 0, 1, 5, 2, 4, 0{{$}} ; CHECK-NEXT: .LBB19_5: ; CHECK-NEXT: end_loop{{$}} ; CHECK-NEXT: end_loop{{$}} @@ -919,7 +919,7 @@ end: ; OPT-NOT: block ; OPT: br_if 5, {{[^,]+}}{{$}} ; OPT-NOT: block -; OPT: tableswitch {{[^,]+}}, 0, 0, 1, 5, 2, 4{{$}} +; OPT: br_table {{[^,]+}}, 0, 1, 5, 2, 4, 0{{$}} ; OPT-NEXT: .LBB19_5: ; OPT-NEXT: end_loop{{$}} ; OPT-NEXT: end_loop{{$}} -- cgit v1.2.3