Skip to content

Commit

Permalink
fix 128 bit type
Browse files Browse the repository at this point in the history
  • Loading branch information
dawa79 committed Oct 24, 2024
1 parent b360f05 commit 60e6144
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
os: [ubuntu-20.04]
clang: [6, 8, 10, 11]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
# Nix Flakes doesn't work on shallow clones
fetch-depth: 0
Expand All @@ -22,7 +22,7 @@ jobs:
nix build .#hobbesPackages/clang-${{ matrix.clang }}/hobbes
nix log .#hobbesPackages/clang-${{ matrix.clang }}/hobbes &> ${{ matrix.os }}-clang-${{ matrix.clang }}-hobbes.log
- name: upload log ${{ matrix.os }}-clang-${{ matrix.clang }}-hobbes.log
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: output-log-file
path: ${{ matrix.os }}-clang-${{ matrix.clang }}-hobbes.log
Expand All @@ -34,7 +34,7 @@ jobs:
gcc: [10]
llvm: [6, 8, 10, 11]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
# Nix Flakes doesn't work on shallow clones
fetch-depth: 0
Expand All @@ -48,7 +48,7 @@ jobs:
nix build .#hobbesPackages/gcc-${{ matrix.gcc }}/llvm-${{ matrix.llvm }}/hobbes
nix log .#hobbesPackages/gcc-${{ matrix.gcc }}/llvm-${{ matrix.llvm }}/hobbes &> ${{ matrix.os }}-gcc-${{ matrix.gcc }}-llvm-${{ matrix.llvm }}-hobbes.log
- name: upload log ${{ matrix.os }}-gcc-${{ matrix.gcc }}-llvm-${{ matrix.llvm }}-hobbes.log
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: output-log-file
path: ${{ matrix.os }}-gcc-${{ matrix.gcc }}-llvm-${{ matrix.llvm }}-hobbes.log
Expand Down
9 changes: 9 additions & 0 deletions lib/hobbes/eval/func.C
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ BOP(i16mul, CreateMul, int128_t, int128_t, int128_t);
BOP(i16div, CreateSDiv, int128_t, int128_t, int128_t);
BOP(i16rem, CreateSRem, int128_t, int128_t, int128_t);

BOP(i16shl, CreateShl, int128_t, int128_t, int128_t);
BOP(i16lshr, CreateLShr, int128_t, int128_t, int128_t);
BOP(i16ashr, CreateAShr, int128_t, int128_t, int128_t);
BOP(i16and, CreateAnd, int128_t, int128_t, int128_t);
BOP(i16or, CreateOr, int128_t, int128_t, int128_t);
BOP(i16xor, CreateXor, int128_t, int128_t, int128_t);

BOP(i16eq, CreateICmpEQ, int128_t, int128_t, bool);
BOP(i16neq, CreateICmpNE, int128_t, int128_t, bool);
BOP(i16lt, CreateICmpSLT, int128_t, int128_t, bool);
Expand Down Expand Up @@ -1015,6 +1022,8 @@ void initDefOperators(cc* c) {
DEC(iadd); DEC(isub); DEC(imul); DEC(idiv); DEC(irem);
DEC(ladd); DEC(lsub); DEC(lmul); DEC(ldiv); DEC(lrem);
DEC(i16add); DEC(i16sub); DEC(i16mul); DEC(i16div); DEC(i16rem);
DEC(i16shl); DEC(i16lshr); DEC(i16ashr); DEC(i16and); DEC(i16or);DEC(i16xor);

DEC(fadd); DEC(fsub); DEC(fmul); DEC(fdiv);
DEC(dadd); DEC(dsub); DEC(dmul); DEC(ddiv);

Expand Down

0 comments on commit 60e6144

Please sign in to comment.