[llvm] r344560 - [X86] Regenerate avx2-intrinsics-x86.ll to compress the 32 vs 64 bit mode checks.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 15 14:51:22 PDT 2018
Author: ctopper
Date: Mon Oct 15 14:51:22 2018
New Revision: 344560
URL: http://llvm.org/viewvc/llvm-project?rev=344560&view=rev
Log:
[X86] Regenerate avx2-intrinsics-x86.ll to compress the 32 vs 64 bit mode checks.
Modified:
llvm/trunk/test/CodeGen/X86/avx2-intrinsics-x86.ll
Modified: llvm/trunk/test/CodeGen/X86/avx2-intrinsics-x86.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx2-intrinsics-x86.ll?rev=344560&r1=344559&r2=344560&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx2-intrinsics-x86.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx2-intrinsics-x86.ll Mon Oct 15 14:51:22 2018
@@ -5,25 +5,15 @@
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+avx512f,+avx512bw,+avx512vl,+avx512dq -show-mc-encoding | FileCheck %s --check-prefix=CHECK --check-prefix=AVX512VL --check-prefix=X64 --check-prefix=X64-AVX512VL
define <16 x i16> @test_x86_avx2_packssdw(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_packssdw:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpackssdw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x6b,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_packssdw:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpackssdw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x6b,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_packssdw:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpackssdw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x6b,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_packssdw:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpackssdw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x6b,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_packssdw:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpackssdw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x6b,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_packssdw:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpackssdw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x6b,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.packssdw(<8 x i32> %a0, <8 x i32> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -64,25 +54,15 @@ define <16 x i16> @test_x86_avx2_packssd
define <32 x i8> @test_x86_avx2_packsswb(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_packsswb:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpacksswb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x63,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_packsswb:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpacksswb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x63,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_packsswb:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpacksswb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x63,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_packsswb:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpacksswb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x63,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_packsswb:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpacksswb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x63,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_packsswb:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpacksswb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x63,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.packsswb(<16 x i16> %a0, <16 x i16> %a1) ; <<32 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -123,25 +103,15 @@ define <32 x i8> @test_x86_avx2_packsswb
define <32 x i8> @test_x86_avx2_packuswb(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_packuswb:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpackuswb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x67,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_packuswb:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpackuswb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x67,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_packuswb:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpackuswb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x67,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_packuswb:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpackuswb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x67,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_packuswb:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpackuswb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x67,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_packuswb:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpackuswb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x67,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.packuswb(<16 x i16> %a0, <16 x i16> %a1) ; <<32 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -182,25 +152,15 @@ define <32 x i8> @test_x86_avx2_packuswb
define <32 x i8> @test_x86_avx2_padds_b(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_padds_b:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpaddsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xec,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_padds_b:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpaddsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xec,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_padds_b:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpaddsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xec,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_padds_b:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpaddsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xec,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_padds_b:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpaddsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xec,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_padds_b:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpaddsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xec,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.padds.b(<32 x i8> %a0, <32 x i8> %a1) ; <<32 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -208,25 +168,15 @@ declare <32 x i8> @llvm.x86.avx2.padds.b
define <16 x i16> @test_x86_avx2_padds_w(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_padds_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpaddsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xed,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_padds_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpaddsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xed,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_padds_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpaddsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xed,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_padds_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpaddsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xed,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_padds_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpaddsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xed,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_padds_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpaddsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xed,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.padds.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -234,25 +184,15 @@ declare <16 x i16> @llvm.x86.avx2.padds.
define <8 x i32> @test_x86_avx2_pmadd_wd(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmadd_wd:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmaddwd %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf5,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmadd_wd:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmaddwd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf5,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmadd_wd:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmaddwd %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf5,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmadd_wd:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmaddwd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf5,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmadd_wd:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmaddwd %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf5,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmadd_wd:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmaddwd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf5,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.pmadd.wd(<16 x i16> %a0, <16 x i16> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -260,25 +200,15 @@ declare <8 x i32> @llvm.x86.avx2.pmadd.w
define <16 x i16> @test_x86_avx2_pmaxs_w(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmaxs_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmaxsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xee,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmaxs_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmaxsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xee,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmaxs_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmaxsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xee,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmaxs_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmaxsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xee,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmaxs_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmaxsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xee,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmaxs_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmaxsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xee,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.pmaxs.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -286,25 +216,15 @@ declare <16 x i16> @llvm.x86.avx2.pmaxs.
define <32 x i8> @test_x86_avx2_pmaxu_b(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmaxu_b:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmaxub %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xde,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmaxu_b:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmaxub %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xde,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmaxu_b:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmaxub %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xde,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmaxu_b:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmaxub %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xde,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmaxu_b:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmaxub %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xde,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmaxu_b:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmaxub %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xde,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.pmaxu.b(<32 x i8> %a0, <32 x i8> %a1) ; <<32 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -312,25 +232,15 @@ declare <32 x i8> @llvm.x86.avx2.pmaxu.b
define <16 x i16> @test_x86_avx2_pmins_w(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmins_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpminsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xea,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmins_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpminsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xea,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmins_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpminsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xea,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmins_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpminsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xea,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmins_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpminsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xea,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmins_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpminsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xea,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.pmins.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -338,25 +248,15 @@ declare <16 x i16> @llvm.x86.avx2.pmins.
define <32 x i8> @test_x86_avx2_pminu_b(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pminu_b:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpminub %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xda,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pminu_b:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpminub %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xda,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pminu_b:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpminub %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xda,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pminu_b:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpminub %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xda,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pminu_b:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpminub %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xda,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pminu_b:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpminub %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xda,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.pminu.b(<32 x i8> %a0, <32 x i8> %a1) ; <<32 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -364,17 +264,11 @@ declare <32 x i8> @llvm.x86.avx2.pminu.b
define i32 @test_x86_avx2_pmovmskb(<32 x i8> %a0) {
-; X86-LABEL: test_x86_avx2_pmovmskb:
-; X86: ## %bb.0:
-; X86-NEXT: vpmovmskb %ymm0, %eax ## encoding: [0xc5,0xfd,0xd7,0xc0]
-; X86-NEXT: vzeroupper ## encoding: [0xc5,0xf8,0x77]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_pmovmskb:
-; X64: ## %bb.0:
-; X64-NEXT: vpmovmskb %ymm0, %eax ## encoding: [0xc5,0xfd,0xd7,0xc0]
-; X64-NEXT: vzeroupper ## encoding: [0xc5,0xf8,0x77]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_pmovmskb:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vpmovmskb %ymm0, %eax ## encoding: [0xc5,0xfd,0xd7,0xc0]
+; CHECK-NEXT: vzeroupper ## encoding: [0xc5,0xf8,0x77]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call i32 @llvm.x86.avx2.pmovmskb(<32 x i8> %a0) ; <i32> [#uses=1]
ret i32 %res
}
@@ -382,25 +276,15 @@ declare i32 @llvm.x86.avx2.pmovmskb(<32
define <16 x i16> @test_x86_avx2_pmulh_w(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmulh_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmulhw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe5,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmulh_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmulhw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe5,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmulh_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmulhw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe5,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmulh_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmulhw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe5,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmulh_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmulhw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe5,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmulh_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmulhw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe5,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.pmulh.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -408,25 +292,15 @@ declare <16 x i16> @llvm.x86.avx2.pmulh.
define <16 x i16> @test_x86_avx2_pmulhu_w(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmulhu_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmulhuw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe4,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmulhu_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmulhuw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe4,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmulhu_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmulhuw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe4,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmulhu_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmulhuw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe4,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmulhu_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmulhuw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe4,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmulhu_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmulhuw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe4,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.pmulhu.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -434,25 +308,15 @@ declare <16 x i16> @llvm.x86.avx2.pmulhu
define <4 x i64> @test_x86_avx2_psad_bw(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psad_bw:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsadbw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf6,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psad_bw:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsadbw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf6,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psad_bw:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsadbw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf6,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psad_bw:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsadbw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf6,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psad_bw:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsadbw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf6,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psad_bw:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsadbw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf6,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i64> @llvm.x86.avx2.psad.bw(<32 x i8> %a0, <32 x i8> %a1) ; <<4 x i64>> [#uses=1]
ret <4 x i64> %res
}
@@ -460,25 +324,15 @@ declare <4 x i64> @llvm.x86.avx2.psad.bw
define <8 x i32> @test_x86_avx2_psll_d(<8 x i32> %a0, <4 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psll_d:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpslld %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf2,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psll_d:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpslld %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf2,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psll_d:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpslld %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf2,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psll_d:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpslld %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf2,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psll_d:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpslld %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf2,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psll_d:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpslld %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf2,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.psll.d(<8 x i32> %a0, <4 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -486,25 +340,15 @@ declare <8 x i32> @llvm.x86.avx2.psll.d(
define <4 x i64> @test_x86_avx2_psll_q(<4 x i64> %a0, <2 x i64> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psll_q:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsllq %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf3,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psll_q:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsllq %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf3,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psll_q:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsllq %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf3,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psll_q:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsllq %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf3,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psll_q:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsllq %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf3,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psll_q:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsllq %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf3,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i64> @llvm.x86.avx2.psll.q(<4 x i64> %a0, <2 x i64> %a1) ; <<4 x i64>> [#uses=1]
ret <4 x i64> %res
}
@@ -512,25 +356,15 @@ declare <4 x i64> @llvm.x86.avx2.psll.q(
define <16 x i16> @test_x86_avx2_psll_w(<16 x i16> %a0, <8 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psll_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsllw %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf1,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psll_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsllw %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf1,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psll_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsllw %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf1,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psll_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsllw %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf1,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psll_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsllw %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xf1,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psll_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsllw %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xf1,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.psll.w(<16 x i16> %a0, <8 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -538,25 +372,15 @@ declare <16 x i16> @llvm.x86.avx2.psll.w
define <8 x i32> @test_x86_avx2_pslli_d(<8 x i32> %a0) {
-; X86-AVX-LABEL: test_x86_avx2_pslli_d:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpslld $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x72,0xf0,0x07]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pslli_d:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpslld $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x72,0xf0,0x07]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pslli_d:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpslld $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x72,0xf0,0x07]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pslli_d:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpslld $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x72,0xf0,0x07]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pslli_d:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpslld $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x72,0xf0,0x07]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pslli_d:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpslld $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x72,0xf0,0x07]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.pslli.d(<8 x i32> %a0, i32 7) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -564,25 +388,15 @@ declare <8 x i32> @llvm.x86.avx2.pslli.d
define <4 x i64> @test_x86_avx2_pslli_q(<4 x i64> %a0) {
-; X86-AVX-LABEL: test_x86_avx2_pslli_q:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsllq $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x73,0xf0,0x07]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pslli_q:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsllq $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x73,0xf0,0x07]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pslli_q:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsllq $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x73,0xf0,0x07]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pslli_q:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsllq $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x73,0xf0,0x07]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pslli_q:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsllq $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x73,0xf0,0x07]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pslli_q:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsllq $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x73,0xf0,0x07]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i64> @llvm.x86.avx2.pslli.q(<4 x i64> %a0, i32 7) ; <<4 x i64>> [#uses=1]
ret <4 x i64> %res
}
@@ -590,25 +404,15 @@ declare <4 x i64> @llvm.x86.avx2.pslli.q
define <16 x i16> @test_x86_avx2_pslli_w(<16 x i16> %a0) {
-; X86-AVX-LABEL: test_x86_avx2_pslli_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsllw $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x71,0xf0,0x07]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pslli_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsllw $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x71,0xf0,0x07]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pslli_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsllw $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x71,0xf0,0x07]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pslli_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsllw $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x71,0xf0,0x07]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pslli_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsllw $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x71,0xf0,0x07]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pslli_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsllw $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x71,0xf0,0x07]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.pslli.w(<16 x i16> %a0, i32 7) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -616,25 +420,15 @@ declare <16 x i16> @llvm.x86.avx2.pslli.
define <8 x i32> @test_x86_avx2_psra_d(<8 x i32> %a0, <4 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psra_d:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrad %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe2,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psra_d:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrad %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe2,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psra_d:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrad %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe2,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psra_d:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrad %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe2,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psra_d:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrad %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe2,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psra_d:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrad %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe2,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.psra.d(<8 x i32> %a0, <4 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -642,25 +436,15 @@ declare <8 x i32> @llvm.x86.avx2.psra.d(
define <16 x i16> @test_x86_avx2_psra_w(<16 x i16> %a0, <8 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psra_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsraw %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe1,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psra_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsraw %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe1,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psra_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsraw %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe1,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psra_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsraw %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe1,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psra_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsraw %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe1,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psra_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsraw %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe1,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.psra.w(<16 x i16> %a0, <8 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -668,25 +452,15 @@ declare <16 x i16> @llvm.x86.avx2.psra.w
define <8 x i32> @test_x86_avx2_psrai_d(<8 x i32> %a0) {
-; X86-AVX-LABEL: test_x86_avx2_psrai_d:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrad $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x72,0xe0,0x07]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrai_d:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrad $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x72,0xe0,0x07]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrai_d:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrad $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x72,0xe0,0x07]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrai_d:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrad $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x72,0xe0,0x07]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrai_d:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrad $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x72,0xe0,0x07]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrai_d:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrad $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x72,0xe0,0x07]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.psrai.d(<8 x i32> %a0, i32 7) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -694,25 +468,15 @@ declare <8 x i32> @llvm.x86.avx2.psrai.d
define <16 x i16> @test_x86_avx2_psrai_w(<16 x i16> %a0) {
-; X86-AVX-LABEL: test_x86_avx2_psrai_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsraw $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x71,0xe0,0x07]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrai_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsraw $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x71,0xe0,0x07]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrai_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsraw $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x71,0xe0,0x07]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrai_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsraw $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x71,0xe0,0x07]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrai_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsraw $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x71,0xe0,0x07]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrai_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsraw $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x71,0xe0,0x07]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.psrai.w(<16 x i16> %a0, i32 7) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -720,25 +484,15 @@ declare <16 x i16> @llvm.x86.avx2.psrai.
define <8 x i32> @test_x86_avx2_psrl_d(<8 x i32> %a0, <4 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psrl_d:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrld %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xd2,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrl_d:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrld %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xd2,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrl_d:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrld %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xd2,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrl_d:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrld %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xd2,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrl_d:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrld %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xd2,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrl_d:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrld %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xd2,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.psrl.d(<8 x i32> %a0, <4 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -746,25 +500,15 @@ declare <8 x i32> @llvm.x86.avx2.psrl.d(
define <4 x i64> @test_x86_avx2_psrl_q(<4 x i64> %a0, <2 x i64> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psrl_q:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrlq %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xd3,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrl_q:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrlq %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xd3,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrl_q:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrlq %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xd3,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrl_q:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrlq %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xd3,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrl_q:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrlq %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xd3,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrl_q:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrlq %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xd3,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i64> @llvm.x86.avx2.psrl.q(<4 x i64> %a0, <2 x i64> %a1) ; <<4 x i64>> [#uses=1]
ret <4 x i64> %res
}
@@ -772,25 +516,15 @@ declare <4 x i64> @llvm.x86.avx2.psrl.q(
define <16 x i16> @test_x86_avx2_psrl_w(<16 x i16> %a0, <8 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psrl_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrlw %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xd1,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrl_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrlw %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xd1,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrl_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrlw %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xd1,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrl_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrlw %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xd1,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrl_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrlw %xmm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xd1,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrl_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrlw %xmm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xd1,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.psrl.w(<16 x i16> %a0, <8 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -798,25 +532,15 @@ declare <16 x i16> @llvm.x86.avx2.psrl.w
define <8 x i32> @test_x86_avx2_psrli_d(<8 x i32> %a0) {
-; X86-AVX-LABEL: test_x86_avx2_psrli_d:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrld $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x72,0xd0,0x07]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrli_d:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrld $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x72,0xd0,0x07]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrli_d:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrld $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x72,0xd0,0x07]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrli_d:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrld $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x72,0xd0,0x07]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrli_d:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrld $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x72,0xd0,0x07]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrli_d:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrld $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x72,0xd0,0x07]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.psrli.d(<8 x i32> %a0, i32 7) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -824,25 +548,15 @@ declare <8 x i32> @llvm.x86.avx2.psrli.d
define <4 x i64> @test_x86_avx2_psrli_q(<4 x i64> %a0) {
-; X86-AVX-LABEL: test_x86_avx2_psrli_q:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrlq $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x73,0xd0,0x07]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrli_q:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrlq $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x73,0xd0,0x07]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrli_q:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrlq $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x73,0xd0,0x07]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrli_q:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrlq $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x73,0xd0,0x07]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrli_q:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrlq $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x73,0xd0,0x07]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrli_q:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrlq $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x73,0xd0,0x07]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i64> @llvm.x86.avx2.psrli.q(<4 x i64> %a0, i32 7) ; <<4 x i64>> [#uses=1]
ret <4 x i64> %res
}
@@ -850,25 +564,15 @@ declare <4 x i64> @llvm.x86.avx2.psrli.q
define <16 x i16> @test_x86_avx2_psrli_w(<16 x i16> %a0) {
-; X86-AVX-LABEL: test_x86_avx2_psrli_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrlw $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x71,0xd0,0x07]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrli_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrlw $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x71,0xd0,0x07]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrli_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrlw $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x71,0xd0,0x07]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrli_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrlw $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x71,0xd0,0x07]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrli_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrlw $7, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0x71,0xd0,0x07]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrli_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrlw $7, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0x71,0xd0,0x07]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.psrli.w(<16 x i16> %a0, i32 7) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -876,25 +580,15 @@ declare <16 x i16> @llvm.x86.avx2.psrli.
define <32 x i8> @test_x86_avx2_psubs_b(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psubs_b:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsubsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe8,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psubs_b:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsubsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe8,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psubs_b:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsubsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe8,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psubs_b:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsubsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe8,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psubs_b:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsubsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe8,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psubs_b:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsubsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe8,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.psubs.b(<32 x i8> %a0, <32 x i8> %a1) ; <<32 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -902,40 +596,25 @@ declare <32 x i8> @llvm.x86.avx2.psubs.b
define <16 x i16> @test_x86_avx2_psubs_w(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psubs_w:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsubsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe9,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psubs_w:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsubsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe9,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psubs_w:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsubsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe9,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psubs_w:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsubsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe9,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psubs_w:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsubsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc5,0xfd,0xe9,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psubs_w:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsubsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc5,0xfd,0xe9,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.psubs.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
declare <16 x i16> @llvm.x86.avx2.psubs.w(<16 x i16>, <16 x i16>) nounwind readnone
define <8 x i32> @test_x86_avx2_phadd_d(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-LABEL: test_x86_avx2_phadd_d:
-; X86: ## %bb.0:
-; X86-NEXT: vphaddd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x02,0xc1]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_phadd_d:
-; X64: ## %bb.0:
-; X64-NEXT: vphaddd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x02,0xc1]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_phadd_d:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vphaddd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x02,0xc1]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.phadd.d(<8 x i32> %a0, <8 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -943,15 +622,10 @@ declare <8 x i32> @llvm.x86.avx2.phadd.d
define <16 x i16> @test_x86_avx2_phadd_sw(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-LABEL: test_x86_avx2_phadd_sw:
-; X86: ## %bb.0:
-; X86-NEXT: vphaddsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x03,0xc1]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_phadd_sw:
-; X64: ## %bb.0:
-; X64-NEXT: vphaddsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x03,0xc1]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_phadd_sw:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vphaddsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x03,0xc1]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.phadd.sw(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -959,15 +633,10 @@ declare <16 x i16> @llvm.x86.avx2.phadd.
define <16 x i16> @test_x86_avx2_phadd_w(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-LABEL: test_x86_avx2_phadd_w:
-; X86: ## %bb.0:
-; X86-NEXT: vphaddw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x01,0xc1]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_phadd_w:
-; X64: ## %bb.0:
-; X64-NEXT: vphaddw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x01,0xc1]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_phadd_w:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vphaddw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x01,0xc1]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.phadd.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -975,15 +644,10 @@ declare <16 x i16> @llvm.x86.avx2.phadd.
define <8 x i32> @test_x86_avx2_phsub_d(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-LABEL: test_x86_avx2_phsub_d:
-; X86: ## %bb.0:
-; X86-NEXT: vphsubd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x06,0xc1]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_phsub_d:
-; X64: ## %bb.0:
-; X64-NEXT: vphsubd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x06,0xc1]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_phsub_d:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vphsubd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x06,0xc1]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.phsub.d(<8 x i32> %a0, <8 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -991,15 +655,10 @@ declare <8 x i32> @llvm.x86.avx2.phsub.d
define <16 x i16> @test_x86_avx2_phsub_sw(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-LABEL: test_x86_avx2_phsub_sw:
-; X86: ## %bb.0:
-; X86-NEXT: vphsubsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x07,0xc1]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_phsub_sw:
-; X64: ## %bb.0:
-; X64-NEXT: vphsubsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x07,0xc1]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_phsub_sw:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vphsubsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x07,0xc1]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.phsub.sw(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -1007,15 +666,10 @@ declare <16 x i16> @llvm.x86.avx2.phsub.
define <16 x i16> @test_x86_avx2_phsub_w(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-LABEL: test_x86_avx2_phsub_w:
-; X86: ## %bb.0:
-; X86-NEXT: vphsubw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x05,0xc1]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_phsub_w:
-; X64: ## %bb.0:
-; X64-NEXT: vphsubw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x05,0xc1]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_phsub_w:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vphsubw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x05,0xc1]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.phsub.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -1023,25 +677,15 @@ declare <16 x i16> @llvm.x86.avx2.phsub.
define <16 x i16> @test_x86_avx2_pmadd_ub_sw(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmadd_ub_sw:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmaddubsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x04,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmadd_ub_sw:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmaddubsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x04,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmadd_ub_sw:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmaddubsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x04,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmadd_ub_sw:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmaddubsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x04,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmadd_ub_sw:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmaddubsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x04,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmadd_ub_sw:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmaddubsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x04,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.pmadd.ub.sw(<32 x i8> %a0, <32 x i8> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -1080,25 +724,15 @@ define <16 x i16> @test_x86_avx2_pmadd_u
}
define <16 x i16> @test_x86_avx2_pmul_hr_sw(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmul_hr_sw:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmulhrsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x0b,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmul_hr_sw:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmulhrsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x0b,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmul_hr_sw:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmulhrsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x0b,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmul_hr_sw:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmulhrsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x0b,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmul_hr_sw:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmulhrsw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x0b,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmul_hr_sw:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmulhrsw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x0b,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.pmul.hr.sw(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -1106,25 +740,15 @@ declare <16 x i16> @llvm.x86.avx2.pmul.h
define <32 x i8> @test_x86_avx2_pshuf_b(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pshuf_b:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpshufb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x00,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pshuf_b:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpshufb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x00,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pshuf_b:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpshufb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x00,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pshuf_b:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpshufb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x00,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pshuf_b:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpshufb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x00,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pshuf_b:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpshufb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x00,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.pshuf.b(<32 x i8> %a0, <32 x i8> %a1) ; <<16 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -1132,15 +756,10 @@ declare <32 x i8> @llvm.x86.avx2.pshuf.b
define <32 x i8> @test_x86_avx2_psign_b(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-LABEL: test_x86_avx2_psign_b:
-; X86: ## %bb.0:
-; X86-NEXT: vpsignb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x08,0xc1]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_psign_b:
-; X64: ## %bb.0:
-; X64-NEXT: vpsignb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x08,0xc1]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_psign_b:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vpsignb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x08,0xc1]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.psign.b(<32 x i8> %a0, <32 x i8> %a1) ; <<32 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -1148,15 +767,10 @@ declare <32 x i8> @llvm.x86.avx2.psign.b
define <8 x i32> @test_x86_avx2_psign_d(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-LABEL: test_x86_avx2_psign_d:
-; X86: ## %bb.0:
-; X86-NEXT: vpsignd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x0a,0xc1]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_psign_d:
-; X64: ## %bb.0:
-; X64-NEXT: vpsignd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x0a,0xc1]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_psign_d:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vpsignd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x0a,0xc1]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.psign.d(<8 x i32> %a0, <8 x i32> %a1) ; <<4 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -1164,15 +778,10 @@ declare <8 x i32> @llvm.x86.avx2.psign.d
define <16 x i16> @test_x86_avx2_psign_w(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-LABEL: test_x86_avx2_psign_w:
-; X86: ## %bb.0:
-; X86-NEXT: vpsignw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x09,0xc1]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_psign_w:
-; X64: ## %bb.0:
-; X64-NEXT: vpsignw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x09,0xc1]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_psign_w:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vpsignw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x09,0xc1]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.psign.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -1180,15 +789,10 @@ declare <16 x i16> @llvm.x86.avx2.psign.
define <16 x i16> @test_x86_avx2_mpsadbw(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-LABEL: test_x86_avx2_mpsadbw:
-; X86: ## %bb.0:
-; X86-NEXT: vmpsadbw $7, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x42,0xc1,0x07]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_mpsadbw:
-; X64: ## %bb.0:
-; X64-NEXT: vmpsadbw $7, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x42,0xc1,0x07]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_mpsadbw:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vmpsadbw $7, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x42,0xc1,0x07]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.mpsadbw(<32 x i8> %a0, <32 x i8> %a1, i8 7) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -1196,25 +800,15 @@ declare <16 x i16> @llvm.x86.avx2.mpsadb
define <16 x i16> @test_x86_avx2_packusdw(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_packusdw:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpackusdw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x2b,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_packusdw:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpackusdw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x2b,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_packusdw:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpackusdw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x2b,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_packusdw:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpackusdw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x2b,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_packusdw:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpackusdw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x2b,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_packusdw:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpackusdw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x2b,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.packusdw(<8 x i32> %a0, <8 x i32> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -1255,15 +849,10 @@ define <16 x i16> @test_x86_avx2_packusd
define <32 x i8> @test_x86_avx2_pblendvb(<32 x i8> %a0, <32 x i8> %a1, <32 x i8> %a2) {
-; X86-LABEL: test_x86_avx2_pblendvb:
-; X86: ## %bb.0:
-; X86-NEXT: vpblendvb %ymm2, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x4c,0xc1,0x20]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_pblendvb:
-; X64: ## %bb.0:
-; X64-NEXT: vpblendvb %ymm2, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x4c,0xc1,0x20]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_pblendvb:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vpblendvb %ymm2, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x4c,0xc1,0x20]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.pblendvb(<32 x i8> %a0, <32 x i8> %a1, <32 x i8> %a2) ; <<32 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -1271,17 +860,11 @@ declare <32 x i8> @llvm.x86.avx2.pblendv
define <16 x i16> @test_x86_avx2_pblendw(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-LABEL: test_x86_avx2_pblendw:
-; X86: ## %bb.0:
-; X86-NEXT: vpblendw $7, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x0e,0xc1,0x07]
-; X86-NEXT: ## ymm0 = ymm1[0,1,2],ymm0[3,4,5,6,7],ymm1[8,9,10],ymm0[11,12,13,14,15]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_pblendw:
-; X64: ## %bb.0:
-; X64-NEXT: vpblendw $7, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x0e,0xc1,0x07]
-; X64-NEXT: ## ymm0 = ymm1[0,1,2],ymm0[3,4,5,6,7],ymm1[8,9,10],ymm0[11,12,13,14,15]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_pblendw:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vpblendw $7, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x0e,0xc1,0x07]
+; CHECK-NEXT: ## ymm0 = ymm1[0,1,2],ymm0[3,4,5,6,7],ymm1[8,9,10],ymm0[11,12,13,14,15]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.pblendw(<16 x i16> %a0, <16 x i16> %a1, i8 7) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -1289,25 +872,15 @@ declare <16 x i16> @llvm.x86.avx2.pblend
define <32 x i8> @test_x86_avx2_pmaxsb(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmaxsb:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmaxsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3c,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmaxsb:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmaxsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3c,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmaxsb:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmaxsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3c,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmaxsb:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmaxsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3c,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmaxsb:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmaxsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3c,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmaxsb:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmaxsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3c,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.pmaxs.b(<32 x i8> %a0, <32 x i8> %a1) ; <<32 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -1315,25 +888,15 @@ declare <32 x i8> @llvm.x86.avx2.pmaxs.b
define <8 x i32> @test_x86_avx2_pmaxsd(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmaxsd:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmaxsd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3d,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmaxsd:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmaxsd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3d,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmaxsd:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmaxsd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3d,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmaxsd:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmaxsd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3d,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmaxsd:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmaxsd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3d,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmaxsd:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmaxsd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3d,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.pmaxs.d(<8 x i32> %a0, <8 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -1341,25 +904,15 @@ declare <8 x i32> @llvm.x86.avx2.pmaxs.d
define <8 x i32> @test_x86_avx2_pmaxud(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmaxud:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmaxud %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3f,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmaxud:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmaxud %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3f,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmaxud:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmaxud %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3f,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmaxud:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmaxud %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3f,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmaxud:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmaxud %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3f,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmaxud:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmaxud %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3f,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.pmaxu.d(<8 x i32> %a0, <8 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -1367,25 +920,15 @@ declare <8 x i32> @llvm.x86.avx2.pmaxu.d
define <16 x i16> @test_x86_avx2_pmaxuw(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pmaxuw:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpmaxuw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3e,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pmaxuw:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpmaxuw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3e,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pmaxuw:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpmaxuw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3e,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pmaxuw:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpmaxuw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3e,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pmaxuw:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpmaxuw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3e,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pmaxuw:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpmaxuw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3e,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.pmaxu.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -1393,25 +936,15 @@ declare <16 x i16> @llvm.x86.avx2.pmaxu.
define <32 x i8> @test_x86_avx2_pminsb(<32 x i8> %a0, <32 x i8> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pminsb:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpminsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x38,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pminsb:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpminsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x38,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pminsb:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpminsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x38,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pminsb:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpminsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x38,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pminsb:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpminsb %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x38,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pminsb:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpminsb %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x38,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <32 x i8> @llvm.x86.avx2.pmins.b(<32 x i8> %a0, <32 x i8> %a1) ; <<32 x i8>> [#uses=1]
ret <32 x i8> %res
}
@@ -1419,25 +952,15 @@ declare <32 x i8> @llvm.x86.avx2.pmins.b
define <8 x i32> @test_x86_avx2_pminsd(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pminsd:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpminsd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x39,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pminsd:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpminsd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x39,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pminsd:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpminsd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x39,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pminsd:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpminsd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x39,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pminsd:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpminsd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x39,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pminsd:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpminsd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x39,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.pmins.d(<8 x i32> %a0, <8 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -1445,25 +968,15 @@ declare <8 x i32> @llvm.x86.avx2.pmins.d
define <8 x i32> @test_x86_avx2_pminud(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pminud:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpminud %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3b,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pminud:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpminud %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3b,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pminud:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpminud %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3b,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pminud:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpminud %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3b,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pminud:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpminud %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3b,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pminud:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpminud %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3b,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.pminu.d(<8 x i32> %a0, <8 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -1471,25 +984,15 @@ declare <8 x i32> @llvm.x86.avx2.pminu.d
define <16 x i16> @test_x86_avx2_pminuw(<16 x i16> %a0, <16 x i16> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_pminuw:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpminuw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3a,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_pminuw:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpminuw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3a,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_pminuw:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpminuw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3a,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_pminuw:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpminuw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3a,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_pminuw:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpminuw %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x3a,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_pminuw:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpminuw %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x3a,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <16 x i16> @llvm.x86.avx2.pminu.w(<16 x i16> %a0, <16 x i16> %a1) ; <<16 x i16>> [#uses=1]
ret <16 x i16> %res
}
@@ -1497,17 +1000,11 @@ declare <16 x i16> @llvm.x86.avx2.pminu.
define <4 x i32> @test_x86_avx2_pblendd_128(<4 x i32> %a0, <4 x i32> %a1) {
-; X86-LABEL: test_x86_avx2_pblendd_128:
-; X86: ## %bb.0:
-; X86-NEXT: vblendps $8, %xmm0, %xmm1, %xmm0 ## encoding: [0xc4,0xe3,0x71,0x0c,0xc0,0x08]
-; X86-NEXT: ## xmm0 = xmm1[0,1,2],xmm0[3]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_pblendd_128:
-; X64: ## %bb.0:
-; X64-NEXT: vblendps $8, %xmm0, %xmm1, %xmm0 ## encoding: [0xc4,0xe3,0x71,0x0c,0xc0,0x08]
-; X64-NEXT: ## xmm0 = xmm1[0,1,2],xmm0[3]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_pblendd_128:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vblendps $8, %xmm0, %xmm1, %xmm0 ## encoding: [0xc4,0xe3,0x71,0x0c,0xc0,0x08]
+; CHECK-NEXT: ## xmm0 = xmm1[0,1,2],xmm0[3]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i32> @llvm.x86.avx2.pblendd.128(<4 x i32> %a0, <4 x i32> %a1, i8 7) ; <<4 x i32>> [#uses=1]
ret <4 x i32> %res
}
@@ -1515,17 +1012,11 @@ declare <4 x i32> @llvm.x86.avx2.pblendd
define <8 x i32> @test_x86_avx2_pblendd_256(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-LABEL: test_x86_avx2_pblendd_256:
-; X86: ## %bb.0:
-; X86-NEXT: vblendps $7, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x0c,0xc1,0x07]
-; X86-NEXT: ## ymm0 = ymm1[0,1,2],ymm0[3,4,5,6,7]
-; X86-NEXT: retl ## encoding: [0xc3]
-;
-; X64-LABEL: test_x86_avx2_pblendd_256:
-; X64: ## %bb.0:
-; X64-NEXT: vblendps $7, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x0c,0xc1,0x07]
-; X64-NEXT: ## ymm0 = ymm1[0,1,2],ymm0[3,4,5,6,7]
-; X64-NEXT: retq ## encoding: [0xc3]
+; CHECK-LABEL: test_x86_avx2_pblendd_256:
+; CHECK: ## %bb.0:
+; CHECK-NEXT: vblendps $7, %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe3,0x7d,0x0c,0xc1,0x07]
+; CHECK-NEXT: ## ymm0 = ymm1[0,1,2],ymm0[3,4,5,6,7]
+; CHECK-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.pblendd.256(<8 x i32> %a0, <8 x i32> %a1, i8 7) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -1536,25 +1027,15 @@ declare <8 x i32> @llvm.x86.avx2.pblendd
; and its lowering. Indeed, the offsets are the first source in
; the instruction.
define <8 x i32> @test_x86_avx2_permd(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_permd:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## encoding: [0xc4,0xe2,0x75,0x16,0xc0]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_permd:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x75,0x16,0xc0]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_permd:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## encoding: [0xc4,0xe2,0x75,0x16,0xc0]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_permd:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x75,0x16,0xc0]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_permd:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## encoding: [0xc4,0xe2,0x75,0x16,0xc0]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_permd:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x75,0x16,0xc0]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.permd(<8 x i32> %a0, <8 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -1565,25 +1046,15 @@ declare <8 x i32> @llvm.x86.avx2.permd(<
; and its lowering. Indeed, the offsets are the first source in
; the instruction.
define <8 x float> @test_x86_avx2_permps(<8 x float> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_permps:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## encoding: [0xc4,0xe2,0x75,0x16,0xc0]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_permps:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x75,0x16,0xc0]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_permps:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## encoding: [0xc4,0xe2,0x75,0x16,0xc0]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_permps:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x75,0x16,0xc0]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_permps:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## encoding: [0xc4,0xe2,0x75,0x16,0xc0]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_permps:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpermps %ymm0, %ymm1, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x75,0x16,0xc0]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x float> @llvm.x86.avx2.permps(<8 x float> %a0, <8 x i32> %a1) ; <<8 x float>> [#uses=1]
ret <8 x float> %res
}
@@ -1731,25 +1202,15 @@ declare void @llvm.x86.avx2.maskstore.d.
define <4 x i32> @test_x86_avx2_psllv_d(<4 x i32> %a0, <4 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psllv_d:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsllvd %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0x79,0x47,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psllv_d:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsllvd %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x79,0x47,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psllv_d:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsllvd %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0x79,0x47,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psllv_d:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsllvd %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x79,0x47,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psllv_d:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsllvd %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0x79,0x47,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psllv_d:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsllvd %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x79,0x47,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i32> @llvm.x86.avx2.psllv.d(<4 x i32> %a0, <4 x i32> %a1) ; <<4 x i32>> [#uses=1]
ret <4 x i32> %res
}
@@ -1757,25 +1218,15 @@ declare <4 x i32> @llvm.x86.avx2.psllv.d
define <8 x i32> @test_x86_avx2_psllv_d_256(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psllv_d_256:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsllvd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x47,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psllv_d_256:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsllvd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x47,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psllv_d_256:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsllvd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x47,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psllv_d_256:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsllvd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x47,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psllv_d_256:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsllvd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x47,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psllv_d_256:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsllvd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x47,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.psllv.d.256(<8 x i32> %a0, <8 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -1783,25 +1234,15 @@ declare <8 x i32> @llvm.x86.avx2.psllv.d
define <2 x i64> @test_x86_avx2_psllv_q(<2 x i64> %a0, <2 x i64> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psllv_q:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsllvq %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0xf9,0x47,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psllv_q:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsllvq %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xf9,0x47,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psllv_q:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsllvq %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0xf9,0x47,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psllv_q:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsllvq %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xf9,0x47,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psllv_q:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsllvq %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0xf9,0x47,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psllv_q:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsllvq %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xf9,0x47,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <2 x i64> @llvm.x86.avx2.psllv.q(<2 x i64> %a0, <2 x i64> %a1) ; <<2 x i64>> [#uses=1]
ret <2 x i64> %res
}
@@ -1809,25 +1250,15 @@ declare <2 x i64> @llvm.x86.avx2.psllv.q
define <4 x i64> @test_x86_avx2_psllv_q_256(<4 x i64> %a0, <4 x i64> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psllv_q_256:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsllvq %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0xfd,0x47,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psllv_q_256:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsllvq %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xfd,0x47,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psllv_q_256:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsllvq %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0xfd,0x47,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psllv_q_256:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsllvq %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xfd,0x47,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psllv_q_256:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsllvq %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0xfd,0x47,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psllv_q_256:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsllvq %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xfd,0x47,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i64> @llvm.x86.avx2.psllv.q.256(<4 x i64> %a0, <4 x i64> %a1) ; <<4 x i64>> [#uses=1]
ret <4 x i64> %res
}
@@ -1835,25 +1266,15 @@ declare <4 x i64> @llvm.x86.avx2.psllv.q
define <4 x i32> @test_x86_avx2_psrlv_d(<4 x i32> %a0, <4 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psrlv_d:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrlvd %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0x79,0x45,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrlv_d:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrlvd %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x79,0x45,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrlv_d:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrlvd %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0x79,0x45,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrlv_d:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrlvd %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x79,0x45,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrlv_d:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrlvd %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0x79,0x45,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrlv_d:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrlvd %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x79,0x45,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i32> @llvm.x86.avx2.psrlv.d(<4 x i32> %a0, <4 x i32> %a1) ; <<4 x i32>> [#uses=1]
ret <4 x i32> %res
}
@@ -1861,25 +1282,15 @@ declare <4 x i32> @llvm.x86.avx2.psrlv.d
define <8 x i32> @test_x86_avx2_psrlv_d_256(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psrlv_d_256:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrlvd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x45,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrlv_d_256:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrlvd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x45,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrlv_d_256:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrlvd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x45,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrlv_d_256:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrlvd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x45,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrlv_d_256:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrlvd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x45,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrlv_d_256:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrlvd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x45,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.psrlv.d.256(<8 x i32> %a0, <8 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
@@ -1887,25 +1298,15 @@ declare <8 x i32> @llvm.x86.avx2.psrlv.d
define <2 x i64> @test_x86_avx2_psrlv_q(<2 x i64> %a0, <2 x i64> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psrlv_q:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrlvq %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0xf9,0x45,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrlv_q:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrlvq %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xf9,0x45,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrlv_q:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrlvq %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0xf9,0x45,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrlv_q:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrlvq %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xf9,0x45,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrlv_q:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrlvq %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0xf9,0x45,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrlv_q:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrlvq %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xf9,0x45,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <2 x i64> @llvm.x86.avx2.psrlv.q(<2 x i64> %a0, <2 x i64> %a1) ; <<2 x i64>> [#uses=1]
ret <2 x i64> %res
}
@@ -1913,25 +1314,15 @@ declare <2 x i64> @llvm.x86.avx2.psrlv.q
define <4 x i64> @test_x86_avx2_psrlv_q_256(<4 x i64> %a0, <4 x i64> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psrlv_q_256:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsrlvq %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0xfd,0x45,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrlv_q_256:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsrlvq %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xfd,0x45,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrlv_q_256:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsrlvq %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0xfd,0x45,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrlv_q_256:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsrlvq %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xfd,0x45,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrlv_q_256:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsrlvq %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0xfd,0x45,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrlv_q_256:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsrlvq %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0xfd,0x45,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i64> @llvm.x86.avx2.psrlv.q.256(<4 x i64> %a0, <4 x i64> %a1) ; <<4 x i64>> [#uses=1]
ret <4 x i64> %res
}
@@ -1939,25 +1330,15 @@ declare <4 x i64> @llvm.x86.avx2.psrlv.q
define <4 x i32> @test_x86_avx2_psrav_d(<4 x i32> %a0, <4 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psrav_d:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsravd %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0x79,0x46,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrav_d:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsravd %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x79,0x46,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrav_d:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsravd %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0x79,0x46,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrav_d:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsravd %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x79,0x46,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrav_d:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsravd %xmm1, %xmm0, %xmm0 ## encoding: [0xc4,0xe2,0x79,0x46,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrav_d:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsravd %xmm1, %xmm0, %xmm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x79,0x46,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <4 x i32> @llvm.x86.avx2.psrav.d(<4 x i32> %a0, <4 x i32> %a1) ; <<4 x i32>> [#uses=1]
ret <4 x i32> %res
}
@@ -2004,25 +1385,15 @@ define <4 x i32> @test_x86_avx2_psrav_d_
declare <4 x i32> @llvm.x86.avx2.psrav.d(<4 x i32>, <4 x i32>) nounwind readnone
define <8 x i32> @test_x86_avx2_psrav_d_256(<8 x i32> %a0, <8 x i32> %a1) {
-; X86-AVX-LABEL: test_x86_avx2_psrav_d_256:
-; X86-AVX: ## %bb.0:
-; X86-AVX-NEXT: vpsravd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x46,0xc1]
-; X86-AVX-NEXT: retl ## encoding: [0xc3]
-;
-; X86-AVX512VL-LABEL: test_x86_avx2_psrav_d_256:
-; X86-AVX512VL: ## %bb.0:
-; X86-AVX512VL-NEXT: vpsravd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x46,0xc1]
-; X86-AVX512VL-NEXT: retl ## encoding: [0xc3]
-;
-; X64-AVX-LABEL: test_x86_avx2_psrav_d_256:
-; X64-AVX: ## %bb.0:
-; X64-AVX-NEXT: vpsravd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x46,0xc1]
-; X64-AVX-NEXT: retq ## encoding: [0xc3]
-;
-; X64-AVX512VL-LABEL: test_x86_avx2_psrav_d_256:
-; X64-AVX512VL: ## %bb.0:
-; X64-AVX512VL-NEXT: vpsravd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x46,0xc1]
-; X64-AVX512VL-NEXT: retq ## encoding: [0xc3]
+; AVX2-LABEL: test_x86_avx2_psrav_d_256:
+; AVX2: ## %bb.0:
+; AVX2-NEXT: vpsravd %ymm1, %ymm0, %ymm0 ## encoding: [0xc4,0xe2,0x7d,0x46,0xc1]
+; AVX2-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
+;
+; AVX512VL-LABEL: test_x86_avx2_psrav_d_256:
+; AVX512VL: ## %bb.0:
+; AVX512VL-NEXT: vpsravd %ymm1, %ymm0, %ymm0 ## EVEX TO VEX Compression encoding: [0xc4,0xe2,0x7d,0x46,0xc1]
+; AVX512VL-NEXT: ret{{[l|q]}} ## encoding: [0xc3]
%res = call <8 x i32> @llvm.x86.avx2.psrav.d.256(<8 x i32> %a0, <8 x i32> %a1) ; <<8 x i32>> [#uses=1]
ret <8 x i32> %res
}
More information about the llvm-commits
mailing list