| Reid Spencer | 1d3d230 | 2007-07-31 02:57:37 +0000 | [diff] [blame] | 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 | ||||