1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i386-unknown-linux-gnu -mattr=cmov | FileCheck %s
4 define <2 x i32> @foo(<2 x i32> %tmp) {
6 ; CHECK: # %bb.0: # %entry
7 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
8 ; CHECK-NEXT: leal 7(%eax), %ecx
9 ; CHECK-NEXT: testl %eax, %eax
10 ; CHECK-NEXT: cmovnsl %eax, %ecx
11 ; CHECK-NEXT: sarl $3, %ecx
12 ; CHECK-NEXT: movl $1717986919, %eax # imm = 0x66666667
13 ; CHECK-NEXT: imull {{[0-9]+}}(%esp)
14 ; CHECK-NEXT: movl %edx, %eax
15 ; CHECK-NEXT: shrl $31, %eax
16 ; CHECK-NEXT: sarl $2, %edx
17 ; CHECK-NEXT: addl %edx, %eax
18 ; CHECK-NEXT: movl %ecx, %edx
21 %tmp1 = sdiv <2 x i32> %tmp, <i32 10, i32 8>