Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -march=x86 < %s | FileCheck %s
      2 
      3 define i32 @test1(i32 %x) {
      4   %div = sdiv exact i32 %x, 25
      5   ret i32 %div
      6 ; CHECK: test1:
      7 ; CHECK: imull	$-1030792151, 4(%esp)
      8 ; CHECK-NEXT: ret
      9 }
     10 
     11 define i32 @test2(i32 %x) {
     12   %div = sdiv exact i32 %x, 24
     13   ret i32 %div
     14 ; CHECK: test2:
     15 ; CHECK: sarl	$3
     16 ; CHECK-NEXT: imull	$-1431655765
     17 ; CHECK-NEXT: ret
     18 }
     19