summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan McKay <dylanmckay34@gmail.com>2016-12-16 11:40:00 +0000
committerDylan McKay <dylanmckay34@gmail.com>2016-12-16 11:40:00 +0000
commita81719fbfca8e9a5cab00cbc425d9a1ffa3c1f89 (patch)
tree65682a14e3d3115072cf88fe9821e66da3a61aa2
parent48b4e614d84ce0c1b18dcaa38de529d433d622cc (diff)
downloadbcm5719-llvm-a81719fbfca8e9a5cab00cbc425d9a1ffa3c1f89.tar.gz
bcm5719-llvm-a81719fbfca8e9a5cab00cbc425d9a1ffa3c1f89.zip
[AVR] Add a test for 64-bit left shifts
llvm-svn: 289936
-rw-r--r--llvm/test/CodeGen/AVR/shift.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AVR/shift.ll b/llvm/test/CodeGen/AVR/shift.ll
new file mode 100644
index 00000000000..8d59050f0d3
--- /dev/null
+++ b/llvm/test/CodeGen/AVR/shift.ll
@@ -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
+}
OpenPOWER on IntegriCloud