Reduced testcase for PR 110
[oota-llvm.git] / test / Transforms / InstCombine / 2003-11-12-CastSubBug.ll
1 ; llvm-as < %s | opt -instcombine | llvm-dis | grep 'to sbyte'
2
3 %.Base64_1 = external constant [4 x sbyte] 
4
5 ubyte %test(sbyte %X) {
6         %tmp.12 = sub sbyte %X, cast ([4 x sbyte]* %.Base64_1 to sbyte)         ; <sbyte> [#uses=1]
7         %tmp.13 = cast sbyte %tmp.12 to ubyte           ; <ubyte> [#uses=1]
8         ret ubyte %tmp.13
9 }