diff options
author | Daniel Jasper <djasper@google.com> | 2015-03-23 05:52:28 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-03-23 05:52:28 +0000 |
commit | 17ae9f02060e611fd1e1cc2f693869efe0960ff4 (patch) | |
tree | 72e5068f766c01bb9deec2d10bb0cb3bbd300a55 /clang/test/CodeGen/function-target-features.c | |
parent | 3b1c3501f2b69df1e2eddffca7bd93bb6ea15984 (diff) | |
download | bcm5719-llvm-17ae9f02060e611fd1e1cc2f693869efe0960ff4.tar.gz bcm5719-llvm-17ae9f02060e611fd1e1cc2f693869efe0960ff4.zip |
Revert "Add CodeGen support for adding cpu attributes on functions based on"
This breaks CodeGen for an internal target. I'll get repro instructions
to you.
llvm-svn: 232930
Diffstat (limited to 'clang/test/CodeGen/function-target-features.c')
-rw-r--r-- | clang/test/CodeGen/function-target-features.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/clang/test/CodeGen/function-target-features.c b/clang/test/CodeGen/function-target-features.c deleted file mode 100644 index 5665b1f841f..00000000000 --- a/clang/test/CodeGen/function-target-features.c +++ /dev/null @@ -1,21 +0,0 @@ -// This test verifies that we produce target-cpu and target-features attributes -// on functions when they're different from the standard cpu and have written -// features. - -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s -target-feature +avx | FileCheck %s -check-prefix=AVX-FEATURE -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s -target-feature +avx | FileCheck %s -check-prefix=AVX-NO-CPU -// 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 corei7-avx -target-feature -avx | FileCheck %s -check-prefix=AVX-MINUS-FEATURE - -void foo() {} - -// AVX-FEATURE: "target-features"="+avx" -// AVX-NO-CPU-NOT: target-cpu -// TWO-AVX: "target-features"="+avx512f,+avx512er" -// 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" |