From df654b6d91c12ed71050936d31c440415138777c Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Fri, 16 Dec 2016 11:40:00 +0000 Subject: [PATCH] [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 --- test/CodeGen/AVR/shift.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CodeGen/AVR/shift.ll 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 +}