clang/test/CodeGen/aarch64-always-inline-feature-bug.c
raw| 1 | // RUN: %clang_cc1 -triple aarch64-- -target-feature +neon -target-feature +sve\ |
| 2 | // RUN: -target-feature -sve -emit-llvm %s -o - | FileCheck %s |
| 3 | |
| 4 | // Reproducer for bug where clang would reject always_inline for unrelated |
| 5 | // target features if they were disable with `-feature` on the command line. |
| 6 | // CHECK: @bar |
| 7 | __attribute__((always_inline)) __attribute__((target("neon"))) void foo() {} |
| 8 | void bar() { foo(); } |