]> granicus.if.org Git - clang/commitdiff
Fix issue with test that caused bildbot failure
authorJaved Absar <javed.absar@arm.com>
Tue, 30 May 2017 13:34:26 +0000 (13:34 +0000)
committerJaved Absar <javed.absar@arm.com>
Tue, 30 May 2017 13:34:26 +0000 (13:34 +0000)
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

test/CodeGen/union-align.c
test/CodeGenOpenCL/bool_cast.cl

index 89a9456e609d26143758af5751751c1fc7e17a36..2055d93d8efcaded9beb483d5c637411f1002167 100644 (file)
@@ -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
 
index 8c86b06577d681339f73de7c1b007942d4eb2b53..ab40eccf571f70bca6f6f9e4fa583b4a156ae8dc 100644 (file)
@@ -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)));