From: Dylan McKay Date: Fri, 16 Dec 2016 11:40:00 +0000 (+0000) Subject: [AVR] Add a test for 64-bit left shifts X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df654b6d91c12ed71050936d31c440415138777c;p=llvm [AVR] Add a test for 64-bit left shifts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289936 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/AVR/shift.ll b/test/CodeGen/AVR/shift.ll new file mode 100644 index 00000000000..8d59050f0d3 --- /dev/null +++ b/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 +}