Instruction scheduling itinerary for Intel Atom.
[oota-llvm.git] / test / CodeGen / X86 / atom-sched.ll
1 ; RUN: llc <%s -O2 -mcpu=atom -march=x86 -relocation-model=static | FileCheck -check-prefix=atom %s
2 ; RUN: llc <%s -O2 -mcpu=core2 -march=x86 -relocation-model=static | FileCheck %s
3
4 @a = common global i32 0, align 4
5 @b = common global i32 0, align 4
6 @c = common global i32 0, align 4
7 @d = common global i32 0, align 4
8 @e = common global i32 0, align 4
9 @f = common global i32 0, align 4
10
11 define void @func() nounwind uwtable {
12 ; atom: imull
13 ; atom-NOT: movl
14 ; atom: imull
15 ; CHECK: imull
16 ; CHECK: movl
17 ; CHECK: imull
18 entry:
19   %0 = load i32* @b, align 4
20   %1 = load i32* @c, align 4
21   %mul = mul nsw i32 %0, %1
22   store i32 %mul, i32* @a, align 4
23   %2 = load i32* @e, align 4
24   %3 = load i32* @f, align 4
25   %mul1 = mul nsw i32 %2, %3
26   store i32 %mul1, i32* @d, align 4
27   ret void
28 }