From: Chad Rosier Date: Thu, 24 Aug 2017 14:32:55 +0000 (+0000) Subject: [Driver][AArch64] Add tests for RDM feature. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7143facc65a8e86649d874f1910442615d367524;p=clang [Driver][AArch64] Add tests for RDM feature. Differential Revision: https://reviews.llvm.org/D37106 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311660 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/aarch64-rdm.c b/test/Driver/aarch64-rdm.c new file mode 100644 index 0000000000..4f6fb24b68 --- /dev/null +++ b/test/Driver/aarch64-rdm.c @@ -0,0 +1,9 @@ +// RUN: %clang -target aarch64-none-none-eabi -march=armv8a+rdm -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-RDM %s +// RUN: %clang -target aarch64-none-none-eabi -mcpu=generic+rdm -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-RDM %s +// RUN: %clang -target aarch64-none-none-eabi -mcpu=falkor -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-RDM %s +// RUN: %clang -target aarch64-none-none-eabi -mcpu=thunderx2t99 -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-RDM %s +// CHECK-RDM: "-target-feature" "+rdm" + +// RUN: %clang -target aarch64-none-none-eabi -march=armv8a+nordm -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-NORDM %s +// RUN: %clang -target aarch64-none-none-eabi -mcpu=generic+nordm -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-NORDM %s +// CHECK-NORDM: "-target-feature" "-rdm"