summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/GlobalISel/br.ll
blob: 387e8797f0cd0906cf6cf2aaa3a5f5a5e0e74170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -O0 -mtriple=x86_64-linux-gnu    -global-isel -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=X64

define void @uncondbr() {
; CHECK-LABEL: uncondbr:
; CHECK:       # BB#1: # %entry
; CHECK-NEXT:    jmp .LBB0_3
; CHECK-NEXT:  .LBB0_2: # %end
; CHECK-NEXT:    retq
; CHECK-NEXT:  .LBB0_3: # %bb2
; CHECK-NEXT:    jmp .LBB0_2
entry:
  br label %bb2
end:
  ret void
bb2:
  br label %end
}

OpenPOWER on IntegriCloud