[llvm] r280843 - Rename test pr30298.ll to shrink_vmul_sse.ll, to make the name more meaningful, NFC.
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 7 14:45:07 PDT 2016
Thanks Wei!
> On Sep 7, 2016, at 11:46 AM, Wei Mi via llvm-commits <llvm-commits at lists.llvm.org> wrote:
>
> Author: wmi
> Date: Wed Sep 7 13:46:15 2016
> New Revision: 280843
>
> URL: http://llvm.org/viewvc/llvm-project?rev=280843&view=rev
> Log:
> Rename test pr30298.ll to shrink_vmul_sse.ll, to make the name more meaningful, NFC.
>
> Add PR number and comment in pr30298.ll to explain what is testing.
>
> Added:
> llvm/trunk/test/CodeGen/X86/shrink_vmul_sse.ll
> Removed:
> llvm/trunk/test/CodeGen/X86/pr30298.ll
>
> Removed: llvm/trunk/test/CodeGen/X86/pr30298.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr30298.ll?rev=280842&view=auto
> ==============================================================================
> --- llvm/trunk/test/CodeGen/X86/pr30298.ll (original)
> +++ llvm/trunk/test/CodeGen/X86/pr30298.ll (removed)
> @@ -1,43 +0,0 @@
> -; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
> -; RUN: llc -mtriple=i386-pc-linux-gnu -mattr=+sse < %s | FileCheck %s
> -
> - at c = external global i32*, align 8
> -
> -define void @mul_2xi8(i8* nocapture readonly %a, i8* nocapture readonly %b, i64 %index) nounwind {
> -; CHECK-LABEL: mul_2xi8:
> -; CHECK: # BB#0: # %entry
> -; CHECK-NEXT: pushl %ebx
> -; CHECK-NEXT: pushl %edi
> -; CHECK-NEXT: pushl %esi
> -; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
> -; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx
> -; CHECK-NEXT: movl {{[0-9]+}}(%esp), %edx
> -; CHECK-NEXT: movl c, %esi
> -; CHECK-NEXT: movzbl 1(%edx,%ecx), %edi
> -; CHECK-NEXT: movzbl (%edx,%ecx), %edx
> -; CHECK-NEXT: movzbl 1(%eax,%ecx), %ebx
> -; CHECK-NEXT: movzbl (%eax,%ecx), %eax
> -; CHECK-NEXT: imull %edx, %eax
> -; CHECK-NEXT: imull %edi, %ebx
> -; CHECK-NEXT: movl %ebx, 4(%esi,%ecx,4)
> -; CHECK-NEXT: movl %eax, (%esi,%ecx,4)
> -; CHECK-NEXT: popl %esi
> -; CHECK-NEXT: popl %edi
> -; CHECK-NEXT: popl %ebx
> -; CHECK-NEXT: retl
> -entry:
> - %pre = load i32*, i32** @c
> - %tmp6 = getelementptr inbounds i8, i8* %a, i64 %index
> - %tmp7 = bitcast i8* %tmp6 to <2 x i8>*
> - %wide.load = load <2 x i8>, <2 x i8>* %tmp7, align 1
> - %tmp8 = zext <2 x i8> %wide.load to <2 x i32>
> - %tmp10 = getelementptr inbounds i8, i8* %b, i64 %index
> - %tmp11 = bitcast i8* %tmp10 to <2 x i8>*
> - %wide.load17 = load <2 x i8>, <2 x i8>* %tmp11, align 1
> - %tmp12 = zext <2 x i8> %wide.load17 to <2 x i32>
> - %tmp13 = mul nuw nsw <2 x i32> %tmp12, %tmp8
> - %tmp14 = getelementptr inbounds i32, i32* %pre, i64 %index
> - %tmp15 = bitcast i32* %tmp14 to <2 x i32>*
> - store <2 x i32> %tmp13, <2 x i32>* %tmp15, align 4
> - ret void
> -}
>
> Added: llvm/trunk/test/CodeGen/X86/shrink_vmul_sse.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/shrink_vmul_sse.ll?rev=280843&view=auto
> ==============================================================================
> --- llvm/trunk/test/CodeGen/X86/shrink_vmul_sse.ll (added)
> +++ llvm/trunk/test/CodeGen/X86/shrink_vmul_sse.ll Wed Sep 7 13:46:15 2016
> @@ -0,0 +1,47 @@
> +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
> +;
> +; PR30298: Check if the target doesn't have SSE2, compiler will not crash
> +; or generate incorrect code because of vector mul width shrinking optimization.
> +;
> +; RUN: llc -mtriple=i386-pc-linux-gnu -mattr=+sse < %s | FileCheck %s
> +
> + at c = external global i32*, align 8
> +
> +define void @mul_2xi8(i8* nocapture readonly %a, i8* nocapture readonly %b, i64 %index) nounwind {
> +; CHECK-LABEL: mul_2xi8:
> +; CHECK: # BB#0: # %entry
> +; CHECK-NEXT: pushl %ebx
> +; CHECK-NEXT: pushl %edi
> +; CHECK-NEXT: pushl %esi
> +; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
> +; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx
> +; CHECK-NEXT: movl {{[0-9]+}}(%esp), %edx
> +; CHECK-NEXT: movl c, %esi
> +; CHECK-NEXT: movzbl 1(%edx,%ecx), %edi
> +; CHECK-NEXT: movzbl (%edx,%ecx), %edx
> +; CHECK-NEXT: movzbl 1(%eax,%ecx), %ebx
> +; CHECK-NEXT: movzbl (%eax,%ecx), %eax
> +; CHECK-NEXT: imull %edx, %eax
> +; CHECK-NEXT: imull %edi, %ebx
> +; CHECK-NEXT: movl %ebx, 4(%esi,%ecx,4)
> +; CHECK-NEXT: movl %eax, (%esi,%ecx,4)
> +; CHECK-NEXT: popl %esi
> +; CHECK-NEXT: popl %edi
> +; CHECK-NEXT: popl %ebx
> +; CHECK-NEXT: retl
> +entry:
> + %pre = load i32*, i32** @c
> + %tmp6 = getelementptr inbounds i8, i8* %a, i64 %index
> + %tmp7 = bitcast i8* %tmp6 to <2 x i8>*
> + %wide.load = load <2 x i8>, <2 x i8>* %tmp7, align 1
> + %tmp8 = zext <2 x i8> %wide.load to <2 x i32>
> + %tmp10 = getelementptr inbounds i8, i8* %b, i64 %index
> + %tmp11 = bitcast i8* %tmp10 to <2 x i8>*
> + %wide.load17 = load <2 x i8>, <2 x i8>* %tmp11, align 1
> + %tmp12 = zext <2 x i8> %wide.load17 to <2 x i32>
> + %tmp13 = mul nuw nsw <2 x i32> %tmp12, %tmp8
> + %tmp14 = getelementptr inbounds i32, i32* %pre, i64 %index
> + %tmp15 = bitcast i32* %tmp14 to <2 x i32>*
> + store <2 x i32> %tmp13, <2 x i32>* %tmp15, align 4
> + ret void
> +}
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list