r304210 - Fix issue with test that caused bildbot failure

Javed Absar via cfe-commits cfe-commits at lists.llvm.org
Tue May 30 06:34:26 PDT 2017


Author: javed.absar
Date: Tue May 30 08:34:26 2017
New Revision: 304210

URL: http://llvm.org/viewvc/llvm-project?rev=304210&view=rev
Log:
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. 


Modified:
    cfe/trunk/test/CodeGen/union-align.c
    cfe/trunk/test/CodeGenOpenCL/bool_cast.cl

Modified: cfe/trunk/test/CodeGen/union-align.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/union-align.c?rev=304210&r1=304209&r2=304210&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/union-align.c (original)
+++ cfe/trunk/test/CodeGen/union-align.c Tue May 30 08:34:26 2017
@@ -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
 

Modified: cfe/trunk/test/CodeGenOpenCL/bool_cast.cl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenOpenCL/bool_cast.cl?rev=304210&r1=304209&r2=304210&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenOpenCL/bool_cast.cl (original)
+++ cfe/trunk/test/CodeGenOpenCL/bool_cast.cl Tue May 30 08:34:26 2017
@@ -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)));




More information about the cfe-commits mailing list