Add a triple to switch.ll test.
[oota-llvm.git] / test / CodeGen / X86 / sdiv-exact.ll
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-LABEL: 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-LABEL: test2:
15 ; CHECK: sarl   $3
16 ; CHECK-NEXT: imull     $-1431655765
17 ; CHECK-NEXT: ret
18 }