1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=m68k-linux -verify-machineinstrs | FileCheck %s
6 define zeroext i8 @lsrb(i8 zeroext %a, i8 zeroext %b) nounwind {
9 ; CHECK-NEXT: move.b (11,%sp), %d0
10 ; CHECK-NEXT: move.b (7,%sp), %d1
11 ; CHECK-NEXT: lsr.b %d0, %d1
12 ; CHECK-NEXT: move.l %d1, %d0
13 ; CHECK-NEXT: and.l #255, %d0
19 define zeroext i16 @lsrw(i16 zeroext %a, i16 zeroext %b) nounwind {
22 ; CHECK-NEXT: move.w (10,%sp), %d0
23 ; CHECK-NEXT: move.w (6,%sp), %d1
24 ; CHECK-NEXT: lsr.w %d0, %d1
25 ; CHECK-NEXT: move.l %d1, %d0
26 ; CHECK-NEXT: and.l #65535, %d0
32 define i32 @lsrl(i32 %a, i32 %b) nounwind {
35 ; CHECK-NEXT: move.l (8,%sp), %d1
36 ; CHECK-NEXT: move.l (4,%sp), %d0
37 ; CHECK-NEXT: lsr.l %d1, %d0
45 define zeroext i8 @lsrib(i8 zeroext %a) nounwind {
48 ; CHECK-NEXT: move.b (7,%sp), %d0
49 ; CHECK-NEXT: lsr.b #3, %d0
50 ; CHECK-NEXT: and.l #255, %d0
56 define zeroext i16 @lsriw(i16 zeroext %a) nounwind {
59 ; CHECK-NEXT: move.w (6,%sp), %d0
60 ; CHECK-NEXT: lsr.w #5, %d0
61 ; CHECK-NEXT: and.l #65535, %d0
67 define i32 @lsril(i32 %a) nounwind {
70 ; CHECK-NEXT: move.l (4,%sp), %d0
71 ; CHECK-NEXT: lsr.l #7, %d0