From 2cbf6526157958531e5765e7aa6faa53bfac5c5a Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 4 Jan 2024 17:13:20 +0000 Subject: [PATCH] [X86] avx512-pmovxrm.ll - replace X32 checks with X86. NFC. We try to use X32 for gnux32 triples only. --- llvm/test/CodeGen/X86/avx512-pmovxrm.ll | 122 ++++++++++++++++---------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/llvm/test/CodeGen/X86/avx512-pmovxrm.ll b/llvm/test/CodeGen/X86/avx512-pmovxrm.ll index 0b3190be62a5..237ae7a5c64a 100644 --- a/llvm/test/CodeGen/X86/avx512-pmovxrm.ll +++ b/llvm/test/CodeGen/X86/avx512-pmovxrm.ll @@ -1,13 +1,13 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py -; RUN: llc < %s -disable-peephole -mtriple=i686-apple-darwin -mattr=+avx512f,avx512bw | FileCheck %s --check-prefix=X32 +; RUN: llc < %s -disable-peephole -mtriple=i686-apple-darwin -mattr=+avx512f,avx512bw | FileCheck %s --check-prefix=X86 ; RUN: llc < %s -disable-peephole -mtriple=x86_64-apple-darwin -mattr=+avx512f,avx512bw | FileCheck %s --check-prefix=X64 define <32 x i16> @test_llvm_x86_avx512_pmovsxbw(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovsxbw: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovsxbw (%eax), %zmm0 -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovsxbw: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovsxbw (%eax), %zmm0 +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovsxbw: ; X64: ## %bb.0: @@ -19,11 +19,11 @@ define <32 x i16> @test_llvm_x86_avx512_pmovsxbw(ptr %a) { } define <16 x i32> @test_llvm_x86_avx512_pmovsxbd(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovsxbd: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovsxbd (%eax), %zmm0 -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovsxbd: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovsxbd (%eax), %zmm0 +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovsxbd: ; X64: ## %bb.0: @@ -35,11 +35,11 @@ define <16 x i32> @test_llvm_x86_avx512_pmovsxbd(ptr %a) { } define <8 x i64> @test_llvm_x86_avx512_pmovsxbq(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovsxbq: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovsxbq (%eax), %zmm0 -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovsxbq: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovsxbq (%eax), %zmm0 +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovsxbq: ; X64: ## %bb.0: @@ -52,11 +52,11 @@ define <8 x i64> @test_llvm_x86_avx512_pmovsxbq(ptr %a) { } define <16 x i32> @test_llvm_x86_avx512_pmovsxwd(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovsxwd: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovsxwd (%eax), %zmm0 -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovsxwd: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovsxwd (%eax), %zmm0 +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovsxwd: ; X64: ## %bb.0: @@ -68,11 +68,11 @@ define <16 x i32> @test_llvm_x86_avx512_pmovsxwd(ptr %a) { } define <8 x i64> @test_llvm_x86_avx512_pmovsxwq(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovsxwq: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovsxwq (%eax), %zmm0 -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovsxwq: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovsxwq (%eax), %zmm0 +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovsxwq: ; X64: ## %bb.0: @@ -84,11 +84,11 @@ define <8 x i64> @test_llvm_x86_avx512_pmovsxwq(ptr %a) { } define <8 x i64> @test_llvm_x86_avx512_pmovsxdq(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovsxdq: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovsxdq (%eax), %zmm0 -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovsxdq: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovsxdq (%eax), %zmm0 +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovsxdq: ; X64: ## %bb.0: @@ -100,11 +100,11 @@ define <8 x i64> @test_llvm_x86_avx512_pmovsxdq(ptr %a) { } define <32 x i16> @test_llvm_x86_avx512_pmovzxbw(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovzxbw: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovzxbw {{.*#+}} zmm0 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero,mem[4],zero,mem[5],zero,mem[6],zero,mem[7],zero,mem[8],zero,mem[9],zero,mem[10],zero,mem[11],zero,mem[12],zero,mem[13],zero,mem[14],zero,mem[15],zero,mem[16],zero,mem[17],zero,mem[18],zero,mem[19],zero,mem[20],zero,mem[21],zero,mem[22],zero,mem[23],zero,mem[24],zero,mem[25],zero,mem[26],zero,mem[27],zero,mem[28],zero,mem[29],zero,mem[30],zero,mem[31],zero -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovzxbw: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovzxbw {{.*#+}} zmm0 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero,mem[4],zero,mem[5],zero,mem[6],zero,mem[7],zero,mem[8],zero,mem[9],zero,mem[10],zero,mem[11],zero,mem[12],zero,mem[13],zero,mem[14],zero,mem[15],zero,mem[16],zero,mem[17],zero,mem[18],zero,mem[19],zero,mem[20],zero,mem[21],zero,mem[22],zero,mem[23],zero,mem[24],zero,mem[25],zero,mem[26],zero,mem[27],zero,mem[28],zero,mem[29],zero,mem[30],zero,mem[31],zero +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovzxbw: ; X64: ## %bb.0: @@ -116,11 +116,11 @@ define <32 x i16> @test_llvm_x86_avx512_pmovzxbw(ptr %a) { } define <16 x i32> @test_llvm_x86_avx512_pmovzxbd(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovzxbd: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovzxbd {{.*#+}} zmm0 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero,mem[4],zero,zero,zero,mem[5],zero,zero,zero,mem[6],zero,zero,zero,mem[7],zero,zero,zero,mem[8],zero,zero,zero,mem[9],zero,zero,zero,mem[10],zero,zero,zero,mem[11],zero,zero,zero,mem[12],zero,zero,zero,mem[13],zero,zero,zero,mem[14],zero,zero,zero,mem[15],zero,zero,zero -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovzxbd: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovzxbd {{.*#+}} zmm0 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero,mem[4],zero,zero,zero,mem[5],zero,zero,zero,mem[6],zero,zero,zero,mem[7],zero,zero,zero,mem[8],zero,zero,zero,mem[9],zero,zero,zero,mem[10],zero,zero,zero,mem[11],zero,zero,zero,mem[12],zero,zero,zero,mem[13],zero,zero,zero,mem[14],zero,zero,zero,mem[15],zero,zero,zero +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovzxbd: ; X64: ## %bb.0: @@ -132,11 +132,11 @@ define <16 x i32> @test_llvm_x86_avx512_pmovzxbd(ptr %a) { } define <8 x i64> @test_llvm_x86_avx512_pmovzxbq(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovzxbq: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovzxbq {{.*#+}} zmm0 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero,mem[2],zero,zero,zero,zero,zero,zero,zero,mem[3],zero,zero,zero,zero,zero,zero,zero,mem[4],zero,zero,zero,zero,zero,zero,zero,mem[5],zero,zero,zero,zero,zero,zero,zero,mem[6],zero,zero,zero,zero,zero,zero,zero,mem[7],zero,zero,zero,zero,zero,zero,zero -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovzxbq: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovzxbq {{.*#+}} zmm0 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero,mem[2],zero,zero,zero,zero,zero,zero,zero,mem[3],zero,zero,zero,zero,zero,zero,zero,mem[4],zero,zero,zero,zero,zero,zero,zero,mem[5],zero,zero,zero,zero,zero,zero,zero,mem[6],zero,zero,zero,zero,zero,zero,zero,mem[7],zero,zero,zero,zero,zero,zero,zero +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovzxbq: ; X64: ## %bb.0: @@ -149,11 +149,11 @@ define <8 x i64> @test_llvm_x86_avx512_pmovzxbq(ptr %a) { } define <16 x i32> @test_llvm_x86_avx512_pmovzxwd(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovzxwd: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovzxwd {{.*#+}} zmm0 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero,mem[4],zero,mem[5],zero,mem[6],zero,mem[7],zero,mem[8],zero,mem[9],zero,mem[10],zero,mem[11],zero,mem[12],zero,mem[13],zero,mem[14],zero,mem[15],zero -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovzxwd: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovzxwd {{.*#+}} zmm0 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero,mem[4],zero,mem[5],zero,mem[6],zero,mem[7],zero,mem[8],zero,mem[9],zero,mem[10],zero,mem[11],zero,mem[12],zero,mem[13],zero,mem[14],zero,mem[15],zero +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovzxwd: ; X64: ## %bb.0: @@ -165,11 +165,11 @@ define <16 x i32> @test_llvm_x86_avx512_pmovzxwd(ptr %a) { } define <8 x i64> @test_llvm_x86_avx512_pmovzxwq(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovzxwq: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovzxwq {{.*#+}} zmm0 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero,mem[4],zero,zero,zero,mem[5],zero,zero,zero,mem[6],zero,zero,zero,mem[7],zero,zero,zero -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovzxwq: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovzxwq {{.*#+}} zmm0 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero,mem[4],zero,zero,zero,mem[5],zero,zero,zero,mem[6],zero,zero,zero,mem[7],zero,zero,zero +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovzxwq: ; X64: ## %bb.0: @@ -181,11 +181,11 @@ define <8 x i64> @test_llvm_x86_avx512_pmovzxwq(ptr %a) { } define <8 x i64> @test_llvm_x86_avx512_pmovzxdq(ptr %a) { -; X32-LABEL: test_llvm_x86_avx512_pmovzxdq: -; X32: ## %bb.0: -; X32-NEXT: movl {{[0-9]+}}(%esp), %eax -; X32-NEXT: vpmovzxdq {{.*#+}} zmm0 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero,mem[4],zero,mem[5],zero,mem[6],zero,mem[7],zero -; X32-NEXT: retl +; X86-LABEL: test_llvm_x86_avx512_pmovzxdq: +; X86: ## %bb.0: +; X86-NEXT: movl {{[0-9]+}}(%esp), %eax +; X86-NEXT: vpmovzxdq {{.*#+}} zmm0 = mem[0],zero,mem[1],zero,mem[2],zero,mem[3],zero,mem[4],zero,mem[5],zero,mem[6],zero,mem[7],zero +; X86-NEXT: retl ; ; X64-LABEL: test_llvm_x86_avx512_pmovzxdq: ; X64: ## %bb.0: -- 2.11.4.GIT