• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=x86-64 | FileCheck %s
2
3; CHECK-NOT: imul
4
5define i64 @t1(i64 %a) nounwind readnone {
6entry:
7  %0 = mul i64 %a, 81
8; CHECK: lea
9; CHECK: lea
10  ret i64 %0
11}
12
13define i64 @t2(i64 %a) nounwind readnone {
14entry:
15  %0 = mul i64 %a, 40
16; CHECK: shl
17; CHECK: lea
18  ret i64 %0
19}
20