For PR1553:
[oota-llvm.git] / test / Assembler / 2007-07-30-AutoUpgradeZextSext.ll
1 ; Test that upgrading zext/sext attributes to zeroext and signext
2 ; works correctly.
3 ; PR1553
4 ; RUN: llvm-as < %s > /dev/null
5
6 define i32 @bar() {
7         %t = call i8 @foo( i8 10 sext ) zext
8         %x = zext i8 %t to i32
9         ret i32 %x
10 }
11
12 declare i8 @foo(i8 signext ) zeroext