1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc < %s -mtriple=m68k-linux --mcpu M68020 | FileCheck %s
4 define i32 @mul32(i32 %A, i32 %B) {
6 ; CHECK: .cfi_startproc
8 ; CHECK-NEXT: move.l (8,%sp), %d1
9 ; CHECK-NEXT: move.l (4,%sp), %d0
10 ; CHECK-NEXT: muls.l %d1, %d0
16 define i32 @sdiv_32(i32 %A, i32 %B) {
17 ; CHECK-LABEL: sdiv_32:
18 ; CHECK: .cfi_startproc
19 ; CHECK-NEXT: ; %bb.0:
20 ; CHECK-NEXT: move.l (8,%sp), %d1
21 ; CHECK-NEXT: move.l (4,%sp), %d0
22 ; CHECK-NEXT: divs.l %d1, %d0
24 %div = sdiv i32 %A, %B
28 define i32 @udiv32(i32 %A, i32 %B) {
29 ; CHECK-LABEL: udiv32:
30 ; CHECK: .cfi_startproc
31 ; CHECK-NEXT: ; %bb.0:
32 ; CHECK-NEXT: move.l (8,%sp), %d1
33 ; CHECK-NEXT: move.l (4,%sp), %d0
34 ; CHECK-NEXT: divu.l %d1, %d0
36 %div = udiv i32 %A, %B