[llvm-bugs] [Bug 48892] New: Implement atomic operations for M68k
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 26 17:13:06 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48892
Bug ID: 48892
Summary: Implement atomic operations for M68k
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: M68k
Assignee: unassignedbugs at nondot.org
Reporter: glaubitz at physik.fu-berlin.de
CC: glaubitz at physik.fu-berlin.de,
llvm-bugs at lists.llvm.org, minyihh at uci.edu
The M68k is not implementing any atomic operations yet which include load and
store operations and compare_and_swap.
Load operations:
- atomic_load_8 - using MOV8rm
- atomic_load_16 - using MOV16rm
- atomic_load_32 - using MOV32rm
Store operations:
- atomic_store_8 - using MOV8mr
- atomic_store_16 - using MOV16mr
- atomic_store_32 - using MOV32mr
Compare-and-swap:
- atomic_cmp_swap_32 - using CAS
- atomic_cmp_swap_64 - using CAS2
Without support for atomic operations, compiling some C++ code currently fails
with:
glaubitz at epyc:..openscad-2019.05/src>
/local_scratch/glaubitz/M680x0-mono-repo/build/bin/clang -target m68k-linux-gnu
localscope.cc -o localscope.o -I
/usr/m68k-linux-gnu/include/c++/10/m68k-linux-gnu/ -I
/usr/m68k-linux-gnu/include/ -I /usr/include/glib-2.0 -I
/usr/lib/m68k-linux-gnu/glib-2.0/include/
fatal error: error in backend: Cannot select: 0x55f0fc5b1ea8: i8,ch =
AtomicLoad<(dereferenceable load acquire 1 from `i8* bitcast (i64*
@_ZGVZN5boost6system6detail15to_std_categoryERKNS0_14error_categoryEE4map_ to
i8*)`, align 4)> 0x55f0fc31e988, 0x55f0fc5ae8c8
0x55f0fc5ae8c8: i32 = M680x0ISD::WrapperPC TargetGlobalAddress:i32<i64*
@_ZGVZN5boost6system6detail15to_std_categoryERKNS0_14error_categoryEE4map_> 0
0x55f0fc5aec70: i32 = TargetGlobalAddress<i64*
@_ZGVZN5boost6system6detail15to_std_categoryERKNS0_14error_categoryEE4map_> 0
In function: _ZN5boost6system6detail15to_std_categoryERKNS0_14error_categoryE
clang-12: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 12.0.0 (git at github.com:M680x0/M680x0-mono-repo.git
c5834ffbda019df8c94c669c658d804cb9c19af3)
Target: m68k-unknown-linux-gnu
Thread model: posix
InstalledDir: /local_scratch/glaubitz/M680x0-mono-repo/build/bin
clang-12: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-12: note: diagnostic msg: /tmp/localscope-405c82.cpp
clang-12: note: diagnostic msg: /tmp/localscope-405c82.sh
clang-12: note: diagnostic msg:
********************
glaubitz at epyc:..openscad-2019.05/src>
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210127/654b7afc/attachment.html>
More information about the llvm-bugs
mailing list