1 ; RUN: llvm-as < %s | llc
4 define void @a(<2 x double>* %p, <2 x i8>* %q) {
5 %t = load <2 x double>* %p
6 %r = fptosi <2 x double> %t to <2 x i8>
7 store <2 x i8> %r, <2 x i8>* %q
10 define void @b(<2 x double>* %p, <2 x i8>* %q) {
11 %t = load <2 x double>* %p
12 %r = fptoui <2 x double> %t to <2 x i8>
13 store <2 x i8> %r, <2 x i8>* %q
16 define void @c(<2 x i8>* %p, <2 x double>* %q) {
17 %t = load <2 x i8>* %p
18 %r = sitofp <2 x i8> %t to <2 x double>
19 store <2 x double> %r, <2 x double>* %q
22 define void @d(<2 x i8>* %p, <2 x double>* %q) {
23 %t = load <2 x i8>* %p
24 %r = uitofp <2 x i8> %t to <2 x double>
25 store <2 x double> %r, <2 x double>* %q
28 define void @e(<2 x i8>* %p, <2 x i16>* %q) {
29 %t = load <2 x i8>* %p
30 %r = sext <2 x i8> %t to <2 x i16>
31 store <2 x i16> %r, <2 x i16>* %q
34 define void @f(<2 x i8>* %p, <2 x i16>* %q) {
35 %t = load <2 x i8>* %p
36 %r = zext <2 x i8> %t to <2 x i16>
37 store <2 x i16> %r, <2 x i16>* %q
40 define void @g(<2 x i16>* %p, <2 x i8>* %q) {
41 %t = load <2 x i16>* %p
42 %r = trunc <2 x i16> %t to <2 x i8>
43 store <2 x i8> %r, <2 x i8>* %q