xref: /llvm-project/llvm/test/CodeGen/SystemZ/asm-20.ll (revision 2a721374aef326d4668f750d341c86d1aa1a0309)
1; Test that asm goto can be compiled.
2;
3; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14
4
5define i32 @c() {
6entry:
7  callbr void asm sideeffect "j d", "!i"()
8          to label %asm.fallthrough [label %d]
9
10asm.fallthrough:               ; preds = %entry
11  br label %d
12
13d:                             ; preds = %asm.fallthrough, %entry
14  ret i32 undef
15}
16