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