85 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=x86_64-linux-gnu -mcpu=skx -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=SKX3 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, %xmm08; SKX-NEXT: retq9 %ret = mul <8 x i16> %arg1, %arg210 ret <8 x i16> %ret11}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, %xmm017; SKX-NEXT: retq18 %ret = mul <4 x i32> %arg1, %arg219 ret <4 x i32> %ret20}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, %xmm026; SKX-NEXT: retq27 %ret = mul <2 x i64> %arg1, %arg228 ret <2 x i64> %ret29}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, %ymm035; SKX-NEXT: retq36 %ret = mul <16 x i16> %arg1, %arg237 ret <16 x i16> %ret38}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, %ymm044; SKX-NEXT: retq45 %ret = mul <8 x i32> %arg1, %arg246 ret <8 x i32> %ret47}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, %ymm053; SKX-NEXT: retq54 %ret = mul <4 x i64> %arg1, %arg255 ret <4 x i64> %ret56}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, %zmm062; SKX-NEXT: retq63 %ret = mul <32 x i16> %arg1, %arg264 ret <32 x i16> %ret65}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, %zmm071; SKX-NEXT: retq72 %ret = mul <16 x i32> %arg1, %arg273 ret <16 x i32> %ret74}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, %zmm080; SKX-NEXT: retq81 %ret = mul <8 x i64> %arg1, %arg282 ret <8 x i64> %ret83}84 85