Skip to content

Commit 49972e9

Browse files
Relax the target-cpu-on-function codegen test so it just checks for presence of the attribute.
1 parent 3a70050 commit 49972e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/codegen/target-cpu-on-functions.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
// no-prefer-dynamic
1515
// ignore-tidy-linelength
16-
// only-x86_64
1716
// compile-flags: -C no-prepopulate-passes -C panic=abort -Z cross-lang-lto -Cpasses=name-anon-globals
1817

1918
#![crate_type = "staticlib"]
@@ -27,4 +26,4 @@ pub extern fn exported() {
2726
// CHECK-LABEL: define {{.*}} @_ZN23target_cpu_on_functions12not_exported{{.*}}() {{.*}} #0
2827
fn not_exported() {}
2928

30-
// CHECK: attributes #0 = {{.*}} "target-cpu"="x86-64"
29+
// CHECK: attributes #0 = {{.*}} "target-cpu"="{{.*}}"

0 commit comments

Comments
 (0)