[InstCombine] canonicalize (bitcast (extractelement X)) --> (extractelement(bitcast X))
[oota-llvm.git] / test / Transforms / SCCP / 2008-04-22-multiple-ret-sccp.ll
1 ; RUN: opt < %s -sccp -S | grep "ret i32 %Z"
2 ; rdar://5778210
3
4 declare {i32, i32} @bar(i32 %A) 
5
6 define i32 @foo() {
7         %X = call {i32, i32} @bar(i32 17)
8         %Y = extractvalue {i32, i32} %X, 0
9         %Z = add i32 %Y, %Y
10         ret i32 %Z
11 }