Skip to content

Commit

Permalink
[add some jobs with different LDC host compilers]
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Jan 26, 2025
1 parent 50cfcfd commit 7071de5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@ jobs:
os: ubuntu-22.04
model: 32
host_dmd: dmd-2.101.2
- job_name: Ubuntu 22.04 x86, LDC 1.36.0
os: ubuntu-22.04
model: 32
host_dmd: ldc-1.36.0
- job_name: Ubuntu 22.04 x86, LDC 1.35.0
os: ubuntu-22.04
model: 32
host_dmd: ldc-1.35.0
- job_name: Ubuntu 22.04 x86, LDC 1.34.0
os: ubuntu-22.04
model: 32
host_dmd: ldc-1.34.0
- job_name: Ubuntu 22.04 x86, LDC 1.33.0
os: ubuntu-22.04
model: 32
host_dmd: ldc-1.33.0
name: ${{ matrix.job_name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 40
Expand Down
6 changes: 5 additions & 1 deletion compiler/src/dmd/common/int128.d
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ alias I = long;
alias U = ulong;
enum Ubits = uint(U.sizeof * 8);

align(16) struct Cent
version (LDC) version (X86) version = LDC_X86;
version (LDC_X86) private enum alignment = U.alignof;
else private enum alignment = 16;

align(alignment) struct Cent
{
U lo; // low 64 bits
U hi; // high 64 bits
Expand Down

0 comments on commit 7071de5

Please sign in to comment.