|
1 |
| -; RUN: llc < %s -march=x86 -mcpu=penryn | FileCheck %s |
| 1 | +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py |
| 2 | +; RUN: llc < %s -mtriple=i686-unknown -mcpu=penryn | FileCheck %s --check-prefix=CHECK |
2 | 3 |
|
3 | 4 | ; Shows a dag combine bug that will generate an illegal build vector
|
4 | 5 | ; with v2i64 build_vector i32, i32.
|
5 | 6 |
|
6 |
| -; CHECK-LABEL: test: |
7 |
| -; CHECK: unpcklpd |
8 |
| -; CHECK: movapd |
9 | 7 | define void @test(<2 x double>* %dst, <4 x double> %src) nounwind {
|
| 8 | +; CHECK-LABEL: test: |
| 9 | +; CHECK: # BB#0: # %entry |
| 10 | +; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax |
| 11 | +; CHECK-NEXT: unpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0] |
| 12 | +; CHECK-NEXT: movapd %xmm0, (%eax) |
| 13 | +; CHECK-NEXT: retl |
10 | 14 | entry:
|
11 |
| - %tmp7.i = shufflevector <4 x double> %src, <4 x double> undef, <2 x i32> < i32 0, i32 2 > |
| 15 | + %tmp7.i = shufflevector <4 x double> %src, <4 x double> undef, <2 x i32> <i32 0, i32 2> |
12 | 16 | store <2 x double> %tmp7.i, <2 x double>* %dst
|
13 | 17 | ret void
|
14 | 18 | }
|
15 | 19 |
|
16 |
| -; CHECK-LABEL: test2: |
17 |
| -; CHECK: movdqa |
18 | 20 | define void @test2(<4 x i16>* %src, <4 x i32>* %dest) nounwind {
|
| 21 | +; CHECK-LABEL: test2: |
| 22 | +; CHECK: # BB#0: # %entry |
| 23 | +; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax |
| 24 | +; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx |
| 25 | +; CHECK-NEXT: pmovzxwd {{.*#+}} xmm0 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero |
| 26 | +; CHECK-NEXT: movdqa %xmm0, (%eax) |
| 27 | +; CHECK-NEXT: retl |
19 | 28 | entry:
|
20 | 29 | %tmp1 = load <4 x i16>, <4 x i16>* %src
|
21 | 30 | %tmp3 = shufflevector <4 x i16> %tmp1, <4 x i16> undef, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
|
|
0 commit comments