1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-linux-gnu -mcpu=skx -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=SKX
4 define <8 x i16> @test_mul_v8i16(<8 x i16> %arg1, <8 x i16> %arg2) {
5 ; SKX-LABEL: test_mul_v8i16:
7 ; SKX-NEXT: vpmullw %xmm1, %xmm0, %xmm0
9 %ret = mul <8 x i16> %arg1, %arg2
13 define <4 x i32> @test_mul_v4i32(<4 x i32> %arg1, <4 x i32> %arg2) {
14 ; SKX-LABEL: test_mul_v4i32:
16 ; SKX-NEXT: vpmulld %xmm1, %xmm0, %xmm0
18 %ret = mul <4 x i32> %arg1, %arg2
22 define <2 x i64> @test_mul_v2i64(<2 x i64> %arg1, <2 x i64> %arg2) {
23 ; SKX-LABEL: test_mul_v2i64:
25 ; SKX-NEXT: vpmullq %xmm1, %xmm0, %xmm0
27 %ret = mul <2 x i64> %arg1, %arg2
31 define <16 x i16> @test_mul_v16i16(<16 x i16> %arg1, <16 x i16> %arg2) {
32 ; SKX-LABEL: test_mul_v16i16:
34 ; SKX-NEXT: vpmullw %ymm1, %ymm0, %ymm0
36 %ret = mul <16 x i16> %arg1, %arg2
40 define <8 x i32> @test_mul_v8i32(<8 x i32> %arg1, <8 x i32> %arg2) {
41 ; SKX-LABEL: test_mul_v8i32:
43 ; SKX-NEXT: vpmulld %ymm1, %ymm0, %ymm0
45 %ret = mul <8 x i32> %arg1, %arg2
49 define <4 x i64> @test_mul_v4i64(<4 x i64> %arg1, <4 x i64> %arg2) {
50 ; SKX-LABEL: test_mul_v4i64:
52 ; SKX-NEXT: vpmullq %ymm1, %ymm0, %ymm0
54 %ret = mul <4 x i64> %arg1, %arg2
58 define <32 x i16> @test_mul_v32i16(<32 x i16> %arg1, <32 x i16> %arg2) {
59 ; SKX-LABEL: test_mul_v32i16:
61 ; SKX-NEXT: vpmullw %zmm1, %zmm0, %zmm0
63 %ret = mul <32 x i16> %arg1, %arg2
67 define <16 x i32> @test_mul_v16i32(<16 x i32> %arg1, <16 x i32> %arg2) {
68 ; SKX-LABEL: test_mul_v16i32:
70 ; SKX-NEXT: vpmulld %zmm1, %zmm0, %zmm0
72 %ret = mul <16 x i32> %arg1, %arg2
76 define <8 x i64> @test_mul_v8i64(<8 x i64> %arg1, <8 x i64> %arg2) {
77 ; SKX-LABEL: test_mul_v8i64:
79 ; SKX-NEXT: vpmullq %zmm1, %zmm0, %zmm0
81 %ret = mul <8 x i64> %arg1, %arg2