diff options
author | Eric Christopher <echristo@gmail.com> | 2015-04-27 23:11:34 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-04-27 23:11:34 +0000 |
commit | f37ab1ca73d1442518fc685c035833fd8f1fab34 (patch) | |
tree | 4cf0d15e1b12bce9e73138e5adf3e6ab8fbf2b80 /clang/test/CodeGen/function-target-features.c | |
parent | 7cc3494deabb58d810cb1e56636d033572ae4ee4 (diff) | |
download | bcm5719-llvm-f37ab1ca73d1442518fc685c035833fd8f1fab34.tar.gz bcm5719-llvm-f37ab1ca73d1442518fc685c035833fd8f1fab34.zip |
Always add the target-cpu and target-features sets if they're non-null.
This makes sure that the front end is specific about what they're expecting
the backend to produce. Update a FIXME with the idea that the target-features
could be more precise using backend knowledge.
llvm-svn: 235936
Diffstat (limited to 'clang/test/CodeGen/function-target-features.c')
-rw-r--r-- | clang/test/CodeGen/function-target-features.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/CodeGen/function-target-features.c b/clang/test/CodeGen/function-target-features.c index 5665b1f841f..4f8265d7343 100644 --- a/clang/test/CodeGen/function-target-features.c +++ b/clang/test/CodeGen/function-target-features.c @@ -7,15 +7,15 @@ // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s -target-feature +avx512f -target-feature +avx512er | FileCheck %s -check-prefix=TWO-AVX // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s -target-cpu corei7 | FileCheck %s -check-prefix=CORE-CPU // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s -target-cpu corei7 -target-feature +avx | FileCheck %s -check-prefix=CORE-CPU-AND-FEATURES -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s -target-cpu x86-64 | FileCheck %s -check-prefix=X86-64-CPU-NOT +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s -target-cpu x86-64 | FileCheck %s -check-prefix=X86-64-CPU // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s -target-cpu corei7-avx -target-feature -avx | FileCheck %s -check-prefix=AVX-MINUS-FEATURE void foo() {} -// AVX-FEATURE: "target-features"="+avx" +// AVX-FEATURE: "target-features"{{.*}}+avx // AVX-NO-CPU-NOT: target-cpu -// TWO-AVX: "target-features"="+avx512f,+avx512er" +// TWO-AVX: "target-features"={{.*}}+avx512er{{.*}}+avx512f // CORE-CPU: "target-cpu"="corei7" -// CORE-CPU-AND-FEATURES: "target-cpu"="corei7" "target-features"="+avx" -// X86-64-CPU-NOT: "target-cpu" -// AVX-MINUS-FEATURE: "target-features"="-avx" +// CORE-CPU-AND-FEATURES: "target-cpu"="corei7" "target-features"={{.*}}+avx +// X86-64-CPU: "target-cpu"="x86-64" +// AVX-MINUS-FEATURE: "target-features"={{.*}}-avx |