[X86] Add mtune command line test cases that should have gone with 4cbceb74bb

This commit is contained in:
Craig Topper 2020-08-19 15:58:06 -07:00
parent 31adc28d24
commit 4a36711439
2 changed files with 11 additions and 0 deletions

View File

@ -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"

View File

@ -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"