Skip to content

Commit d51db42

Browse files
committed
Make v8a match optional in the test feature list.
1 parent aab0757 commit d51db42

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/codegen/tied-features-strength.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@
33
// compile-flags: --crate-type=rlib --target=aarch64-unknown-linux-gnu
44
// needs-llvm-components: aarch64
55

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+
610
// [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)?}}" }
812

913
// [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)?}}" }
1115

1216
// [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)?}}" }
1418

1519
// [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)?}}" }
1721

1822

1923
#![feature(no_core, lang_items)]

0 commit comments

Comments
 (0)