1
; RUN: llc -mtriple=x86_64-none-linux -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s
2
; RUN: llc -mtriple=i686-none-linux -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s
4
define i8 @test_sdiv8(i8 %dividend, i8 %divisor) nounwind {
6
%result = sdiv i8 %dividend, %divisor
10
; CHECK-LABEL: test_sdiv8:
14
define i8 @test_srem8(i8 %dividend, i8 %divisor) nounwind {
16
%result = srem i8 %dividend, %divisor
20
; CHECK-LABEL: test_srem8:
24
define i8 @test_udiv8(i8 %dividend, i8 %divisor) nounwind {
26
%result = udiv i8 %dividend, %divisor
30
; CHECK-LABEL: test_udiv8:
34
define i8 @test_urem8(i8 %dividend, i8 %divisor) nounwind {
36
%result = urem i8 %dividend, %divisor
40
; CHECK-LABEL: test_urem8:
44
define i16 @test_sdiv16(i16 %dividend, i16 %divisor) nounwind {
46
%result = sdiv i16 %dividend, %divisor
50
; CHECK-LABEL: test_sdiv16:
54
define i16 @test_srem16(i16 %dividend, i16 %divisor) nounwind {
56
%result = srem i16 %dividend, %divisor
60
; CHECK-LABEL: test_srem16:
64
define i16 @test_udiv16(i16 %dividend, i16 %divisor) nounwind {
66
%result = udiv i16 %dividend, %divisor
70
; CHECK-LABEL: test_udiv16:
74
define i16 @test_urem16(i16 %dividend, i16 %divisor) nounwind {
76
%result = urem i16 %dividend, %divisor
80
; CHECK-LABEL: test_urem16:
84
define i32 @test_sdiv32(i32 %dividend, i32 %divisor) nounwind {
86
%result = sdiv i32 %dividend, %divisor
90
; CHECK-LABEL: test_sdiv32:
94
define i32 @test_srem32(i32 %dividend, i32 %divisor) nounwind {
96
%result = srem i32 %dividend, %divisor
100
; CHECK-LABEL: test_srem32:
104
define i32 @test_udiv32(i32 %dividend, i32 %divisor) nounwind {
106
%result = udiv i32 %dividend, %divisor
110
; CHECK-LABEL: test_udiv32:
114
define i32 @test_urem32(i32 %dividend, i32 %divisor) nounwind {
116
%result = urem i32 %dividend, %divisor
120
; CHECK-LABEL: test_urem32: