1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/CodeGen/Alpha/2010-08-01-mulreduce64.ll
Eli Friedman 3c5289c381 PR7774: Fix undefined shifts in Alpha backend. As a bonus, this actually
improves the generated code in some cases.

llvm-svn: 109985
2010-08-01 21:13:28 +00:00

12 lines
218 B
LLVM

; RUN: llc < %s -march=alpha | FileCheck %s
define fastcc i64 @getcount(i64 %s) {
%tmp431 = mul i64 %s, 12884901888
ret i64 %tmp431
}
; CHECK: sll $16,33,$0
; CHECK-NEXT: sll $16,32,$1
; CHECK-NEXT: addq $0,$1,$0