[clang] 6e34542 - [X86] Remove unused 'hint' argument from prefetch tests

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Sat May 7 05:38:56 PDT 2022


Author: Simon Pilgrim
Date: 2022-05-07T13:38:40+01:00
New Revision: 6e345426de370479c322962f7aa1dd1cde817adf

URL: https://github.com/llvm/llvm-project/commit/6e345426de370479c322962f7aa1dd1cde817adf
DIFF: https://github.com/llvm/llvm-project/commit/6e345426de370479c322962f7aa1dd1cde817adf.diff

LOG: [X86] Remove unused 'hint' argument from prefetch tests

hint is a compile time constant and can't be passed in as a variable - we already hardcode

Added: 
    

Modified: 
    clang/test/CodeGen/X86/avx512pf-builtins.c

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGen/X86/avx512pf-builtins.c b/clang/test/CodeGen/X86/avx512pf-builtins.c
index e1b63d7208eac..4ca70f5787968 100644
--- a/clang/test/CodeGen/X86/avx512pf-builtins.c
+++ b/clang/test/CodeGen/X86/avx512pf-builtins.c
@@ -3,49 +3,49 @@
 
 #include <immintrin.h>
 
-void test_mm512_mask_prefetch_i32gather_pd(__m256i index, __mmask8 mask, void const *addr, int hint) {
+void test_mm512_mask_prefetch_i32gather_pd(__m256i index, __mmask8 mask, void const *addr) {
   // CHECK-LABEL: @test_mm512_mask_prefetch_i32gather_pd
   // CHECK: @llvm.x86.avx512.gatherpf.dpd
   return _mm512_mask_prefetch_i32gather_pd(index, mask, addr, 2, _MM_HINT_T0); 
 }
 
-void test_mm512_prefetch_i32gather_pd(__m256i index, void const *addr, int hint) {
+void test_mm512_prefetch_i32gather_pd(__m256i index, void const *addr) {
   // CHECK-LABEL: @test_mm512_prefetch_i32gather_pd
   // CHECK: @llvm.x86.avx512.gatherpf.dpd
   return _mm512_prefetch_i32gather_pd(index, addr, 2, _MM_HINT_T0); 
 }
 
-void test_mm512_mask_prefetch_i32gather_ps(__m512i index, __mmask16 mask, void const *addr, int hint) {
+void test_mm512_mask_prefetch_i32gather_ps(__m512i index, __mmask16 mask, void const *addr) {
   // CHECK-LABEL: @test_mm512_mask_prefetch_i32gather_ps
   // CHECK: @llvm.x86.avx512.gatherpf.dps
   return _mm512_mask_prefetch_i32gather_ps(index, mask, addr, 2, _MM_HINT_T0); 
 }
 
-void test_mm512_prefetch_i32gather_ps(__m512i index,  void const *addr, int hint) {
+void test_mm512_prefetch_i32gather_ps(__m512i index,  void const *addr) {
   // CHECK-LABEL: @test_mm512_prefetch_i32gather_ps
   // CHECK: @llvm.x86.avx512.gatherpf.dps
   return _mm512_prefetch_i32gather_ps(index, addr, 2, _MM_HINT_T0); 
 }
 
-void test_mm512_mask_prefetch_i64gather_pd(__m512i index, __mmask8 mask, void const *addr, int hint) {
+void test_mm512_mask_prefetch_i64gather_pd(__m512i index, __mmask8 mask, void const *addr) {
   // CHECK-LABEL: @test_mm512_mask_prefetch_i64gather_pd
   // CHECK: @llvm.x86.avx512.gatherpf.qpd
   return _mm512_mask_prefetch_i64gather_pd(index, mask, addr, 2, _MM_HINT_T0); 
 }
 
-void test_mm512_prefetch_i64gather_pd(__m512i index, void const *addr, int hint) {
+void test_mm512_prefetch_i64gather_pd(__m512i index, void const *addr) {
   // CHECK-LABEL: @test_mm512_prefetch_i64gather_pd
   // CHECK: @llvm.x86.avx512.gatherpf.qpd
   return _mm512_prefetch_i64gather_pd(index, addr, 2, _MM_HINT_T0); 
 }
 
-void test_mm512_mask_prefetch_i64gather_ps(__m512i index, __mmask8 mask, void const *addr, int hint) {
+void test_mm512_mask_prefetch_i64gather_ps(__m512i index, __mmask8 mask, void const *addr) {
   // CHECK-LABEL: @test_mm512_mask_prefetch_i64gather_ps
   // CHECK: @llvm.x86.avx512.gatherpf.qps
   return _mm512_mask_prefetch_i64gather_ps(index, mask, addr, 2, _MM_HINT_T0); 
 }
 
-void test_mm512_prefetch_i64gather_ps(__m512i index, void const *addr, int hint) {
+void test_mm512_prefetch_i64gather_ps(__m512i index, void const *addr) {
   // CHECK-LABEL: @test_mm512_prefetch_i64gather_ps
   // CHECK: @llvm.x86.avx512.gatherpf.qps
   return _mm512_prefetch_i64gather_ps(index, addr, 2, _MM_HINT_T0); 


        


More information about the cfe-commits mailing list