diff options
author | Richard Osborne <richard@xmos.com> | 2012-06-13 17:59:12 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2012-06-13 17:59:12 +0000 |
commit | aa08c8b2ba8d684b144ca016de91ad43e033c7c4 (patch) | |
tree | 0153f1c633f838c722e7ef89013e8e8abf89d376 /test/CodeGen/XCore | |
parent | e91f926f3b76774aa7ed4c327fbde6a39e42c87f (diff) | |
download | external_llvm-aa08c8b2ba8d684b144ca016de91ad43e033c7c4.zip external_llvm-aa08c8b2ba8d684b144ca016de91ad43e033c7c4.tar.gz external_llvm-aa08c8b2ba8d684b144ca016de91ad43e033c7c4.tar.bz2 |
Fix pattern for MKMSK instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/XCore')
-rw-r--r-- | test/CodeGen/XCore/mkmsk.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/mkmsk.ll b/test/CodeGen/XCore/mkmsk.ll new file mode 100644 index 0000000..377612b --- /dev/null +++ b/test/CodeGen/XCore/mkmsk.ll @@ -0,0 +1,11 @@ +; RUN: llc < %s -march=xcore | FileCheck %s + +define i32 @f(i32) nounwind { +; CHECK: f: +; CHECK: mkmsk r0, r0 +; CHECK-NEXT: retsp 0 +entry: + %1 = shl i32 1, %0 + %2 = add i32 %1, -1 + ret i32 %2 +} |