2009-09-09 01:54:48 +02:00
|
|
|
; RUN: llc < %s -march=x86 -x86-asm-syntax=intel
|
2006-12-19 20:29:50 +01:00
|
|
|
; PR1061
|
|
|
|
target datalayout = "e-p:32:32"
|
|
|
|
target triple = "i686-pc-linux-gnu"
|
|
|
|
|
2008-02-21 08:42:26 +01:00
|
|
|
define void @bar(i32 %n) {
|
2006-12-19 20:29:50 +01:00
|
|
|
entry:
|
2008-02-21 08:42:26 +01:00
|
|
|
switch i32 %n, label %bb12 [
|
|
|
|
i32 1, label %bb
|
|
|
|
i32 2, label %bb6
|
|
|
|
i32 4, label %bb7
|
|
|
|
i32 5, label %bb8
|
|
|
|
i32 6, label %bb10
|
|
|
|
i32 7, label %bb1
|
|
|
|
i32 8, label %bb3
|
|
|
|
i32 9, label %bb4
|
|
|
|
i32 10, label %bb9
|
|
|
|
i32 11, label %bb2
|
|
|
|
i32 12, label %bb5
|
|
|
|
i32 13, label %bb11
|
2006-12-19 20:29:50 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
bb: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo1( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb1: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo2( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb2: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo6( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb3: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo3( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb4: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo4( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb5: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo5( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb6: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo1( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb7: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo2( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb8: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo6( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb9: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo3( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb10: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo4( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb11: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo5( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
|
|
|
|
bb12: ; preds = %entry
|
2008-02-21 08:42:26 +01:00
|
|
|
call void (...)* @foo6( )
|
2006-12-19 20:29:50 +01:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2008-02-21 08:42:26 +01:00
|
|
|
declare void @foo1(...)
|
2006-12-19 20:29:50 +01:00
|
|
|
|
2008-02-21 08:42:26 +01:00
|
|
|
declare void @foo2(...)
|
2006-12-19 20:29:50 +01:00
|
|
|
|
2008-02-21 08:42:26 +01:00
|
|
|
declare void @foo6(...)
|
2006-12-19 20:29:50 +01:00
|
|
|
|
2008-02-21 08:42:26 +01:00
|
|
|
declare void @foo3(...)
|
2006-12-19 20:29:50 +01:00
|
|
|
|
2008-02-21 08:42:26 +01:00
|
|
|
declare void @foo4(...)
|
2006-12-19 20:29:50 +01:00
|
|
|
|
2008-02-21 08:42:26 +01:00
|
|
|
declare void @foo5(...)
|