Hi Alina, This test that you added seems to fail on targets that don't build the x86 backend, for example:
http://lab.llvm.org:8011/builders/clang-cmake-armv7-selfhost-neon/builds/1855 ******************** TEST 'Clang :: CodeGen/loop-vectorize.c' FAILED ******************** Script: -- : 'RUN: at line 1'; /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/bin/clang -cc1 -internal-isystem /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/lib/clang/9.0.0/include -nostdsysteminc -triple x86_64 -target-cpu x86-64 -S -O1 -vectorize-loops -emit-llvm -o - /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/tools/clang/test/CodeGen/loop-vectorize.c | /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/bin/FileCheck /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/tools/clang/test/CodeGen/loop-vectorize.c -check-prefix=CHECK-ENABLE-VECT : 'RUN: at line 2'; /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/bin/clang -cc1 -internal-isystem /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/lib/clang/9.0.0/include -nostdsysteminc -triple x86_64 -target-cpu x86-64 -S -O1 -emit-llvm -o - /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/tools/clang/test/CodeGen/loop-vectorize.c | /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/bin/FileCheck /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/tools/clang/test/CodeGen/loop-vectorize.c -check-prefix=CHECK-DISABLE-VECT : 'RUN: at line 3'; /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/bin/clang -cc1 -internal-isystem /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/lib/clang/9.0.0/include -nostdsysteminc -triple x86_64 -target-cpu x86-64 -fexperimental-new-pass-manager -S -O1 -vectorize-loops -emit-llvm -o - /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/tools/clang/test/CodeGen/loop-vectorize.c | /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/bin/FileCheck /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/tools/clang/test/CodeGen/loop-vectorize.c -check-prefix=CHECK-ENABLE-VECT : 'RUN: at line 4'; /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/bin/clang -cc1 -internal-isystem /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/lib/clang/9.0.0/include -nostdsysteminc -triple x86_64 -target-cpu x86-64 -fexperimental-new-pass-manager -S -O1 -emit-llvm -o - /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/tools/clang/test/CodeGen/loop-vectorize.c | /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/stage2/bin/FileCheck /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/tools/clang/test/CodeGen/loop-vectorize.c -check-prefix=CHECK-DISABLE-VECT -- Exit Code: 1 Command Output (stderr): -- /home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/tools/clang/test/CodeGen/loop-vectorize.c:7:23: error: CHECK-ENABLE-VECT: expected string not found in input // CHECK-ENABLE-VECT: fmul <{{[0-9]+}} x double> ^ <stdin>:9:25: note: scanning from here define void @for_test() local_unnamed_addr #0 { ^ <stdin>:11:5: note: possible intended match here %A = alloca [1000 x double], align 16 ^ -- Can you take a look into fixing the test or running it only when the x86 backend is present? Douglas Yung -----Original Message----- From: cfe-commits <cfe-commits-boun...@lists.llvm.org> On Behalf Of Alina Sbirlea via cfe-commits Sent: Thursday, May 23, 2019 15:08 To: cfe-commits@lists.llvm.org Subject: r361562 - Use clang_cc1 instead of clang in CodeGen test. Author: asbirlea Date: Thu May 23 15:07:37 2019 New Revision: 361562 URL: http://llvm.org/viewvc/llvm-project?rev=361562&view=rev Log: Use clang_cc1 instead of clang in CodeGen test. Modified: cfe/trunk/test/CodeGen/loop-vectorize.c Modified: cfe/trunk/test/CodeGen/loop-vectorize.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/loop-vectorize.c?rev=361562&r1=361561&r2=361562&view=diff ============================================================================== --- cfe/trunk/test/CodeGen/loop-vectorize.c (original) +++ cfe/trunk/test/CodeGen/loop-vectorize.c Thu May 23 15:07:37 2019 @@ -1,7 +1,7 @@ -// RUN: %clang -target x86_64 -S -c -O1 -fvectorize -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK-ENABLE-VECT -// RUN: %clang -target x86_64 -S -c -O1 -fno-vectorize -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK-DISABLE-VECT -// RUN: %clang -target x86_64 -fexperimental-new-pass-manager -S -c -O1 -fvectorize -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK-ENABLE-VECT -// RUN: %clang -target x86_64 -fexperimental-new-pass-manager -S -c -O1 -fno-vectorize -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK-DISABLE-VECT +// RUN: %clang_cc1 -triple x86_64 -target-cpu x86-64 -S -O1 +-vectorize-loops -emit-llvm -o - %s | FileCheck %s +-check-prefix=CHECK-ENABLE-VECT // RUN: %clang_cc1 -triple x86_64 +-target-cpu x86-64 -S -O1 -emit-llvm -o - %s | FileCheck %s +-check-prefix=CHECK-DISABLE-VECT // RUN: %clang_cc1 -triple x86_64 +-target-cpu x86-64 -fexperimental-new-pass-manager -S -O1 +-vectorize-loops -emit-llvm -o - %s | FileCheck %s +-check-prefix=CHECK-ENABLE-VECT // RUN: %clang_cc1 -triple x86_64 +-target-cpu x86-64 -fexperimental-new-pass-manager -S -O1 -emit-llvm -o +- %s | FileCheck %s -check-prefix=CHECK-DISABLE-VECT // CHECK-ENABLE-VECT-LABEL: @for_test() // CHECK-ENABLE-VECT: fmul <{{[0-9]+}} x double> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits