diff options
author | Dan Gohman <dan433584@gmail.com> | 2016-03-08 03:18:12 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2016-03-08 03:18:12 +0000 |
commit | 1402606477098c75c36f83883c5e0c2d7d4fcdc7 (patch) | |
tree | 756dd7fd9ece5891f6701ac9fb6168fc28c7d5c2 /llvm/test/CodeGen/WebAssembly/cfg-stackify.ll | |
parent | 671febc0f774875f39c222894522a80df6d05097 (diff) | |
download | bcm5719-llvm-1402606477098c75c36f83883c5e0c2d7d4fcdc7.tar.gz bcm5719-llvm-1402606477098c75c36f83883c5e0c2d7d4fcdc7.zip |
[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
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/cfg-stackify.ll')
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/cfg-stackify.ll | 4 |
1 files changed, 2 insertions, 2 deletions
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{{$}} |