bolt/deps/llvm-18.1.8/llvm/test/CodeGen/ARM/fast-isel-indirectbr.ll

19 lines
644 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios | FileCheck %s --check-prefix=ARM
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=ARM
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios | FileCheck %s --check-prefix=THUMB
define void @t1(ptr %x) {
entry:
; ARM: t1
; THUMB: t1
br label %L0
L0:
br label %L1
L1:
indirectbr ptr %x, [ label %L0, label %L1 ]
; ARM: bx r0
; THUMB: mov pc, r0
}