mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
ac494bd7cf
Make the AsmParser auto-upgrade the old zext and sext keywords for parameter attributes and handle the end-of-line ambiguity. llvm-svn: 40610
13 lines
282 B
LLVM
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
|