1*550c9af9SDan Gohman; RUN: llvm-as < %s | llc 2*550c9af9SDan Gohman; PR2671 3*550c9af9SDan Gohman 4*550c9af9SDan Gohmandefine void @a(<2 x double>* %p, <2 x i8>* %q) { 5*550c9af9SDan Gohman %t = load <2 x double>* %p 6*550c9af9SDan Gohman %r = fptosi <2 x double> %t to <2 x i8> 7*550c9af9SDan Gohman store <2 x i8> %r, <2 x i8>* %q 8*550c9af9SDan Gohman ret void 9*550c9af9SDan Gohman} 10*550c9af9SDan Gohmandefine void @b(<2 x double>* %p, <2 x i8>* %q) { 11*550c9af9SDan Gohman %t = load <2 x double>* %p 12*550c9af9SDan Gohman %r = fptoui <2 x double> %t to <2 x i8> 13*550c9af9SDan Gohman store <2 x i8> %r, <2 x i8>* %q 14*550c9af9SDan Gohman ret void 15*550c9af9SDan Gohman} 16*550c9af9SDan Gohmandefine void @c(<2 x i8>* %p, <2 x double>* %q) { 17*550c9af9SDan Gohman %t = load <2 x i8>* %p 18*550c9af9SDan Gohman %r = sitofp <2 x i8> %t to <2 x double> 19*550c9af9SDan Gohman store <2 x double> %r, <2 x double>* %q 20*550c9af9SDan Gohman ret void 21*550c9af9SDan Gohman} 22*550c9af9SDan Gohmandefine void @d(<2 x i8>* %p, <2 x double>* %q) { 23*550c9af9SDan Gohman %t = load <2 x i8>* %p 24*550c9af9SDan Gohman %r = uitofp <2 x i8> %t to <2 x double> 25*550c9af9SDan Gohman store <2 x double> %r, <2 x double>* %q 26*550c9af9SDan Gohman ret void 27*550c9af9SDan Gohman} 28*550c9af9SDan Gohmandefine void @e(<2 x i8>* %p, <2 x i16>* %q) { 29*550c9af9SDan Gohman %t = load <2 x i8>* %p 30*550c9af9SDan Gohman %r = sext <2 x i8> %t to <2 x i16> 31*550c9af9SDan Gohman store <2 x i16> %r, <2 x i16>* %q 32*550c9af9SDan Gohman ret void 33*550c9af9SDan Gohman} 34*550c9af9SDan Gohmandefine void @f(<2 x i8>* %p, <2 x i16>* %q) { 35*550c9af9SDan Gohman %t = load <2 x i8>* %p 36*550c9af9SDan Gohman %r = zext <2 x i8> %t to <2 x i16> 37*550c9af9SDan Gohman store <2 x i16> %r, <2 x i16>* %q 38*550c9af9SDan Gohman ret void 39*550c9af9SDan Gohman} 40*550c9af9SDan Gohmandefine void @g(<2 x i16>* %p, <2 x i8>* %q) { 41*550c9af9SDan Gohman %t = load <2 x i16>* %p 42*550c9af9SDan Gohman %r = trunc <2 x i16> %t to <2 x i8> 43*550c9af9SDan Gohman store <2 x i8> %r, <2 x i8>* %q 44*550c9af9SDan Gohman ret void 45*550c9af9SDan Gohman} 46