projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fold fptrunc(add (fpextend x), (fpextend y)) -> add(x,y), as GCC does.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
vec_narrow.ll
1
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
2
; RUN: grep {add float}
3
4
%V = type <4 x float>
5
6
float %test(%V %A, %V %B, float %f) {
7
%C = insertelement %V %A, float %f, uint 0
8
%D = add %V %C, %B
9
%E = extractelement %V %D, uint 0
10
ret float %E
11
}
12