github.com/llir/llvm@v0.3.6/asm/testdata/inst_conversion.ll (about)

     1  define void @f() {
     2  0:
     3  	%1 = trunc i32 321 to i8
     4  	%2 = zext i8 123 to i32
     5  	%3 = sext i8 -123 to i32
     6  	%4 = fptrunc double 1.0 to float
     7  	%5 = fpext float 2.0 to double
     8  	%6 = fptoui double 3.0 to i32
     9  	%7 = fptosi double -4.0 to i32
    10  	%8 = uitofp i32 5 to double
    11  	%9 = sitofp i32 -6 to double
    12  	%10 = ptrtoint i8* null to i32
    13  	%11 = inttoptr i32 1234 to i8*
    14  	%12 = bitcast { i32, i32 }* null to i64*
    15  	%13 = addrspacecast i8* null to i8 addrspace(1)*
    16  	ret void
    17  }