1 ; This test case will cause an internal EK_GPRel64BlockAddress to be
2 ; produced. This was not handled for direct object and an assertion
3 ; to occur. This is a variation on test case test/CodeGen/Mips/do_switch.ll
5 ; RUN: llc < %s -filetype=obj -march=mips -relocation-model=static
7 ; RUN: llc < %s -filetype=obj -march=mips -relocation-model=pic
9 ; RUN: llc < %s -filetype=obj -march=mips64 -relocation-model=pic -mcpu=mips64 -mattr=n64
11 define i32 @main() nounwind readnone {
13 %x = alloca i32, align 4 ; <i32*> [#uses=2]
14 store volatile i32 2, i32* %x, align 4
15 %0 = load volatile i32* %x, align 4 ; <i32> [#uses=1]
17 switch i32 %0, label %bb4 [