llvm-6502/test/Assembler/2007-07-30-AutoUpgradeZextSext.ll
Reid Spencer 1d3d230861 For PR1553:
Make the AsmParser auto-upgrade the old zext and sext
keywords for parameter attributes and handle the 
end-of-line ambiguity.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40610 91177308-0d34-0410-b5e6-96231b3b80d8
2007-07-31 02:57:37 +00:00

13 lines
282 B
LLVM

; Test that upgrading zext/sext attributes to zeroext and signext
; works correctly.
; PR1553
; RUN: llvm-as < %s > /dev/null
define i32 @bar() {
%t = call i8 @foo( i8 10 sext ) zext
%x = zext i8 %t to i32
ret i32 %x
}
declare i8 @foo(i8 signext ) zeroext