diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-08-10 23:56:04 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-08-10 23:56:04 +0000 |
commit | 02f6f9f1055d0a0abf5d14eaeeddcaf3f65be0ab (patch) | |
tree | ee8d3a8569c2ef730e5c38c03272af07580a08a3 /test/CodeGen/Thumb2/thumb2-lsr.ll | |
parent | 8797283758f03653bed11d91ec76d0bba28bf6f9 (diff) | |
download | external_llvm-02f6f9f1055d0a0abf5d14eaeeddcaf3f65be0ab.zip external_llvm-02f6f9f1055d0a0abf5d14eaeeddcaf3f65be0ab.tar.gz external_llvm-02f6f9f1055d0a0abf5d14eaeeddcaf3f65be0ab.tar.bz2 |
Enable Thumb2 instruction shrinking (32-bit to 16-bit) pass. Convert a bunch of thumb2 tests to FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/thumb2-lsr.ll')
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-lsr.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-lsr.ll b/test/CodeGen/Thumb2/thumb2-lsr.ll index acd58f2..c60e928 100644 --- a/test/CodeGen/Thumb2/thumb2-lsr.ll +++ b/test/CodeGen/Thumb2/thumb2-lsr.ll @@ -1,6 +1,8 @@ -; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {lsr\\.w\\W*r\[0-9\],\\W*r\[0-9\],\\W*\[0-9\]} | count 1 +; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | FileCheck %s define i32 @f1(i32 %a) { +; CHECK: f1: +; CHECK: lsrs r0, r0, #13 %tmp = lshr i32 %a, 13 ret i32 %tmp } |