Author: Craig Topper Date: 2020-08-19T15:58:06-07:00 New Revision: 4a367114397ab5d175cb8b74ee6144978e7fdeba
URL: https://github.com/llvm/llvm-project/commit/4a367114397ab5d175cb8b74ee6144978e7fdeba DIFF: https://github.com/llvm/llvm-project/commit/4a367114397ab5d175cb8b74ee6144978e7fdeba.diff LOG: [X86] Add mtune command line test cases that should have gone with 4cbceb74bb5676d0181d4d0cab5194d90a42c2ec Added: clang/test/CodeGen/tune-cpu.c clang/test/Driver/x86-mtune.c Modified: Removed: ################################################################################ diff --git a/clang/test/CodeGen/tune-cpu.c b/clang/test/CodeGen/tune-cpu.c new file mode 100644 index 000000000000..60c2c3048623 --- /dev/null +++ b/clang/test/CodeGen/tune-cpu.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -triple i686-linux-gnu -target-cpu i686 -tune-cpu nehalem -emit-llvm %s -o - | FileCheck %s + +int baz(int a) { return 4; } + +// CHECK: baz{{.*}} #0 +// CHECK: #0 = {{.*}}"target-cpu"="i686" "target-features"="+cx8,+x87" "tune-cpu"="nehalem" diff --git a/clang/test/Driver/x86-mtune.c b/clang/test/Driver/x86-mtune.c new file mode 100644 index 000000000000..65ac1a510eec --- /dev/null +++ b/clang/test/Driver/x86-mtune.c @@ -0,0 +1,5 @@ +// Ensure we support the -mtune flag. +// +// RUN: %clang -target x86_64-unknown-unknown -c -### %s -mtune=nocona 2>&1 \ +// RUN: | FileCheck %s -check-prefix=nocona +// nocona: "-tune-cpu" "nocona" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits