diff options
Diffstat (limited to 'test/CodeGen/XCore/mkmsk.ll')
-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 00000000000..377612b7d21 --- /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 +} |