diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-03-06 19:39:36 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-03-06 19:39:36 +0000 |
commit | ce7bf1c55f5238870bae2909cd368151f1d813d1 (patch) | |
tree | 70eb0846345e56a0b7fbe4c6f98306df3ee07c11 /test/CodeGen | |
parent | 043f3c2a0e286dcfd4cc5a16bf006e3c45929516 (diff) | |
download | external_llvm-ce7bf1c55f5238870bae2909cd368151f1d813d1.zip external_llvm-ce7bf1c55f5238870bae2909cd368151f1d813d1.tar.gz external_llvm-ce7bf1c55f5238870bae2909cd368151f1d813d1.tar.bz2 |
Initial bits of ARMv4-only support.
Patch by John Tytgat!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/ARM/armv4.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/armv4.ll b/test/CodeGen/ARM/armv4.ll new file mode 100644 index 0000000..49b129d --- /dev/null +++ b/test/CodeGen/ARM/armv4.ll @@ -0,0 +1,13 @@ +; RUN: llc < %s -mtriple=arm-unknown-eabi | FileCheck %s -check-prefix=THUMB +; RUN: llc < %s -mtriple=arm-unknown-eabi -mcpu=strongarm | FileCheck %s -check-prefix=ARM +; RUN: llc < %s -mtriple=arm-unknown-eabi -mcpu=cortex-a8 | FileCheck %s -check-prefix=THUMB +; RUN: llc < %s -mtriple=arm-unknown-eabi -mattr=+v6 | FileCheck %s -check-prefix=THUMB +; RUN: llc < %s -mtriple=armv4-unknown-eabi | FileCheck %s -check-prefix=ARM +; RUN: llc < %s -mtriple=armv4t-unknown-eabi | FileCheck %s -check-prefix=THUMB + +define arm_aapcscc i32 @test(i32 %a) nounwind readnone { +entry: +; ARM: mov pc +; THUMB: bx + ret i32 %a +} |