1 ; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s --check-prefix=X86
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=X64
4 ; On i686, this is expanded into a loop. On x86_64, this calls __udivti3.
5 define i65 @udiv65(i65 %a, i65 %b) nounwind {
11 ; X64-NEXT: pushq %rax
12 ; X64-NEXT: andl $1, %esi
13 ; X64-NEXT: andl $1, %ecx
14 ; X64-NEXT: callq __udivti3@PLT
17 %res = udiv i65 %a, %b
21 define i129 @udiv129(i129 %a, i129 %b) nounwind {
27 %res = udiv i129 %a, %b
31 define i129 @urem129(i129 %a, i129 %b) nounwind {
37 %res = urem i129 %a, %b
41 define i129 @sdiv129(i129 %a, i129 %b) nounwind {
47 %res = sdiv i129 %a, %b
51 define i129 @srem129(i129 %a, i129 %b) nounwind {
57 %res = srem i129 %a, %b
62 define i257 @sdiv257(i257 %a, i257 %b) nounwind {
68 %res = sdiv i257 %a, %b