From 49972e93ffdd6d70ddfef8486d1642cec69bfaeb Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Thu, 9 Aug 2018 09:39:02 +0200 Subject: [PATCH] Relax the target-cpu-on-function codegen test so it just checks for presence of the attribute. --- src/test/codegen/target-cpu-on-functions.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/codegen/target-cpu-on-functions.rs b/src/test/codegen/target-cpu-on-functions.rs index 1a6ab22e568..cd7d061c0de 100644 --- a/src/test/codegen/target-cpu-on-functions.rs +++ b/src/test/codegen/target-cpu-on-functions.rs @@ -13,7 +13,6 @@ // no-prefer-dynamic // ignore-tidy-linelength -// only-x86_64 // compile-flags: -C no-prepopulate-passes -C panic=abort -Z cross-lang-lto -Cpasses=name-anon-globals #![crate_type = "staticlib"] @@ -27,4 +26,4 @@ pub extern fn exported() { // CHECK-LABEL: define {{.*}} @_ZN23target_cpu_on_functions12not_exported{{.*}}() {{.*}} #0 fn not_exported() {} -// CHECK: attributes #0 = {{.*}} "target-cpu"="x86-64" +// CHECK: attributes #0 = {{.*}} "target-cpu"="{{.*}}"