When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / Integer / paramattrs_bt.ll
blob47ef7539b3e3e367424bba81535990961232fc2a
1 ; RUN: llvm-as < %s | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
5 %ZFunTy = type i33(i8 zeroext)
6 %SFunTy = type i33(i8 signext)
8 declare i16 @"test"(i16 signext %arg) signext 
9 declare i8  @"test2" (i16 zeroext %a2) zeroext 
12 define i33 @main(i33 %argc, i8 **%argv) {
13     %val = trunc i33 %argc to i16
14     %res = call i16 (i16 signext) signext *@test(i16 signext %val) signext
15     %two = add i16 %res, %res
16     %res2 = call i8 @test2(i16 %two zeroext) zeroext 
17     %retVal = sext i16 %two to i33
18     ret i33 %retVal