File tree Expand file tree Collapse file tree 8 files changed +53
-21
lines changed
aarch64-unknown-linux-gnu
aarch64_be-unknown-linux-gnu
loongarch64-unknown-linux-gnu
powerpc-unknown-linux-gnu
powerpc64-unknown-linux-gnu
crates/stdarch-verify/tests Expand file tree Collapse file tree 8 files changed +53
-21
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,42 @@ jobs:
122
122
123
123
# Add additional variables to the matrix variations generated above using `include`:
124
124
include :
125
+ # `TEST_EVERYTHING` setups - there should be at least 1 for each architecture
126
+ - target :
127
+ tuple : aarch64-unknown-linux-gnu
128
+ os : ubuntu-latest
129
+ test_everything : true
130
+ - target :
131
+ tuple : armv7-unknown-linux-gnueabihf
132
+ os : ubuntu-latest
133
+ test_everything : true
134
+ - target :
135
+ tuple : loongarch64-unknown-linux-gnu
136
+ os : ubuntu-latest
137
+ test_everything : true
138
+ - target :
139
+ tuple : powerpc-unknown-linux-gnu
140
+ os : ubuntu-latest
141
+ disable_assert_instr : true
142
+ test_everything : true
143
+ - target :
144
+ tuple : powerpc64-unknown-linux-gnu
145
+ os : ubuntu-latest
146
+ disable_assert_instr : true
147
+ test_everything : true
148
+ - target :
149
+ tuple : powerpc64le-unknown-linux-gnu
150
+ os : ubuntu-latest
151
+ disable_assert_instr : true
152
+ test_everything : true
153
+ - target :
154
+ tuple : riscv64gc-unknown-linux-gnu
155
+ os : ubuntu-latest
156
+ test_everything : true
157
+ - target :
158
+ tuple : s390x-unknown-linux-gnu
159
+ os : ubuntu-latest
160
+ test_everything : true
125
161
- target :
126
162
tuple : x86_64-unknown-linux-gnu-emulated
127
163
os : ubuntu-latest
@@ -144,18 +180,6 @@ jobs:
144
180
# tuple: mipsel-unknown-linux-musl
145
181
# os: ubuntu-latest
146
182
# norun: true
147
- - target :
148
- tuple : powerpc-unknown-linux-gnu
149
- os : ubuntu-latest
150
- disable_assert_instr : true
151
- - target :
152
- tuple : powerpc64-unknown-linux-gnu
153
- os : ubuntu-latest
154
- disable_assert_instr : true
155
- - target :
156
- tuple : powerpc64le-unknown-linux-gnu
157
- os : ubuntu-latest
158
- disable_assert_instr : true
159
183
- target :
160
184
tuple : aarch64-apple-darwin
161
185
os : macos-15
Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
15
15
16
16
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
17
17
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUNNER="qemu-aarch64 -cpu max -L /usr/aarch64-linux-gnu" \
18
- OBJDUMP=aarch64-linux-gnu-objdump
18
+ OBJDUMP=aarch64-linux-gnu-objdump \
19
+ STDARCH_TEST_SKIP_FEATURE=tme
Original file line number Diff line number Diff line change @@ -27,3 +27,4 @@ ENV AARCH64_BE_LIBC="${AARCH64_BE_TOOLCHAIN}/aarch64_be-none-linux-gnu/libc"
27
27
ENV CARGO_TARGET_AARCH64_BE_UNKNOWN_LINUX_GNU_LINKER="${AARCH64_BE_TOOLCHAIN}/bin/aarch64_be-none-linux-gnu-gcc"
28
28
ENV CARGO_TARGET_AARCH64_BE_UNKNOWN_LINUX_GNU_RUNNER="qemu-aarch64_be -cpu max -L ${AARCH64_BE_LIBC}"
29
29
ENV OBJDUMP="${AARCH64_BE_TOOLCHAIN}/bin/bin/aarch64-none-linux-gnu-objdump"
30
+ ENV STDARCH_TEST_SKIP_FEATURE=tme
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ RUN apt-get update && \
8
8
9
9
ENV CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-linux-gnu-gcc-14 \
10
10
CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER="qemu-loongarch64-static -cpu max -L /usr/loongarch64-linux-gnu" \
11
- OBJDUMP=loongarch64-linux-gnu-objdump
11
+ OBJDUMP=loongarch64-linux-gnu-objdump \
12
+ STDARCH_TEST_SKIP_FEATURE=frecipe
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
8
8
ENV CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_LINKER=powerpc-linux-gnu-gcc \
9
9
CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_RUNNER="qemu-ppc -cpu mpc8610 -L /usr/powerpc-linux-gnu" \
10
10
CC=powerpc-linux-gnu-gcc \
11
- OBJDUMP=powerpc-linux-gnu-objdump
11
+ OBJDUMP=powerpc-linux-gnu-objdump \
12
+ STDARCH_TEST_SKIP_FEATURE=vsx
Original file line number Diff line number Diff line change @@ -9,5 +9,6 @@ ENV CARGO_TARGET_POWERPC64_UNKNOWN_LINUX_GNU_LINKER=powerpc64-linux-gnu-gcc \
9
9
CARGO_TARGET_POWERPC64_UNKNOWN_LINUX_GNU_RUNNER="qemu-ppc64 -cpu power11 -L /usr/powerpc64-linux-gnu" \
10
10
CC=powerpc64-linux-gnu-gcc \
11
11
OBJDUMP=powerpc64-linux-gnu-objdump \
12
+ STDARCH_TEST_SKIP_FEATURE=vsx \
12
13
# These 2 tests have erratic behaviour with qemu, see https://gitlab.com/qemu-project/qemu/-/issues/1623#note_2449012173
13
14
STDARCH_TEST_SKIP_FUNCTION=vec_lde_u16,vec_lde_u32
Original file line number Diff line number Diff line change @@ -121,13 +121,15 @@ case ${TARGET} in
121
121
cargo_test " ${PROFILE} "
122
122
;;
123
123
powerpc64* )
124
- # We don't build the ppc 32-bit targets with these - these targets
125
- # are mostly unsupported for now.
126
- OLD_RUSTFLAGS=" ${RUSTFLAGS} "
127
- export RUSTFLAGS=" ${OLD_RUSTFLAGS} -C target-feature=+altivec"
124
+ export RUSTFLAGS=" ${RUSTFLAGS} -C target-feature=+altivec"
128
125
cargo_test " ${PROFILE} "
129
126
130
- export RUSTFLAGS=" ${OLD_RUSTFLAGS} -C target-feature=+vsx"
127
+ export RUSTFLAGS=" ${RUSTFLAGS} -C target-feature=+vsx"
128
+ cargo_test " ${PROFILE} "
129
+ ;;
130
+ powerpc* )
131
+ # qemu has a bug in PPC32 which leads to a crash when compiled with `vsx`
132
+ export RUSTFLAGS=" ${RUSTFLAGS} -C target-feature=+altivec"
131
133
cargo_test " ${PROFILE} "
132
134
;;
133
135
Original file line number Diff line number Diff line change @@ -749,7 +749,8 @@ fn equate(
749
749
& Type :: PrimUnsigned ( 32 ) ,
750
750
"unsigned __int32" | "unsigned int" | "unsigned long" | "const unsigned int" ,
751
751
) => { }
752
- ( & Type :: PrimUnsigned ( 64 ) , "unsigned __int64" | "size_t" ) => { }
752
+ ( & Type :: PrimUnsigned ( 64 ) , "unsigned __int64" ) => { }
753
+ ( & Type :: PrimUnsigned ( SS ) , "size_t" ) => { }
753
754
754
755
( & Type :: M128 , "__m128" ) => { }
755
756
( & Type :: M128BH , "__m128bh" ) => { }
You can’t perform that action at this time.
0 commit comments