forked from OSchip/llvm-project
[Tests] Use %clang_cc1 instead of %clang -cc1 in codegen tests (NFC)
This commit is contained in:
parent
b1f610fec5
commit
f348ca51c7
|
@ -1,11 +1,11 @@
|
|||
// RUN: %clang -cc1 -triple x86_64-gnu-linux -x c++ -S -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-INTEL
|
||||
// RUN: %clang -cc1 -triple aarch64-gnu-linux -x c++ -S -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-AARCH
|
||||
// RUN: %clang -cc1 -triple x86_64-gnu-linux -x c++ -S -emit-llvm -fsanitize-memory-param-retval %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-INTEL
|
||||
// RUN: %clang -cc1 -triple aarch64-gnu-linux -x c++ -S -emit-llvm -fsanitize-memory-param-retval %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-AARCH
|
||||
// RUN: %clang_cc1 -triple x86_64-gnu-linux -x c++ -S -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-INTEL
|
||||
// RUN: %clang_cc1 -triple aarch64-gnu-linux -x c++ -S -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-AARCH
|
||||
// RUN: %clang_cc1 -triple x86_64-gnu-linux -x c++ -S -emit-llvm -fsanitize-memory-param-retval %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-INTEL
|
||||
// RUN: %clang_cc1 -triple aarch64-gnu-linux -x c++ -S -emit-llvm -fsanitize-memory-param-retval %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-AARCH
|
||||
|
||||
// no-sanitize-memory-param-retval does NOT conflict with enable-noundef-analysis
|
||||
// RUN: %clang -cc1 -triple x86_64-gnu-linux -x c++ -S -emit-llvm -fno-sanitize-memory-param-retval %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-INTEL
|
||||
// RUN: %clang -cc1 -triple x86_64-gnu-linux -x c++ -S -emit-llvm -fno-sanitize-memory-param-retval %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-INTEL
|
||||
// RUN: %clang_cc1 -triple x86_64-gnu-linux -x c++ -S -emit-llvm -fno-sanitize-memory-param-retval %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-INTEL
|
||||
// RUN: %clang_cc1 -triple x86_64-gnu-linux -x c++ -S -emit-llvm -fno-sanitize-memory-param-retval %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-INTEL
|
||||
|
||||
//************ Passing structs by value
|
||||
// TODO: No structs may currently be marked noundef
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// RUN: %clang -cc1 -x c++ -triple x86_64-unknown-unknown -O0 -emit-llvm -o - %s | FileCheck %s
|
||||
// RUN: %clang -cc1 -x c++ -triple x86_64-unknown-unknown -O0 -emit-llvm -fsanitize-memory-param-retval -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -x c++ -triple x86_64-unknown-unknown -O0 -emit-llvm -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -x c++ -triple x86_64-unknown-unknown -O0 -emit-llvm -fsanitize-memory-param-retval -o - %s | FileCheck %s
|
||||
|
||||
// no-sanitize-memory-param-retval does NOT conflict with enable-noundef-analysis
|
||||
// RUN: %clang -cc1 -x c++ -triple x86_64-unknown-unknown -O0 -emit-llvm -fno-sanitize-memory-param-retval -o - %s | FileCheck %s
|
||||
// RUN: %clang -cc1 -x c++ -triple x86_64-unknown-unknown -O0 -emit-llvm -fno-sanitize-memory-param-retval -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -x c++ -triple x86_64-unknown-unknown -O0 -emit-llvm -fno-sanitize-memory-param-retval -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -x c++ -triple x86_64-unknown-unknown -O0 -emit-llvm -fno-sanitize-memory-param-retval -o - %s | FileCheck %s
|
||||
|
||||
union u1 {
|
||||
int val;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -cc1 -triple x86_64-windows-msvc -emit-llvm %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm %s -o - | FileCheck %s
|
||||
|
||||
// CHECK: @constinit = private global [3 x i8*] [i8* blockaddress(@main, %L), i8* null, i8* null]
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
// RUN: llvm-profdata merge -o %t1.profdata %S/Inputs/thinlto_expect1.proftext
|
||||
// RUN: %clang -target x86_64-linux-gnu -O2 -fexperimental-new-pass-manager -flto=thin -g -fprofile-use=%t1.profdata -c -o %t1.bo %s
|
||||
// RUN: llvm-lto -thinlto -o %t %t1.bo
|
||||
// RUN: %clang -cc1 -triple x86_64-linux-gnu -O2 -fexperimental-new-pass-manager -x ir %t1.bo -fthinlto-index=%t.thinlto.bc -emit-obj -Rpass-analysis=info 2>&1 | FileCheck %s -check-prefix=CHECK-REMARK
|
||||
// RUN: %clang_cc1 -triple x86_64-linux-gnu -O2 -fexperimental-new-pass-manager -x ir %t1.bo -fthinlto-index=%t.thinlto.bc -emit-obj -Rpass-analysis=info 2>&1 | FileCheck %s -check-prefix=CHECK-REMARK
|
||||
// RUN: llvm-profdata merge -o %t2.profdata %S/Inputs/thinlto_expect2.proftext
|
||||
// RUN: %clang -cc1 -triple x86_64-linux-gnu -O2 -fexperimental-new-pass-manager -x ir %t1.bo -fthinlto-index=%t.thinlto.bc -fprofile-instrument-use-path=%t2.profdata -emit-obj 2>&1 | FileCheck %s -allow-empty -check-prefix=CHECK-NOWARNING
|
||||
// RUN: %clang_cc1 -triple x86_64-linux-gnu -O2 -fexperimental-new-pass-manager -x ir %t1.bo -fthinlto-index=%t.thinlto.bc -fprofile-instrument-use-path=%t2.profdata -emit-obj 2>&1 | FileCheck %s -allow-empty -check-prefix=CHECK-NOWARNING
|
||||
|
||||
int sum;
|
||||
__attribute__((noinline)) void bar(void) {
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// RUN: %clang -cc1 -debug-info-kind=constructor -emit-llvm %s -o - \
|
||||
// RUN: %clang_cc1 -debug-info-kind=constructor -emit-llvm %s -o - \
|
||||
// RUN: | FileCheck %s -check-prefix=CTOR_HOMING
|
||||
// RUN: %clang -cc1 -debug-info-kind=limited -fuse-ctor-homing -emit-llvm %s -o - \
|
||||
// RUN: %clang_cc1 -debug-info-kind=limited -fuse-ctor-homing -emit-llvm %s -o - \
|
||||
// RUN: | FileCheck %s -check-prefix=CTOR_HOMING
|
||||
// RUN: %clang -cc1 -debug-info-kind=standalone -fuse-ctor-homing -emit-llvm %s -o - \
|
||||
// RUN: %clang_cc1 -debug-info-kind=standalone -fuse-ctor-homing -emit-llvm %s -o - \
|
||||
// RUN: | FileCheck %s -check-prefix=FULL_DEBUG
|
||||
// RUN: %clang -cc1 -debug-info-kind=line-tables-only -fuse-ctor-homing -emit-llvm %s -o - \
|
||||
// RUN: %clang_cc1 -debug-info-kind=line-tables-only -fuse-ctor-homing -emit-llvm %s -o - \
|
||||
// RUN: | FileCheck %s -check-prefix=NO_DEBUG
|
||||
// RUN: %clang -cc1 -fuse-ctor-homing -emit-llvm %s -o - \
|
||||
// RUN: %clang_cc1 -fuse-ctor-homing -emit-llvm %s -o - \
|
||||
// RUN: | FileCheck %s -check-prefix=NO_DEBUG
|
||||
//
|
||||
// RUN: %clang -cc1 -debug-info-kind=constructor -fno-use-ctor-homing \
|
||||
// RUN: %clang_cc1 -debug-info-kind=constructor -fno-use-ctor-homing \
|
||||
// RUN: -emit-llvm %s -o - | FileCheck %s -check-prefix=FULL_DEBUG
|
||||
|
||||
// This tests that the -fuse-ctor-homing is only used if limited debug info would have
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -cc1 -debug-info-kind=constructor -emit-llvm %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -debug-info-kind=constructor -emit-llvm %s -o - | FileCheck %s
|
||||
|
||||
// CHECK-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "A"{{.*}}DIFlagTypePassByValue
|
||||
struct A {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -cc1 -triple x86_64-linux-pc -O3 -disable-llvm-passes %s -emit-llvm -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple x86_64-linux-pc -O3 -disable-llvm-passes %s -emit-llvm -o - | FileCheck %s
|
||||
|
||||
void Shifts(_BitInt(12) E, int i) {
|
||||
E << 99;
|
||||
|
|
Loading…
Reference in New Issue