aboutsummaryrefslogtreecommitdiff
path: root/test/Assembler/2007-07-30-AutoUpgradeZextSext.ll
blob: ea2db4414f5617a13b34b5cc0eb8ba57b530d95e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; 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