1 ; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 ; RUN: llc -O0 -mtriple=aarch64-apple-ios -global-isel -stop-after=irtranslator -verify-machineinstrs %s -o - | FileCheck %s
4 ; Make sure that we don't duplicate successors/predecessors when translating
5 ; indirectbr instructions with duplicate block labels.
8 ; CHECK-LABEL: name: foo
9 ; CHECK: bb.1 (%ir-block.0):
10 ; CHECK: successors: %bb.2(0x2aaaaaaa), %bb.4(0x2aaaaaaa), %bb.3(0x2aaaaaaa)
11 ; CHECK: [[DEF:%[0-9]+]]:_(p0) = G_IMPLICIT_DEF
12 ; CHECK: G_BRINDIRECT [[DEF]](p0)
13 ; CHECK: bb.2 (%ir-block.1):
15 ; CHECK: bb.3 (%ir-block.2):
17 ; CHECK: bb.4 (%ir-block.3):
19 indirectbr ptr undef, [label %1, label %3, label %2, label %3, label %3]