1 ; RUN: llc < %s -relocation-model static | FileCheck %s
3 ; FIXME: Remove '-relocation-model static' when it is no longer necessary to
4 ; trigger the separate .rdata section.
6 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
7 target triple = "x86_64-pc-windows-msvc19.0.24215"
9 define void @f(i32 %x) {
11 switch i32 %x, label %sw.epilog [
18 sw.bb: ; preds = %entry
19 tail call void @g(i32 0) #2
22 sw.bb1: ; preds = %entry
23 tail call void @g(i32 1) #2
26 sw.bb2: ; preds = %entry
27 tail call void @g(i32 2) #2
30 sw.bb3: ; preds = %entry
31 tail call void @g(i32 3) #2
34 sw.epilog: ; preds = %entry, %sw.bb3, %sw.bb2, %sw.bb1, %sw.bb
35 tail call void @g(i32 10) #2
44 ; CHECK: jmpq *.LJTI0_0
45 ; CHECK: .LBB0_{{.*}}: # %sw.bb
46 ; CHECK: .LBB0_{{.*}}: # %sw.bb1
47 ; CHECK: .LBB0_{{.*}}: # %sw.bb2
48 ; CHECK: .LBB0_{{.*}}: # %sw.bb3
50 ; CHECK: jmp g # TAILCALL
51 ; CHECK: .section .rdata,"dr"
57 ; It's important that we switch back to .text here, not .rdata.