From: Javed Absar Date: Tue, 30 May 2017 13:34:26 +0000 (+0000) Subject: Fix issue with test that caused bildbot failure X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec2430ea27a9b886a67329c56d17e240ed9437b9;p=clang Fix issue with test that caused bildbot failure These tests did not specify the target. The failure was triggered by change - https://reviews.llvm.org/D33205 http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/7314 which sets vector alignment to 8-byte for arm-targets (except for Android). So, fixing the test to make it target specific. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304210 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/union-align.c b/test/CodeGen/union-align.c index 89a9456e60..2055d93d8e 100644 --- a/test/CodeGen/union-align.c +++ b/test/CodeGen/union-align.c @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -emit-llvm %s -o - | grep load | grep "4 x float" | not grep "align 4" -// RUN: %clang_cc1 -emit-llvm %s -o - | grep load | grep "4 x float" | grep "align 16" +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | grep load | grep "4 x float" | not grep "align 4" +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | grep load | grep "4 x float" | grep "align 16" // PR3432 // rdar://6536377 diff --git a/test/CodeGenOpenCL/bool_cast.cl b/test/CodeGenOpenCL/bool_cast.cl index 8c86b06577..ab40eccf57 100644 --- a/test/CodeGenOpenCL/bool_cast.cl +++ b/test/CodeGenOpenCL/bool_cast.cl @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -emit-llvm -o - -O0 | FileCheck %s +// RUN: %clang_cc1 %s -triple x86_64-unknown-linux-gnu -emit-llvm -o - -O0 | FileCheck %s typedef unsigned char uchar4 __attribute((ext_vector_type(4))); typedef unsigned int int4 __attribute((ext_vector_type(4)));