From a25cf11c8e39f7d67d7fc362d2e9f789c717c3ee Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Fri, 3 Feb 2017 22:03:47 +0000 Subject: [PATCH] [x86] fix tests with wrong dependency to pass because they broke with r294049 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294058 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/avx512-reduceMinMaxIntrin.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/CodeGen/avx512-reduceMinMaxIntrin.c b/test/CodeGen/avx512-reduceMinMaxIntrin.c index 8249b229c8..993e2964a1 100644 --- a/test/CodeGen/avx512-reduceMinMaxIntrin.c +++ b/test/CodeGen/avx512-reduceMinMaxIntrin.c @@ -1,3 +1,5 @@ +// FIXME: We should not be testing with -O2 (ie, a dependency on the entire IR optimizer). + // RUN: %clang_cc1 -ffreestanding %s -O2 -triple=x86_64-apple-darwin -target-cpu skylake-avx512 -emit-llvm -o - -Wall -Werror |opt -instnamer -S |FileCheck %s #include @@ -202,7 +204,7 @@ double test_mm512_mask_reduce_min_pd(__mmask8 __M, __m512d __W){ int test_mm512_reduce_max_epi32(__m512i __W){ // CHECK: %tmp = bitcast <8 x i64> %__W to <16 x i32> // CHECK: %shuffle1.i = shufflevector <16 x i32> %tmp, <16 x i32> undef, <16 x i32> - // CHECK: %tmp1 = icmp sgt <16 x i32> %tmp, %shuffle1.i + // CHECK: %tmp1 = icmp slt <16 x i32> %shuffle1.i, %tmp // CHECK: %tmp2 = select <16 x i1> %tmp1, <16 x i32> %tmp, <16 x i32> %shuffle1.i // CHECK: %shuffle3.i = shufflevector <16 x i32> %tmp2, <16 x i32> undef, <16 x i32> // CHECK: %tmp3 = icmp sgt <16 x i32> %tmp2, %shuffle3.i @@ -223,7 +225,7 @@ int test_mm512_reduce_max_epi32(__m512i __W){ unsigned int test_mm512_reduce_max_epu32(__m512i __W){ // CHECK: %tmp = bitcast <8 x i64> %__W to <16 x i32> // CHECK: %shuffle1.i = shufflevector <16 x i32> %tmp, <16 x i32> undef, <16 x i32> - // CHECK: %tmp1 = icmp ugt <16 x i32> %tmp, %shuffle1.i + // CHECK: %tmp1 = icmp ult <16 x i32> %shuffle1.i, %tmp // CHECK: %tmp2 = select <16 x i1> %tmp1, <16 x i32> %tmp, <16 x i32> %shuffle1.i // CHECK: %shuffle3.i = shufflevector <16 x i32> %tmp2, <16 x i32> undef, <16 x i32> // CHECK: %tmp3 = icmp ugt <16 x i32> %tmp2, %shuffle3.i @@ -258,7 +260,7 @@ float test_mm512_reduce_max_ps(__m512 __W){ int test_mm512_reduce_min_epi32(__m512i __W){ // CHECK: %tmp = bitcast <8 x i64> %__W to <16 x i32> // CHECK: %shuffle1.i = shufflevector <16 x i32> %tmp, <16 x i32> undef, <16 x i32> - // CHECK: %tmp1 = icmp slt <16 x i32> %tmp, %shuffle1.i + // CHECK: %tmp1 = icmp sgt <16 x i32> %shuffle1.i, %tmp // CHECK: %tmp2 = select <16 x i1> %tmp1, <16 x i32> %tmp, <16 x i32> %shuffle1.i // CHECK: %shuffle3.i = shufflevector <16 x i32> %tmp2, <16 x i32> undef, <16 x i32> // CHECK: %tmp3 = icmp slt <16 x i32> %tmp2, %shuffle3.i @@ -279,7 +281,7 @@ int test_mm512_reduce_min_epi32(__m512i __W){ unsigned int test_mm512_reduce_min_epu32(__m512i __W){ // CHECK: %tmp = bitcast <8 x i64> %__W to <16 x i32> // CHECK: %shuffle1.i = shufflevector <16 x i32> %tmp, <16 x i32> undef, <16 x i32> - // CHECK: %tmp1 = icmp ult <16 x i32> %tmp, %shuffle1.i + // CHECK: %tmp1 = icmp ugt <16 x i32> %shuffle1.i, %tmp // CHECK: %tmp2 = select <16 x i1> %tmp1, <16 x i32> %tmp, <16 x i32> %shuffle1.i // CHECK: %shuffle3.i = shufflevector <16 x i32> %tmp2, <16 x i32> undef, <16 x i32> // CHECK: %tmp3 = icmp ult <16 x i32> %tmp2, %shuffle3.i -- 2.40.0