1 ; RUN: llc -march=x86-64 -print-machineinstrs=expand-isel-pseudos %s -o /dev/null 2>&1 | FileCheck %s
6 define void @test(i32 %x) nounwind {
8 switch i32 %x, label %sw.default [
30 ; Check if weights are correctly assigned to edges generated from switch
34 ; CHECK: Successors according to CFG: BB#1(10) BB#6(10)
36 ; CHECK: Successors according to CFG: BB#1(10) BB#2(10)
39 declare void @foo(i32)
41 !1 = !{!"branch_weights", i32 10, i32 10, i32 10, i32 10, i32 10, i32 10, i32 10, i32 10, i32 10}