[AVR] Add a test for 64-bit left shifts
authorDylan McKay <dylanmckay34@gmail.com>
Fri, 16 Dec 2016 11:40:00 +0000 (11:40 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Fri, 16 Dec 2016 11:40:00 +0000 (11:40 +0000)
llvm-svn: 289936

llvm/test/CodeGen/AVR/shift.ll [new file with mode: 0644]

diff --git a/llvm/test/CodeGen/AVR/shift.ll b/llvm/test/CodeGen/AVR/shift.ll
new file mode 100644 (file)
index 0000000..8d59050
--- /dev/null
@@ -0,0 +1,8 @@
+; RUN: llc < %s -march=avr | FileCheck %s
+
+; CHECK-LABEL: shift_i64_i64
+define i64 @shift_i64_i64(i64 %a, i64 %b) {
+  ; CHECK: call    __ashldi3
+  %result = shl i64 %a, %b
+  ret i64 %result
+}