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 @asrb(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: asr.b %d0, %d1
12 ; CHECK-NEXT: move.l %d1, %d0
13 ; CHECK-NEXT: and.l #255, %d0
19 define zeroext i16 @asrw(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: asr.w %d0, %d1
25 ; CHECK-NEXT: move.l %d1, %d0
26 ; CHECK-NEXT: and.l #65535, %d0
32 define i32 @asrl(i32 %a, i32 %b) nounwind {
35 ; CHECK-NEXT: move.l (8,%sp), %d1
36 ; CHECK-NEXT: move.l (4,%sp), %d0
37 ; CHECK-NEXT: asr.l %d1, %d0
45 define zeroext i8 @asrib(i8 zeroext %a) nounwind {
48 ; CHECK-NEXT: move.b (7,%sp), %d0
49 ; CHECK-NEXT: asr.b #3, %d0
50 ; CHECK-NEXT: and.l #255, %d0
56 define zeroext i16 @asriw(i16 zeroext %a) nounwind {
59 ; CHECK-NEXT: move.w (6,%sp), %d0
60 ; CHECK-NEXT: asr.w #5, %d0
61 ; CHECK-NEXT: and.l #65535, %d0
67 define i32 @asril(i32 %a) nounwind {
70 ; CHECK-NEXT: move.l (4,%sp), %d0
71 ; CHECK-NEXT: asr.l #7, %d0