Jonas Paulsson a0a811739d [SystemZ] Recognize INLINEASM_BR in backend.
SystemZInstrInfo::analyzeBranch() needs to check for INLINEASM_BR
instructions, or it will crash.

Review: Ulrich Weigand
llvm-svn: 370753
2019-09-03 13:31:22 +00:00

16 lines
365 B
LLVM

; Test that asm goto can be compiled.
;
; RUN: llc < %s -mtriple=s390x-linux-gnu
define i32 @c() {
entry:
callbr void asm sideeffect "", "X"(i8* blockaddress(@c, %d))
to label %asm.fallthrough [label %d]
asm.fallthrough: ; preds = %entry
br label %d
d: ; preds = %asm.fallthrough, %entry
ret i32 undef
}