1 ; The purpose of this test is to see if the COFF object writer can properly
2 ; relax the fixups that are created for jump tables on x86-64. See PR7960.
4 ; This test case was reduced from Lua/lapi.c.
6 ; This test has yet to be converted to assembly becase llvm-mc cannot read
7 ; x86-64 COFF code yet.
9 ; RUN: llc -filetype=obj -mtriple i686-pc-win32 %s -o %t
10 ; RUN: llc -filetype=obj -mtriple x86_64-pc-win32 %s -o %t
12 define void @lua_gc(i32 %what) nounwind {
14 switch i32 %what, label %sw.epilog [
23 sw.bb: ; preds = %entry, %entry, %entry
26 sw.bb14: ; preds = %entry
29 sw.bb18: ; preds = %entry
32 sw.bb57: ; preds = %entry
35 sw.epilog: ; preds = %entry