Duncan Sands | f91c5ab | 2011-05-02 18:51:41 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -instcombine |
| 2 | ; PR9579 |
| 3 | |
| 4 | define <2 x i16> @entry(<2 x i16> %a) nounwind { |
| 5 | entry: |
| 6 | %a.addr = alloca <2 x i16>, align 4 |
| 7 | %.compoundliteral = alloca <2 x i16>, align 4 |
| 8 | store <2 x i16> %a, <2 x i16>* %a.addr, align 4 |
| 9 | %tmp = load <2 x i16>* %a.addr, align 4 |
| 10 | store <2 x i16> zeroinitializer, <2 x i16>* %.compoundliteral |
| 11 | %tmp1 = load <2 x i16>* %.compoundliteral |
| 12 | %cmp = icmp uge <2 x i16> %tmp, %tmp1 |
| 13 | %sext = sext <2 x i1> %cmp to <2 x i16> |
| 14 | ret <2 x i16> %sext |
| 15 | } |