From decddf739ed9e42ac99e6b407df8d7767dc51b5d Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 19 May 2016 16:48:59 +0000 Subject: [PATCH] [X86][SSE2] Fixed shuffle of results in _mm_cmpnge_sd/_mm_cmpngt_sd tests git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270079 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/sse2-builtins.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/CodeGen/sse2-builtins.c b/test/CodeGen/sse2-builtins.c index 9b822d2f7a..9424c3316c 100644 --- a/test/CodeGen/sse2-builtins.c +++ b/test/CodeGen/sse2-builtins.c @@ -306,6 +306,10 @@ __m128d test_mm_cmpnge_pd(__m128d A, __m128d B) { __m128d test_mm_cmpnge_sd(__m128d A, __m128d B) { // CHECK-LABEL: test_mm_cmpnge_sd // CHECK: call <2 x double> @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 6) + // CHECK: extractelement <2 x double> %{{.*}}, i32 0 + // CHECK: insertelement <2 x double> undef, double %{{.*}}, i32 0 + // CHECK: extractelement <2 x double> %{{.*}}, i32 1 + // CHECK: insertelement <2 x double> %{{.*}}, double %{{.*}}, i32 1 return _mm_cmpnge_sd(A, B); } @@ -318,6 +322,10 @@ __m128d test_mm_cmpngt_pd(__m128d A, __m128d B) { __m128d test_mm_cmpngt_sd(__m128d A, __m128d B) { // CHECK-LABEL: test_mm_cmpngt_sd // CHECK: call <2 x double> @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 5) + // CHECK: extractelement <2 x double> %{{.*}}, i32 0 + // CHECK: insertelement <2 x double> undef, double %{{.*}}, i32 0 + // CHECK: extractelement <2 x double> %{{.*}}, i32 1 + // CHECK: insertelement <2 x double> %{{.*}}, double %{{.*}}, i32 1 return _mm_cmpngt_sd(A, B); } -- 2.40.0