[llvm] r289936 - [AVR] Add a test for 64-bit left shifts
Dylan McKay via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 03:40:00 PST 2016
Author: dylanmckay
Date: Fri Dec 16 05:40:00 2016
New Revision: 289936
URL: http://llvm.org/viewvc/llvm-project?rev=289936&view=rev
Log:
[AVR] Add a test for 64-bit left shifts
Added:
llvm/trunk/test/CodeGen/AVR/shift.ll
Added: llvm/trunk/test/CodeGen/AVR/shift.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AVR/shift.ll?rev=289936&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/AVR/shift.ll (added)
+++ llvm/trunk/test/CodeGen/AVR/shift.ll Fri Dec 16 05:40:00 2016
@@ -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
+}
More information about the llvm-commits
mailing list