repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
binop-cast.ll
blob
3dbca7ef148996b9c4176359b6898a39a7e88ac4
1
; RUN: opt < %s -instcombine -S | FileCheck %s
2
3
define i32 @testAdd(i32 %X, i32 %Y) {
4
%tmp = add i32 %X, %Y
5
; CHECK: %tmp = add i32 %X, %Y
6
%tmp.l = bitcast i32 %tmp to i32
7
ret i32 %tmp.l
8
; CHECK: ret i32 %tmp
9
}