llvm.org GIT mirror llvm / b6c215b
Update tests for 84931. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84932 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 10 years ago
7 changed file(s) with 14 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
1010 %tmp14 = fadd float %tmp12, %tmp7
1111 ret float %tmp14
1212
13 ; CHECK: mulss LCPI1_0(%rip)
13 ; CHECK: mulss LCPI1_3(%rip)
14 ; CHECK-NEXT: mulss LCPI1_0(%rip)
1415 ; CHECK-NEXT: mulss LCPI1_1(%rip)
16 ; CHECK-NEXT: mulss LCPI1_2(%rip)
1517 ; CHECK-NEXT: addss
16 ; CHECK: mulss LCPI1_3(%rip)
17 ; CHECK-NEXT: mulss LCPI1_2(%rip)
1818 ; CHECK-NEXT: addss
1919 ; CHECK-NEXT: addss
2020 ; CHECK-NEXT: ret
99
1010 ; CHECK: t1:
1111 ; CHECK: movl 8(%esp), %eax
12 ; CHECK-NEXT: movl 4(%esp), %ecx
1213 ; CHECK-NEXT: movapd (%eax), %xmm0
13 ; CHECK-NEXT: movl 4(%esp), %eax
1414 ; CHECK-NEXT: movlpd 12(%esp), %xmm0
15 ; CHECK-NEXT: movapd %xmm0, (%eax)
15 ; CHECK-NEXT: movapd %xmm0, (%ecx)
1616 ; CHECK-NEXT: ret
1717 }
1818
2525
2626 ; CHECK: t2:
2727 ; CHECK: movl 8(%esp), %eax
28 ; CHECK-NEXT: movl 4(%esp), %ecx
2829 ; CHECK-NEXT: movapd (%eax), %xmm0
29 ; CHECK-NEXT: movl 4(%esp), %eax
3030 ; CHECK-NEXT: movhpd 12(%esp), %xmm0
31 ; CHECK-NEXT: movapd %xmm0, (%eax)
31 ; CHECK-NEXT: movapd %xmm0, (%ecx)
3232 ; CHECK-NEXT: ret
3333 }
167167 ret void
168168 ; X64: t10:
169169 ; X64: pextrw $4, %xmm0, %eax
170 ; X64: pextrw $6, %xmm0, %edx
170171 ; X64: movlhps %xmm1, %xmm1
171172 ; X64: pshuflw $8, %xmm1, %xmm1
172173 ; X64: pinsrw $2, %eax, %xmm1
173 ; X64: pextrw $6, %xmm0, %eax
174 ; X64: pinsrw $3, %eax, %xmm1
174 ; X64: pinsrw $3, %edx, %xmm1
175175 }
176176
177177
6262 ; CHECK: shift3b:
6363 ; CHECK: movzwl
6464 ; CHECK: movd
65 ; CHECK: psllw
65 ; CHECK-NEXT: psllw
6666 %0 = insertelement <8 x i16> undef, i16 %amt, i32 0
6767 %1 = insertelement <8 x i16> %0, i16 %amt, i32 1
6868 %2 = insertelement <8 x i16> %0, i16 %amt, i32 2
6262 ; CHECK: shift3b:
6363 ; CHECK: movzwl
6464 ; CHECK: movd
65 ; CHECK: psrlw
65 ; CHECK-NEXT: psrlw
6666 %0 = insertelement <8 x i16> undef, i16 %amt, i32 0
6767 %1 = insertelement <8 x i16> %0, i16 %amt, i32 1
6868 %2 = insertelement <8 x i16> %0, i16 %amt, i32 2
5151 ; CHECK: shift3b:
5252 ; CHECK: movzwl
5353 ; CHECK: movd
54 ; CHECK: psraw
54 ; CHECK-NEXT: psraw
5555 %0 = insertelement <8 x i16> undef, i16 %amt, i32 0
5656 %1 = insertelement <8 x i16> %0, i16 %amt, i32 1
5757 %2 = insertelement <8 x i16> %0, i16 %amt, i32 2
55 entry:
66 ; CHECK: shift5a:
77 ; CHECK: movd
8 ; CHECK: pslld
8 ; CHECK-NEXT: pslld
99 %amt = load i32* %pamt
1010 %tmp0 = insertelement <4 x i32> undef, i32 %amt, i32 0
1111 %shamt = shufflevector <4 x i32> %tmp0, <4 x i32> undef, <4 x i32> zeroinitializer
1919 entry:
2020 ; CHECK: shift5b:
2121 ; CHECK: movd
22 ; CHECK: psrad
22 ; CHECK-NEXT: psrad
2323 %amt = load i32* %pamt
2424 %tmp0 = insertelement <4 x i32> undef, i32 %amt, i32 0
2525 %shamt = shufflevector <4 x i32> %tmp0, <4 x i32> undef, <4 x i32> zeroinitializer