1; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -disable-block-placement -verify-machineinstrs | FileCheck %s
2
3target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
4target triple = "wasm32-unknown-unknown"
5
6declare void @foo0()
7declare void @foo1()
8
9; Tests if br_table is printed correctly with a tab.
10; CHECK-LABEL: test0:
11; CHECK-NOT: br_table0, 1, 0, 1, 0
12; CHECK: br_table 0, 1, 0, 1, 0
13define void @test0(i32 %n) {
14entry:
15  switch i32 %n, label %sw.epilog [
16    i32 0, label %sw.bb
17    i32 1, label %sw.bb.1
18    i32 2, label %sw.bb
19    i32 3, label %sw.bb.1
20  ]
21
22sw.bb:                                            ; preds = %entry, %entry
23  tail call void @foo0()
24  br label %sw.epilog
25
26sw.bb.1:                                          ; preds = %entry, %entry
27  tail call void @foo1()
28  br label %sw.epilog
29
30sw.epilog:                                        ; preds = %entry, %sw.bb, %sw.bb.1
31  ret void
32}
33