summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MSP430
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/MSP430')
-rw-r--r--llvm/test/CodeGen/MSP430/shifts.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MSP430/shifts.ll b/llvm/test/CodeGen/MSP430/shifts.ll
index 073251943d0..5a1fc9c324b 100644
--- a/llvm/test/CodeGen/MSP430/shifts.ll
+++ b/llvm/test/CodeGen/MSP430/shifts.ll
@@ -74,3 +74,14 @@ entry:
%shr = lshr i16 %a, 10
ret i16 %shr
}
+
+define i16 @lshl10_i16(i16 %a) #0 {
+entry:
+; CHECK-LABEL: lshl10_i16:
+; CHECK: mov.b r12, r12
+; CHECK-NEXT: swpb r12
+; CHECK-NEXT: add r12, r12
+; CHECK-NEXT: add r12, r12
+ %shl = shl i16 %a, 10
+ ret i16 %shl
+}
OpenPOWER on IntegriCloud