35 lines · plain
1; RUN: llc < %s -O2 -mcpu=atom -mtriple=i686-- -relocation-model=static | FileCheck -check-prefix=atom %s2; RUN: llc < %s -O2 -mcpu=slm -mtriple=i686-- -relocation-model=static | FileCheck -check-prefix=slm %s3; RUN: llc < %s -O2 -mcpu=goldmont -mtriple=i686-- -relocation-model=static | FileCheck -check-prefix=slm %s4; RUN: llc < %s -O2 -mcpu=core2 -mtriple=i686-- -relocation-model=static | FileCheck %s5;6 7@a = common global i32 0, align 48@b = common global i32 0, align 49@c = common global i32 0, align 410@d = common global i32 0, align 411@e = common global i32 0, align 412@f = common global i32 0, align 413 14define void @func() nounwind uwtable {15; atom: imull16; atom-NOT: movl17; atom: imull18; slm: imull19; slm-NOT: movl20; slm: imull21; CHECK: imull22; CHECK: movl23; CHECK: imull24entry:25 %0 = load i32, ptr @b, align 426 %1 = load i32, ptr @c, align 427 %mul = mul nsw i32 %0, %128 store i32 %mul, ptr @a, align 429 %2 = load i32, ptr @e, align 430 %3 = load i32, ptr @f, align 431 %mul1 = mul nsw i32 %2, %332 store i32 %mul1, ptr @d, align 433 ret void34}35