|
3 | 3 | // compile-flags: --crate-type=rlib --target=aarch64-unknown-linux-gnu
|
4 | 4 | // needs-llvm-components: aarch64
|
5 | 5 |
|
| 6 | +// The "+v8a" feature is matched as optional as it isn't added when we |
| 7 | +// are targeting older LLVM versions. Once the min supported version |
| 8 | +// is LLVM-14 we can remove the regex matching for this feature. |
| 9 | + |
6 | 10 | // [ENABLE_SVE] compile-flags: -C target-feature=+sve
|
7 |
| -// ENABLE_SVE: attributes #0 = { {{.*}} "target-features"="+outline-atomics,+sve,+neon,+v8a" } |
| 11 | +// ENABLE_SVE: attributes #0 = { {{.*}} "target-features"="+outline-atomics,+sve,+neon{{(,\+v8a)?}}" } |
8 | 12 |
|
9 | 13 | // [DISABLE_SVE] compile-flags: -C target-feature=-sve
|
10 |
| -// DISABLE_SVE: attributes #0 = { {{.*}} "target-features"="+outline-atomics,-sve,+v8a" } |
| 14 | +// DISABLE_SVE: attributes #0 = { {{.*}} "target-features"="+outline-atomics,-sve{{(,\+v8a)?}}" } |
11 | 15 |
|
12 | 16 | // [DISABLE_NEON] compile-flags: -C target-feature=-neon
|
13 |
| -// DISABLE_NEON: attributes #0 = { {{.*}} "target-features"="+outline-atomics,-neon,-fp-armv8,+v8a" } |
| 17 | +// DISABLE_NEON: attributes #0 = { {{.*}} "target-features"="+outline-atomics,-neon,-fp-armv8{{(,\+v8a)?}}" } |
14 | 18 |
|
15 | 19 | // [ENABLE_NEON] compile-flags: -C target-feature=+neon
|
16 |
| -// ENABLE_NEON: attributes #0 = { {{.*}} "target-features"="+outline-atomics,+neon,+fp-armv8,+v8a" } |
| 20 | +// ENABLE_NEON: attributes #0 = { {{.*}} "target-features"="+outline-atomics,+neon,+fp-armv8{{(,\+v8a)?}}" } |
17 | 21 |
|
18 | 22 |
|
19 | 23 | #![feature(no_core, lang_items)]
|
|
0 commit comments