-
Notifications
You must be signed in to change notification settings - Fork 354
[FMV][AArch64] Set HAS_*_FMV macro and skip test if symbol is unavailable #269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
df5ea25
ac0c956
0629915
65b1785
462f7f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,29 @@ PROGRAMS_TO_SKIP := dt | |
endif | ||
endif | ||
|
||
ifeq ($(ARCH),AArch64) | ||
ifeq ($(TARGET_OS),Darwin) | ||
SYMBOL = __init_cpu_features_resolver | ||
endif | ||
ifeq ($(TARGET_OS),Linux) | ||
SYMBOL = __init_cpu_features | ||
endif | ||
# TARGET_LLVMGCC refers to the compiler specified with the --cc option, | ||
# and can be checked in the build-tools.log file in the test results directory. | ||
SYMBOL := $(shell echo "extern void $(SYMBOL)(void); void (*p)() = $(SYMBOL); int main() {}" | \ | ||
$(TARGET_LLVMGCC) --rtlib=compiler-rt -x c - -o /dev/null 2>/dev/null && \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I reviewed the
|
||
echo $(SYMBOL) || echo undefined) | ||
ifeq ($(SYMBOL),__init_cpu_features_resolver) | ||
CFLAGS += --rtlib=compiler-rt -DHAS_DARWIN_FMV | ||
endif | ||
ifeq ($(SYMBOL),__init_cpu_features) | ||
CFLAGS += --rtlib=compiler-rt -DHAS_LINUX_FMV | ||
endif | ||
ifeq ($(SYMBOL),undefined) | ||
PROGRAMS_TO_SKIP := aarch64-init-cpu-features | ||
endif | ||
endif | ||
|
||
ifeq ($(ARCH),Mips) | ||
RUNTIMELIMIT := 2000 | ||
endif | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TARGET_LLVMGCC
refers to the compiler specified with the --cc option, and can be checked in thebuild-tools.log
file in the test results directory.