• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mcpu=core-avx2 -march=x86-64 < %s | FileCheck %s
2
3define i128 @f1(i64 %a, i64 %b) {
4  %x = zext i64 %a to i128
5  %y = zext i64 %b to i128
6  %r = mul i128 %x, %y
7; CHECK: f1
8; CHECK: mulxq
9; CHECK: ret
10  ret i128 %r
11}
12
13define i128 @f2(i64 %a, i64* %p) {
14  %b = load i64, i64* %p
15  %x = zext i64 %a to i128
16  %y = zext i64 %b to i128
17  %r = mul i128 %x, %y
18; CHECK: f2
19; CHECK: mulxq ({{.+}}), %{{.+}}, %{{.+}}
20; CHECK: ret
21  ret i128 %r
22}
23