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 3 4define <8 x i16> @test_mul_v8i16(<8 x i16> %arg1, <8 x i16> %arg2) { 5; SKX-LABEL: test_mul_v8i16: 6; SKX: # %bb.0: 7; SKX-NEXT: vpmullw %xmm1, %xmm0, %xmm0 8; SKX-NEXT: retq 9 %ret = mul <8 x i16> %arg1, %arg2 10 ret <8 x i16> %ret 11} 12 13define <4 x i32> @test_mul_v4i32(<4 x i32> %arg1, <4 x i32> %arg2) { 14; SKX-LABEL: test_mul_v4i32: 15; SKX: # %bb.0: 16; SKX-NEXT: vpmulld %xmm1, %xmm0, %xmm0 17; SKX-NEXT: retq 18 %ret = mul <4 x i32> %arg1, %arg2 19 ret <4 x i32> %ret 20} 21 22define <2 x i64> @test_mul_v2i64(<2 x i64> %arg1, <2 x i64> %arg2) { 23; SKX-LABEL: test_mul_v2i64: 24; SKX: # %bb.0: 25; SKX-NEXT: vpmullq %xmm1, %xmm0, %xmm0 26; SKX-NEXT: retq 27 %ret = mul <2 x i64> %arg1, %arg2 28 ret <2 x i64> %ret 29} 30 31define <16 x i16> @test_mul_v16i16(<16 x i16> %arg1, <16 x i16> %arg2) { 32; SKX-LABEL: test_mul_v16i16: 33; SKX: # %bb.0: 34; SKX-NEXT: vpmullw %ymm1, %ymm0, %ymm0 35; SKX-NEXT: retq 36 %ret = mul <16 x i16> %arg1, %arg2 37 ret <16 x i16> %ret 38} 39 40define <8 x i32> @test_mul_v8i32(<8 x i32> %arg1, <8 x i32> %arg2) { 41; SKX-LABEL: test_mul_v8i32: 42; SKX: # %bb.0: 43; SKX-NEXT: vpmulld %ymm1, %ymm0, %ymm0 44; SKX-NEXT: retq 45 %ret = mul <8 x i32> %arg1, %arg2 46 ret <8 x i32> %ret 47} 48 49define <4 x i64> @test_mul_v4i64(<4 x i64> %arg1, <4 x i64> %arg2) { 50; SKX-LABEL: test_mul_v4i64: 51; SKX: # %bb.0: 52; SKX-NEXT: vpmullq %ymm1, %ymm0, %ymm0 53; SKX-NEXT: retq 54 %ret = mul <4 x i64> %arg1, %arg2 55 ret <4 x i64> %ret 56} 57 58define <32 x i16> @test_mul_v32i16(<32 x i16> %arg1, <32 x i16> %arg2) { 59; SKX-LABEL: test_mul_v32i16: 60; SKX: # %bb.0: 61; SKX-NEXT: vpmullw %zmm1, %zmm0, %zmm0 62; SKX-NEXT: retq 63 %ret = mul <32 x i16> %arg1, %arg2 64 ret <32 x i16> %ret 65} 66 67define <16 x i32> @test_mul_v16i32(<16 x i32> %arg1, <16 x i32> %arg2) { 68; SKX-LABEL: test_mul_v16i32: 69; SKX: # %bb.0: 70; SKX-NEXT: vpmulld %zmm1, %zmm0, %zmm0 71; SKX-NEXT: retq 72 %ret = mul <16 x i32> %arg1, %arg2 73 ret <16 x i32> %ret 74} 75 76define <8 x i64> @test_mul_v8i64(<8 x i64> %arg1, <8 x i64> %arg2) { 77; SKX-LABEL: test_mul_v8i64: 78; SKX: # %bb.0: 79; SKX-NEXT: vpmullq %zmm1, %zmm0, %zmm0 80; SKX-NEXT: retq 81 %ret = mul <8 x i64> %arg1, %arg2 82 ret <8 x i64> %ret 83} 84 85