toolchain
toolchain copied to clipboard
gcc.target/arc/uncached-7.c fails
The following DejaGnu test (https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/blob/arc-2020.09/gcc/testsuite/gcc.target/arc/uncached-7.c) of GCC fails with arc-2020.09 toolchain this way:
FAIL: gcc.target/arc/uncached-7.c scan-assembler-times st.di 1
$ arc-elf32-gcc -v
...
gcc version 10.2.0 (ARCompact/ARCv2 ISA elf32 toolchain 2020.09)
$ arc-elf32-gcc uncached-7.c -O1 -S -mcpu=archs
$ cat uncached-7.s
.file "uncached-7.c"
.cpu HS
.arc_attribute Tag_ARC_PCS_config, 2
.arc_attribute Tag_ARC_ABI_rf16, 0
.arc_attribute Tag_ARC_ABI_pic, 0
.arc_attribute Tag_ARC_ABI_tls, 0
.arc_attribute Tag_ARC_ABI_sda, 2
.arc_attribute Tag_ARC_ABI_exceptions, 0
.arc_attribute Tag_ARC_CPU_variation, 2
.section .text
.align 4
.global s_acc
.type s_acc, @function
s_acc:
st 15,[@s+40] ;37
j_s [blink]
.size s_acc, .-s_acc
.global s
.section .bss
.align 4
.type s, @object
.size s, 80
s:
.zero 80
.ident "GCC: (ARCompact/ARCv2 ISA elf32 toolchain 2020.09) 10.2.0"
.section .note.GNU-stack,"",@progbits
With arc-2020.03
it passes:
$ arc-elf32-gcc -v
...
gcc version 9.3.1 20200315 (ARCompact/ARCv2 ISA elf32 toolchain 2020.03)
$ arc-elf32-gcc uncached-7.c -O1 -S -mcpu=archs
$ cat uncached-7.s
.file "uncached-7.c"
.cpu HS
.arc_attribute Tag_ARC_PCS_config, 2
.arc_attribute Tag_ARC_ABI_rf16, 0
.arc_attribute Tag_ARC_ABI_pic, 0
.arc_attribute Tag_ARC_ABI_tls, 0
.arc_attribute Tag_ARC_ABI_sda, 2
.arc_attribute Tag_ARC_ABI_exceptions, 0
.arc_attribute Tag_ARC_CPU_variation, 2
.section .text
.align 4
.global s_acc
.type s_acc, @function
s_acc:
st.di 15,[@s+40]
j_s [blink]
.size s_acc, .-s_acc
.global s
.section .bss
.align 4
.type s, @object
.size s, 80
s:
.zero 80
.ident "GCC: (ARCompact/ARCv2 ISA elf32 toolchain 2020.03) 9.3.1 20200315"
.section .note.GNU-stack,"",@progbits
This require a proper implementationof unchahed
attribute.
https://lists.zephyrproject.org/g/users/message/2904 -- same issue from zephyr mailing list.