16 lines · plain
1! Test that flang forwards the -moutline-atomics and -mno-outline-atomics.2! RUN: %flang -moutline-atomics --target=aarch64-none-none -### %s -o %t 2>&1 | FileCheck %s3! CHECK: "-target-feature" "+outline-atomics"4 5! RUN: %flang -mno-outline-atomics --target=aarch64-none-none -### %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-NOOUTLINE6! CHECK-NOOUTLINE: "-target-feature" "-outline-atomics"7 8! Use Fuchsia to ensure the outline atomics is enabled.9! RUN: %flang --target=aarch64-none-fuchsia -### %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-DEFAULT10! CHECK-DEFAULT: "-target-feature" "+outline-atomics"11 12! RUN: %flang -mno-outline-atomics --target=x86-none-none -### %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-ERRMSG13! CHECK-ERRMSG: warning: 'x86' does not support '-mno-outline-atomics'14 15 16