From 6e345426de370479c322962f7aa1dd1cde817adf Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 7 May 2022 13:38:40 +0100 Subject: [PATCH] [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 --- clang/test/CodeGen/X86/avx512pf-builtins.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/clang/test/CodeGen/X86/avx512pf-builtins.c b/clang/test/CodeGen/X86/avx512pf-builtins.c index e1b63d7..4ca70f5 100644 --- a/clang/test/CodeGen/X86/avx512pf-builtins.c +++ b/clang/test/CodeGen/X86/avx512pf-builtins.c @@ -3,49 +3,49 @@ #include -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); -- 2.7.4