Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gcc-2.7.2-cdk-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ make cpp cc1 xgcc cc1plus g++ \
./cc1 -quiet -O2 "$SCRIPT_DIR/tests/little_endian.c" -o little_endian.s
grep -E 'lbu\s\$2,0\(\$4\)' little_endian.s
./cc1 -quiet -O2 "$SCRIPT_DIR/tests/section_attribute.c" -o /dev/null
./cc1 -quiet -O2 "$SCRIPT_DIR/tests/host_wide_int.c" -o host_wide_int.s
grep -E '# 0x80000000$' host_wide_int.s

mkdir -p "$OUTDIR"
cp cpp cc1 xgcc cc1plus g++ "$OUTDIR/"
Expand Down
1 change: 1 addition & 0 deletions gcc-2.7.2-cdk.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ RUN make --jobs $(nproc) cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -stati
COPY tests /work/tests
RUN ./cc1 -quiet -O2 /work/tests/little_endian.c && grep -E 'lbu\s\$2,0\(\$4\)' /work/tests/little_endian.s
RUN ./cc1 -quiet -O2 /work/tests/section_attribute.c
RUN ./cc1 -quiet -O2 /work/tests/host_wide_int.c && grep -E '# 0x80000000$' /work/tests/host_wide_int.s

RUN mv xgcc gcc
RUN mkdir /build && cp cpp cc1 gcc cc1plus g++ /build/
Expand Down
4 changes: 3 additions & 1 deletion gcc-2.7.2-psx-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ make --jobs "$(sysctl -n hw.ncpu)" cpp cc1 xgcc cc1plus g++ \
./cc1 -quiet -O2 "$SCRIPT_DIR/tests/little_endian.c" -o little_endian.s
grep -E 'lbu\s\$2,0\(\$4\)' little_endian.s
./cc1 -quiet -O2 "$SCRIPT_DIR/tests/section_attribute.c" -o /dev/null
./cc1 -quiet -help </dev/null 2>&1 | grep -- -msoft-float
./cc1 -quiet -O2 "$SCRIPT_DIR/tests/host_wide_int.c" -o host_wide_int.s
grep -E '# 0x80000000$' host_wide_int.s
./cc1 -quiet -help</dev/null 2>&1 | grep -- -msoft-float

mkdir -p "$OUTDIR"
cp cpp cc1 xgcc cc1plus g++ "$OUTDIR/"
Expand Down
3 changes: 2 additions & 1 deletion gcc-2.7.2-psx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ RUN make --jobs $(nproc) cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -stati
COPY tests /work/tests
RUN ./cc1 -quiet -O2 /work/tests/little_endian.c && grep -E 'lbu\s\$2,0\(\$4\)' /work/tests/little_endian.s
RUN ./cc1 -quiet -O2 /work/tests/section_attribute.c
RUN ./cc1 -quiet -help </dev/null 2>&1 | grep -- -msoft-float
RUN ./cc1 -quiet -O2 /work/tests/host_wide_int.c && grep -E '# 0x80000000$' /work/tests/host_wide_int.s
RUN ./cc1 -quiet -help</dev/null 2>&1 | grep -- -msoft-float

RUN mv xgcc gcc
RUN mkdir /build && cp cpp cc1 gcc cc1plus g++ /build/
Expand Down
4 changes: 3 additions & 1 deletion gcc-2.8.1-psx-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ make --jobs "$(sysctl -n hw.ncpu)" cpp cc1 xgcc cc1plus g++ \
./cc1 -quiet -O2 "$SCRIPT_DIR/tests/little_endian.c" -o little_endian.s
grep -E 'lbu\s\$2,0\(\$4\)' little_endian.s
./cc1 -quiet -O2 "$SCRIPT_DIR/tests/section_attribute.c" -o /dev/null
./cc1 -version </dev/null 2>&1 | grep -- -msoft-float
./cc1 -quiet -O2 "$SCRIPT_DIR/tests/host_wide_int.c" -o host_wide_int.s
grep -E '# 0x80000000$' host_wide_int.s
./cc1 -version</dev/null 2>&1 | grep -- -msoft-float
./cc1 -version </dev/null 2>&1 | grep -- -msplit-addresses
./cc1 -version </dev/null 2>&1 | grep -- -mgpopt

Expand Down
3 changes: 2 additions & 1 deletion gcc-2.8.1-psx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ RUN make --jobs $(nproc) cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -stati
COPY tests /work/tests
RUN ./cc1 -quiet -O2 /work/tests/little_endian.c && grep -E 'lbu\s\$2,0\(\$4\)' /work/tests/little_endian.s
RUN ./cc1 -quiet -O2 /work/tests/section_attribute.c
RUN ./cc1 -version </dev/null 2>&1 | grep -- -msoft-float
RUN ./cc1 -quiet -O2 /work/tests/host_wide_int.c && grep -E '# 0x80000000$' /work/tests/host_wide_int.s
RUN ./cc1 -version</dev/null 2>&1 | grep -- -msoft-float
RUN ./cc1 -version </dev/null 2>&1 | grep -- -msplit-addresses
RUN ./cc1 -version </dev/null 2>&1 | grep -- -mgpopt

Expand Down
3 changes: 3 additions & 0 deletions patches/xm-darwin.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@
/* macOS provides bcopy/bcmp/bzero via <string.h>. */
#define BSTRING

#define HOST_BITS_PER_WIDE_INT 32
#define HOST_WIDE_INT int

#include "tm.h"
3 changes: 3 additions & 0 deletions tests/host_wide_int.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
unsigned int signbit_mask(void) {
return 1u << 31;
}
Loading