1 ; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s
3 define i32 @shl16sar15(i32 %a) #0 {
4 ; CHECK-LABEL: shl16sar15:
6 ; CHECK-NEXT: movswl {{[0-9]+}}(%esp), %eax
8 %2 = ashr exact i32 %1, 15
12 define i32 @shl16sar17(i32 %a) #0 {
13 ; CHECK-LABEL: shl16sar17:
15 ; CHECK-NEXT: movswl {{[0-9]+}}(%esp), %eax
17 %2 = ashr exact i32 %1, 17
21 define i32 @shl24sar23(i32 %a) #0 {
22 ; CHECK-LABEL: shl24sar23:
24 ; CHECK-NEXT: movsbl {{[0-9]+}}(%esp), %eax
26 %2 = ashr exact i32 %1, 23
30 define i32 @shl24sar25(i32 %a) #0 {
31 ; CHECK-LABEL: shl24sar25:
33 ; CHECK-NEXT: movsbl {{[0-9]+}}(%esp), %eax
35 %2 = ashr exact i32 %1, 25