summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/SystemZ/asm-20.ll
blob: 7f6c0d1c27d47086d163aafbcf32b4d65074879d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; 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", "!i"()
          to label %asm.fallthrough [label %d]

asm.fallthrough:               ; preds = %entry
  br label %d

d:                             ; preds = %asm.fallthrough, %entry
  ret i32 undef
}