summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/switch.ll
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2016-03-08 03:18:12 +0000
committerDan Gohman <dan433584@gmail.com>2016-03-08 03:18:12 +0000
commit1402606477098c75c36f83883c5e0c2d7d4fcdc7 (patch)
tree756dd7fd9ece5891f6701ac9fb6168fc28c7d5c2 /llvm/test/CodeGen/WebAssembly/switch.ll
parent671febc0f774875f39c222894522a80df6d05097 (diff)
downloadbcm5719-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/switch.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/switch.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/switch.ll b/llvm/test/CodeGen/WebAssembly/switch.ll
index 998df9a2c4b..20af644e905 100644
--- a/llvm/test/CodeGen/WebAssembly/switch.ll
+++ b/llvm/test/CodeGen/WebAssembly/switch.ll
@@ -21,7 +21,7 @@ declare void @foo5()
; CHECK: block{{$}}
; CHECK: block{{$}}
; CHECK: block{{$}}
-; CHECK: tableswitch {{[^,]+}}, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 5{{$}}
+; CHECK: br_table {{[^,]+}}, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 5, 0{{$}}
; CHECK: .LBB0_2:
; CHECK: call foo0@FUNCTION{{$}}
; CHECK: .LBB0_3:
@@ -101,7 +101,7 @@ sw.epilog: ; preds = %entry, %sw.bb.5, %s
; CHECK: block{{$}}
; CHECK: block{{$}}
; CHECK: block{{$}}
-; CHECK: tableswitch {{[^,]+}}, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 5{{$}}
+; CHECK: br_table {{[^,]+}}, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 5, 0{{$}}
; CHECK: .LBB1_2:
; CHECK: call foo0@FUNCTION{{$}}
; CHECK: .LBB1_3:
OpenPOWER on IntegriCloud