diff options
| author | Chad Rosier <mcrosier@apple.com> | 2012-02-07 23:56:08 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2012-02-07 23:56:08 +0000 |
| commit | 60c8fa6bb9db791acf6846fe250c184e3f1df168 (patch) | |
| tree | 0e928353bb866717deae0863d47196304f8531a3 /test | |
| parent | 30d409ca097e35c51964c9dac642804e5e495906 (diff) | |
| download | external_llvm-60c8fa6bb9db791acf6846fe250c184e3f1df168.zip external_llvm-60c8fa6bb9db791acf6846fe250c184e3f1df168.tar.gz external_llvm-60c8fa6bb9db791acf6846fe250c184e3f1df168.tar.bz2 | |
[fast-isel] Add support for indirect branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
| -rw-r--r-- | test/CodeGen/ARM/fast-isel-indirectbr.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fast-isel-indirectbr.ll b/test/CodeGen/ARM/fast-isel-indirectbr.ll new file mode 100644 index 0000000..be8035e --- /dev/null +++ b/test/CodeGen/ARM/fast-isel-indirectbr.ll @@ -0,0 +1,17 @@ +; RUN: llc < %s -O0 -fast-isel-abort -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios | FileCheck %s --check-prefix=ARM +; RUN: llc < %s -O0 -fast-isel-abort -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios | FileCheck %s --check-prefix=THUMB + +define void @t1(i8* %x) { +entry: +; ARM: t1 +; THUMB: t1 + br label %L0 + +L0: + br label %L1 + +L1: + indirectbr i8* %x, [ label %L0, label %L1 ] +; ARM: bx r0 +; THUMB: mov pc, r0 +} |
