[llvm] r276692 - [X86] Regenerate v2i256 shift legalization tests

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 14:14:22 PDT 2016


Author: rksimon
Date: Mon Jul 25 16:14:22 2016
New Revision: 276692

URL: http://llvm.org/viewvc/llvm-project?rev=276692&view=rev
Log:
[X86] Regenerate v2i256 shift legalization tests

Modified:
    llvm/trunk/test/CodeGen/X86/legalize-shl-vec.ll

Modified: llvm/trunk/test/CodeGen/X86/legalize-shl-vec.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/legalize-shl-vec.ll?rev=276692&r1=276691&r2=276692&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/legalize-shl-vec.ll (original)
+++ llvm/trunk/test/CodeGen/X86/legalize-shl-vec.ll Mon Jul 25 16:14:22 2016
@@ -1,44 +1,134 @@
-; RUN: llc < %s -march=x86-64 | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s --check-prefix=CHECK --check-prefix=X32
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=CHECK --check-prefix=X64
 
 define <2 x i256> @test_shl(<2 x i256> %In) {
+; X32-LABEL: test_shl:
+; X32:       # BB#0:
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X32-NEXT:    movl $0, 60(%eax)
+; X32-NEXT:    movl $0, 56(%eax)
+; X32-NEXT:    movl $0, 52(%eax)
+; X32-NEXT:    movl $0, 48(%eax)
+; X32-NEXT:    movl $0, 44(%eax)
+; X32-NEXT:    movl $0, 40(%eax)
+; X32-NEXT:    movl $0, 36(%eax)
+; X32-NEXT:    movl $0, 32(%eax)
+; X32-NEXT:    movl $0, 28(%eax)
+; X32-NEXT:    movl $0, 24(%eax)
+; X32-NEXT:    movl $0, 20(%eax)
+; X32-NEXT:    movl $0, 16(%eax)
+; X32-NEXT:    movl $0, 12(%eax)
+; X32-NEXT:    movl $0, 8(%eax)
+; X32-NEXT:    movl $0, 4(%eax)
+; X32-NEXT:    movl $0, (%eax)
+; X32-NEXT:    retl $4
+;
+; X64-LABEL: test_shl:
+; X64:       # BB#0:
+; X64-NEXT:    movq $0, 56(%rdi)
+; X64-NEXT:    movq $0, 48(%rdi)
+; X64-NEXT:    movq $0, 40(%rdi)
+; X64-NEXT:    movq $0, 32(%rdi)
+; X64-NEXT:    movq $0, 24(%rdi)
+; X64-NEXT:    movq $0, 16(%rdi)
+; X64-NEXT:    movq $0, 8(%rdi)
+; X64-NEXT:    movq $0, (%rdi)
+; X64-NEXT:    movq %rdi, %rax
+; X64-NEXT:    retq
   %Amt = insertelement <2 x i256> undef, i256 -1, i32 0
   %Out = shl <2 x i256> %In, %Amt
   ret <2 x i256> %Out
-
-  ; CHECK-LABEL: test_shl
-  ; CHECK:       movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK:       retq
 }
 
 define <2 x i256> @test_srl(<2 x i256> %In) {
+; X32-LABEL: test_srl:
+; X32:       # BB#0:
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X32-NEXT:    movl $0, 60(%eax)
+; X32-NEXT:    movl $0, 56(%eax)
+; X32-NEXT:    movl $0, 52(%eax)
+; X32-NEXT:    movl $0, 48(%eax)
+; X32-NEXT:    movl $0, 44(%eax)
+; X32-NEXT:    movl $0, 40(%eax)
+; X32-NEXT:    movl $0, 36(%eax)
+; X32-NEXT:    movl $0, 32(%eax)
+; X32-NEXT:    movl $0, 28(%eax)
+; X32-NEXT:    movl $0, 24(%eax)
+; X32-NEXT:    movl $0, 20(%eax)
+; X32-NEXT:    movl $0, 16(%eax)
+; X32-NEXT:    movl $0, 12(%eax)
+; X32-NEXT:    movl $0, 8(%eax)
+; X32-NEXT:    movl $0, 4(%eax)
+; X32-NEXT:    movl $0, (%eax)
+; X32-NEXT:    retl $4
+;
+; X64-LABEL: test_srl:
+; X64:       # BB#0:
+; X64-NEXT:    movq $0, 56(%rdi)
+; X64-NEXT:    movq $0, 48(%rdi)
+; X64-NEXT:    movq $0, 40(%rdi)
+; X64-NEXT:    movq $0, 32(%rdi)
+; X64-NEXT:    movq $0, 24(%rdi)
+; X64-NEXT:    movq $0, 16(%rdi)
+; X64-NEXT:    movq $0, 8(%rdi)
+; X64-NEXT:    movq $0, (%rdi)
+; X64-NEXT:    movq %rdi, %rax
+; X64-NEXT:    retq
   %Amt = insertelement <2 x i256> undef, i256 -1, i32 0
   %Out = lshr <2 x i256> %In, %Amt
   ret <2 x i256> %Out
-
-  ; CHECK-LABEL: test_srl
-  ; CHECK:       movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK-NEXT:  movq $0
-  ; CHECK:       retq
 }
 
 define <2 x i256> @test_sra(<2 x i256> %In) {
+; X32-LABEL: test_sra:
+; X32:       # BB#0:
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X32-NEXT:    movl %ecx, 60(%eax)
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X32-NEXT:    movl %ecx, 56(%eax)
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X32-NEXT:    movl %ecx, 52(%eax)
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X32-NEXT:    movl %ecx, 48(%eax)
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X32-NEXT:    movl %ecx, 44(%eax)
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X32-NEXT:    movl %ecx, 40(%eax)
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X32-NEXT:    movl %ecx, 36(%eax)
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X32-NEXT:    movl %ecx, 32(%eax)
+; X32-NEXT:    movl {{[0-9]+}}(%esp), %ecx
+; X32-NEXT:    sarl $31, %ecx
+; X32-NEXT:    movl %ecx, 28(%eax)
+; X32-NEXT:    movl %ecx, 24(%eax)
+; X32-NEXT:    movl %ecx, 20(%eax)
+; X32-NEXT:    movl %ecx, 16(%eax)
+; X32-NEXT:    movl %ecx, 12(%eax)
+; X32-NEXT:    movl %ecx, 8(%eax)
+; X32-NEXT:    movl %ecx, 4(%eax)
+; X32-NEXT:    movl %ecx, (%eax)
+; X32-NEXT:    retl $4
+;
+; X64-LABEL: test_sra:
+; X64:       # BB#0:
+; X64-NEXT:    movq {{[0-9]+}}(%rsp), %rax
+; X64-NEXT:    movq {{[0-9]+}}(%rsp), %rcx
+; X64-NEXT:    movq {{[0-9]+}}(%rsp), %rdx
+; X64-NEXT:    sarq $63, %r8
+; X64-NEXT:    movq %rdx, 56(%rdi)
+; X64-NEXT:    movq %rcx, 48(%rdi)
+; X64-NEXT:    movq %rax, 40(%rdi)
+; X64-NEXT:    movq %r9, 32(%rdi)
+; X64-NEXT:    movq %r8, 24(%rdi)
+; X64-NEXT:    movq %r8, 16(%rdi)
+; X64-NEXT:    movq %r8, 8(%rdi)
+; X64-NEXT:    movq %r8, (%rdi)
+; X64-NEXT:    movq %rdi, %rax
+; X64-NEXT:    retq
   %Amt = insertelement <2 x i256> undef, i256 -1, i32 0
   %Out = ashr <2 x i256> %In, %Amt
   ret <2 x i256> %Out
-
-  ; CHECK-LABEL: test_sra
-  ; CHECK:       sarq $63
 }




More information about the llvm-commits mailing list