mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-20 03:55:48 -04:00

target attribute, don't include "negative" subtarget features in the list of required features. Builtins are positive by default so don't need this change, but we pull the default list of features from the command line and so need to make sure that we only include features that are turned on for code generation in our error. llvm-svn: 253242
10 lines
318 B
C
10 lines
318 B
C
// RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -emit-llvm -o - -target-feature -sse2
|
|
|
|
// Verify that negative features don't cause additional requirements on the inline function.
|
|
int __attribute__((target("sse"), always_inline)) foo(int a) {
|
|
return a + 4;
|
|
}
|
|
int bar() {
|
|
return foo(4); // expected-no-diagnostics
|
|
}
|