blob: ea2db4414f5617a13b34b5cc0eb8ba57b530d95e [file] [log] [blame]
Reid Spencer2abbad92007-07-31 02:57:37 +00001; Test that upgrading zext/sext attributes to zeroext and signext
2; works correctly.
3; PR1553
4; RUN: llvm-as < %s > /dev/null
5
6define i32 @bar() {
7 %t = call i8 @foo( i8 10 sext ) zext
8 %x = zext i8 %t to i32
9 ret i32 %x
10}
11
12declare i8 @foo(i8 signext ) zeroext