forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR7774: Fix undefined shifts in Alpha backend. As a bonus, this actually
improves the generated code in some cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109985 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
ad2b04c
commit 348e026
Showing
2 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
; 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 | ||
|