forked from OSchip/llvm-project
[X86] Add mtune command line test cases that should have gone with 4cbceb74bb
This commit is contained in:
parent
31adc28d24
commit
4a36711439
|
@ -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"
|
|
@ -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"
|
Loading…
Reference in New Issue