25 lines · plain
1; RUN: llvm-as < %s | llvm-dis > %t1.ll2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll3; RUN: diff %t1.ll %t2.ll4 5%ZFunTy = type i32(i8)6%SFunTy = type i32(i8)7 8declare signext i16 @"test"(i16 signext %arg) 9declare zeroext i8 @"test2" (i16 zeroext %a2) 10 11declare i32 @"test3"(ptr noalias %p)12 13declare void @exit(i32) noreturn nounwind14 15define i32 @main(i32 inreg %argc, ptr inreg %argv) nounwind {16 %val = trunc i32 %argc to i1617 %res1 = call signext i16 (i16 )@test(i16 signext %val) 18 %two = add i16 %res1, %res119 %res2 = call zeroext i8 @test2(i16 zeroext %two ) 20 %retVal = sext i16 %two to i3221 ret i32 %retVal22}23 24declare void @function_to_resolve_eagerly() nonlazybind25