Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/SystemZ/asm-20.ll
; Test that asm goto can be compiled. | ; Test that asm goto can be compiled. | ||||
; | ; | ||||
; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | ||||
; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 -O0 | |||||
define i32 @c() { | define i32 @c() { | ||||
entry: | entry: | ||||
callbr void asm sideeffect "j d", "X"(i8* blockaddress(@c, %d)) | callbr void asm sideeffect "j d", "X"(i8* blockaddress(@c, %d)) | ||||
to label %asm.fallthrough [label %d] | to label %asm.fallthrough [label %d] | ||||
asm.fallthrough: ; preds = %entry | asm.fallthrough: ; preds = %entry | ||||
br label %d | br label %d | ||||
d: ; preds = %asm.fallthrough, %entry | d: ; preds = %asm.fallthrough, %entry | ||||
ret i32 undef | ret i32 undef | ||||
} | } |