1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/SystemZ/asm-20.ll
Jonas Paulsson fbb16abc14 [SystemZ] Recognize INLINEASM_BR in backend
Handle the remaining cases also by handling asm goto in
SystemZInstrInfo::getBranchInfo().

Review: Ulrich Weigand
https://reviews.llvm.org/D67151

llvm-svn: 371048
2019-09-05 10:20:05 +00:00

16 lines
378 B
LLVM

; Test that asm goto can be compiled.
;
; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14
define i32 @c() {
entry:
callbr void asm sideeffect "j d", "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
}