diff options
author | Reed Kotler <rkotler@mips.com> | 2013-10-08 17:32:33 +0000 |
---|---|---|
committer | Reed Kotler <rkotler@mips.com> | 2013-10-08 17:32:33 +0000 |
commit | b359bda93d410623bbbc96dc9968d94447169a79 (patch) | |
tree | 45a3f3958c647f75dab897bc55e4a7f646cb4946 /test/CodeGen/Mips/rotate.ll | |
parent | eb59e4d5ac15604643540b3aa1e5628d2d440dfc (diff) | |
download | external_llvm-b359bda93d410623bbbc96dc9968d94447169a79.zip external_llvm-b359bda93d410623bbbc96dc9968d94447169a79.tar.gz external_llvm-b359bda93d410623bbbc96dc9968d94447169a79.tar.bz2 |
Let rotr and bswap be handled by expansion for Mips16 since we don't
have native instructions for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/rotate.ll')
-rw-r--r-- | test/CodeGen/Mips/rotate.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/rotate.ll b/test/CodeGen/Mips/rotate.ll index 4f3cfb7..813bbdf 100644 --- a/test/CodeGen/Mips/rotate.ll +++ b/test/CodeGen/Mips/rotate.ll @@ -1,6 +1,8 @@ ; RUN: llc -march=mips -mcpu=mips32r2 < %s | FileCheck %s +; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips32r2 -mattr=+mips16 -soft-float -mips16-hard-float < %s | FileCheck %s -check-prefix=mips16 ; CHECK: rotrv $2, $4 +; mips16: .ent rot0 define i32 @rot0(i32 %a, i32 %b) nounwind readnone { entry: %shl = shl i32 %a, %b @@ -11,6 +13,7 @@ entry: } ; CHECK: rotr $2, $4, 22 +; mips16: .ent rot1 define i32 @rot1(i32 %a) nounwind readnone { entry: %shl = shl i32 %a, 10 @@ -20,6 +23,7 @@ entry: } ; CHECK: rotrv $2, $4, $5 +; mips16: .ent rot2 define i32 @rot2(i32 %a, i32 %b) nounwind readnone { entry: %shr = lshr i32 %a, %b @@ -30,6 +34,7 @@ entry: } ; CHECK: rotr $2, $4, 10 +; mips16: .ent rot3 define i32 @rot3(i32 %a) nounwind readnone { entry: %shr = lshr i32 %a, 10 |