projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Some code clean up.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
mul-masked-bits.ll
1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep ashr
2
3
define i32 @foo(i32 %x, i32 %y) {
4
%a = and i32 %x, 7
5
%b = and i32 %y, 7
6
%c = mul i32 %a, %b
7
%d = shl i32 %c, 26
8
%e = ashr i32 %d, 26
9
ret i32 %e
10
}