This revision was automatically updated to reflect the committed changes. Closed by commit rC352203: [NFC][Clang] Add driver tests for sb and predres (authored by dnsampaio, committed by ).
Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D57060/new/ https://reviews.llvm.org/D57060 Files: test/Driver/aarch64-predres.c test/Driver/arm-sb.c Index: test/Driver/aarch64-predres.c =================================================================== --- test/Driver/aarch64-predres.c +++ test/Driver/aarch64-predres.c @@ -0,0 +1,11 @@ +// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+predres %s 2>&1 | FileCheck %s +// CHECK: "-target-feature" "+predres" +// CHECK-NOT: "-target-feature" "-predres" + +// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+nopredres %s 2>&1 | FileCheck %s --check-prefix=NOPR +// NOPR: "-target-feature" "-predres" +// NOPR-NOT: "-target-feature" "+predres" + +// RUN: %clang -### -target aarch64-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT +// ABSENT-NOT: "-target-feature" "+predres" +// ABSENT-NOT: "-target-feature" "-predres" Index: test/Driver/arm-sb.c =================================================================== --- test/Driver/arm-sb.c +++ test/Driver/arm-sb.c @@ -0,0 +1,14 @@ +// RUN: %clang -### -target arm-none-none-eabi -march=armv8a+sb %s 2>&1 | FileCheck %s +// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+sb %s 2>&1 | FileCheck %s +// CHECK: "-target-feature" "+sb" +// CHECK-NOT: "-target-feature" "-sb" + +// RUN: %clang -### -target arm-none-none-eabi -march=armv8.5a+nosb %s 2>&1 | FileCheck %s --check-prefix=NOSB +// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+nosb %s 2>&1 | FileCheck %s --check-prefix=NOSB +// NOSB: "-target-feature" "-sb" +// NOSB-NOT: "-target-feature" "+sb" + +// RUN: %clang -### -target arm-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT +// RUN: %clang -### -target aarch64-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT +// ABSENT-NOT: "-target-feature" "+sb" +// ABSENT-NOT: "-target-feature" "-sb"
Index: test/Driver/aarch64-predres.c =================================================================== --- test/Driver/aarch64-predres.c +++ test/Driver/aarch64-predres.c @@ -0,0 +1,11 @@ +// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+predres %s 2>&1 | FileCheck %s +// CHECK: "-target-feature" "+predres" +// CHECK-NOT: "-target-feature" "-predres" + +// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+nopredres %s 2>&1 | FileCheck %s --check-prefix=NOPR +// NOPR: "-target-feature" "-predres" +// NOPR-NOT: "-target-feature" "+predres" + +// RUN: %clang -### -target aarch64-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT +// ABSENT-NOT: "-target-feature" "+predres" +// ABSENT-NOT: "-target-feature" "-predres" Index: test/Driver/arm-sb.c =================================================================== --- test/Driver/arm-sb.c +++ test/Driver/arm-sb.c @@ -0,0 +1,14 @@ +// RUN: %clang -### -target arm-none-none-eabi -march=armv8a+sb %s 2>&1 | FileCheck %s +// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+sb %s 2>&1 | FileCheck %s +// CHECK: "-target-feature" "+sb" +// CHECK-NOT: "-target-feature" "-sb" + +// RUN: %clang -### -target arm-none-none-eabi -march=armv8.5a+nosb %s 2>&1 | FileCheck %s --check-prefix=NOSB +// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+nosb %s 2>&1 | FileCheck %s --check-prefix=NOSB +// NOSB: "-target-feature" "-sb" +// NOSB-NOT: "-target-feature" "+sb" + +// RUN: %clang -### -target arm-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT +// RUN: %clang -### -target aarch64-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENT +// ABSENT-NOT: "-target-feature" "+sb" +// ABSENT-NOT: "-target-feature" "-sb"
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits