llvm.org GIT mirror llvm / 5f96943
Revert accidental testcase reduction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70226 91177308-0d34-0410-b5e6-96231b3b80d8 Nate Begeman 11 years ago
1 changed file(s) with 40 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc
11 ; PR2671
22
3 define void @a(<2 x double>* %p, <2 x i8>* %q) {
4 %t = load <2 x double>* %p
5 %r = fptosi <2 x double> %t to <2 x i8>
6 store <2 x i8> %r, <2 x i8>* %q
7 ret void
8 }
9 define void @b(<2 x double>* %p, <2 x i8>* %q) {
10 %t = load <2 x double>* %p
11 %r = fptoui <2 x double> %t to <2 x i8>
12 store <2 x i8> %r, <2 x i8>* %q
13 ret void
14 }
15 define void @c(<2 x i8>* %p, <2 x double>* %q) {
16 %t = load <2 x i8>* %p
17 %r = sitofp <2 x i8> %t to <2 x double>
18 store <2 x double> %r, <2 x double>* %q
19 ret void
20 }
21 define void @d(<2 x i8>* %p, <2 x double>* %q) {
22 %t = load <2 x i8>* %p
23 %r = uitofp <2 x i8> %t to <2 x double>
24 store <2 x double> %r, <2 x double>* %q
25 ret void
26 }
27 define void @e(<2 x i8>* %p, <2 x i16>* %q) {
28 %t = load <2 x i8>* %p
29 %r = sext <2 x i8> %t to <2 x i16>
30 store <2 x i16> %r, <2 x i16>* %q
31 ret void
32 }
33 define void @f(<2 x i8>* %p, <2 x i16>* %q) {
34 %t = load <2 x i8>* %p
35 %r = zext <2 x i8> %t to <2 x i16>
36 store <2 x i16> %r, <2 x i16>* %q
37 ret void
38 }
339 define void @g(<2 x i16>* %p, <2 x i8>* %q) {
4 %t = load <2 x i16>* %p
5 %r = trunc <2 x i16> %t to <2 x i8>
6 store <2 x i8> %r, <2 x i8>* %q
7 ret void
40 %t = load <2 x i16>* %p
41 %r = trunc <2 x i16> %t to <2 x i8>
42 store <2 x i8> %r, <2 x i8>* %q
43 ret void
844 }