From: Michael J. Spencer Date: Thu, 24 Apr 2014 02:16:29 +0000 (+0000) Subject: Fix test to not depend on llvm optimizations. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc423c3c6929b144f391c998ab6c550d7735e31b;p=clang Fix test to not depend on llvm optimizations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207062 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/avx2-builtins.c b/test/CodeGen/avx2-builtins.c index 5024d94e71..948483db8d 100644 --- a/test/CodeGen/avx2-builtins.c +++ b/test/CodeGen/avx2-builtins.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -O3 -triple=x86_64-apple-darwin -target-feature +avx2 -emit-llvm -o - -Werror | FileCheck %s +// RUN: %clang_cc1 %s -O0 -triple=x86_64-apple-darwin -target-feature +avx2 -emit-llvm -o - -Werror | FileCheck %s // Don't include mm_malloc.h, it's system specific. #define __MM_MALLOC_H @@ -427,17 +427,17 @@ __m256i test_mm256_shuffle_epi8(__m256i a, __m256i b) { } __m256i test_mm256_shuffle_epi32(__m256i a) { - // CHECK: shufflevector <8 x i32> %{{.*}}, <8 x i32> undef, <8 x i32> + // CHECK: shufflevector <8 x i32> %{{.*}}, <8 x i32> %{{.*}}, <8 x i32> return _mm256_shuffle_epi32(a, 15); } __m256i test_mm256_shufflehi_epi16(__m256i a) { - // CHECK: shufflevector <16 x i16> %{{.*}}, <16 x i16> undef, <16 x i32> + // CHECK: shufflevector <16 x i16> %{{.*}}, <16 x i16> %{{.*}}, <16 x i32> return _mm256_shufflehi_epi16(a, 107); } __m256i test_mm256_shufflelo_epi16(__m256i a) { - // CHECK: shufflevector <16 x i16> %{{.*}}, <16 x i16> undef, <16 x i32> + // CHECK: shufflevector <16 x i16> %{{.*}}, <16 x i16> %{{.*}}, <16 x i32> return _mm256_shufflelo_epi16(a, 83); }