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 define void @"NewCasts" (i16 %x) {
6 %a = zext i16 %x to i32
7 %b = sext i16 %x to i32
8 %c = trunc i16 %x to i8
9 %d = uitofp i16 %x to float
10 %e = sitofp i16 %x to double
11 %f = fptoui float %d to i16
12 %g = fptosi double %e to i16
13 %i = fpext float %d to double
14 %j = fptrunc double %i to float
15 %k = bitcast i32 %a to float
16 %l = inttoptr i16 %x to i32*
17 %m = ptrtoint i32* %l to i64
22 define i16 @"ZExtConst" () {
23 ret i16 trunc ( i32 zext ( i16 42 to i32) to i16 )
26 define i16 @"SExtConst" () {
27 ret i16 trunc (i32 sext (i16 42 to i32) to i16 )