xref: /llvm-project/llvm/test/CodeGen/PowerPC/fast-isel-indirectbr.ll (revision 427fb35192f1f7bb694a5910b05abc5925a798b2)
1; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=PPC64
2; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-ibm-aix-xcoff -mcpu=pwr7 | FileCheck %s --check-prefix=PPC64
3
4define void @t1(ptr %x) nounwind {
5entry:
6; PPC64: t1
7  br label %L0
8
9L0:
10  br label %L1
11
12L1:
13  indirectbr ptr %x, [ label %L0, label %L1 ]
14; PPC64: mtctr 3
15; PPC64: bctr
16}
17