1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-- -mcpu=core2 | FileCheck %s
4 define <4 x i16> @a(i32* %x1) nounwind {
7 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
8 ; CHECK-NEXT: movl (%eax), %eax
9 ; CHECK-NEXT: shrl %eax
10 ; CHECK-NEXT: movd %eax, %xmm0
13 %x2 = load i32, i32* %x1
15 %x = trunc i32 %x3 to i16
16 %r = insertelement <4 x i16> zeroinitializer, i16 %x, i32 0
20 define <8 x i16> @b(i32* %x1) nounwind {
23 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
24 ; CHECK-NEXT: movl (%eax), %eax
25 ; CHECK-NEXT: shrl %eax
26 ; CHECK-NEXT: movzwl %ax, %eax
27 ; CHECK-NEXT: movd %eax, %xmm0
30 %x2 = load i32, i32* %x1
32 %x = trunc i32 %x3 to i16
33 %r = insertelement <8 x i16> zeroinitializer, i16 %x, i32 0
37 define <8 x i8> @c(i32* %x1) nounwind {
40 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
41 ; CHECK-NEXT: movl (%eax), %eax
42 ; CHECK-NEXT: shrl %eax
43 ; CHECK-NEXT: movzwl %ax, %eax
44 ; CHECK-NEXT: movd %eax, %xmm0
47 %x2 = load i32, i32* %x1
49 %x = trunc i32 %x3 to i8
50 %r = insertelement <8 x i8> zeroinitializer, i8 %x, i32 0
54 define <16 x i8> @d(i32* %x1) nounwind {
57 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
58 ; CHECK-NEXT: movl (%eax), %eax
59 ; CHECK-NEXT: shrl %eax
60 ; CHECK-NEXT: movzbl %al, %eax
61 ; CHECK-NEXT: movd %eax, %xmm0
64 %x2 = load i32, i32* %x1
66 %x = trunc i32 %x3 to i8
67 %r = insertelement <16 x i8> zeroinitializer, i8 %x, i32 0