brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · faf185f Raw
38 lines · plain
1; The purpose of this test is to see if the COFF object writer can properly2; relax the fixups that are created for jump tables on x86-64. See PR7960.3 4; This test case was reduced from Lua/lapi.c.5 6; This test has yet to be converted to assembly becase llvm-mc cannot read7; x86-64 COFF code yet.8 9; RUN: llc -filetype=obj -mtriple i686-pc-win32 %s -o %t10; RUN: llc -filetype=obj -mtriple x86_64-pc-win32 %s -o %t11 12define void @lua_gc(i32 %what) nounwind {13entry:14  switch i32 %what, label %sw.epilog [15    i32 0, label %sw.bb16    i32 1, label %sw.bb17    i32 2, label %sw.bb18    i32 3, label %sw.bb1419    i32 4, label %sw.bb1820    i32 6, label %sw.bb5721  ]22 23sw.bb:                                            ; preds = %entry, %entry, %entry24  ret void25 26sw.bb14:                                          ; preds = %entry27  ret void28 29sw.bb18:                                          ; preds = %entry30  ret void31 32sw.bb57:                                          ; preds = %entry33  ret void34 35sw.epilog:                                        ; preds = %entry36  ret void37}38