llvm-6502/test/CodeGen/XCore/2008-11-17-Shl64.ll
Richard Osborne 104de6cf7b Don't produce ADDC/ADDE when expanding SHL unless they are legal
for the target. This fixes PR3080.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59450 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-17 17:34:31 +00:00

7 lines
127 B
LLVM

; RUN: llvm-as < %s | llc -march=xcore > %t1.s
; PR3080
define i64 @test(i64 %a) {
%result = shl i64 %a, 1
ret i64 %result
}