Skip to content

Commit

Permalink
Add ubsan run(s) to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Mar 16, 2024
1 parent 6e38a48 commit 183b667
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/gamma_f77.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,35 @@ jobs:
setarch `uname -m` -R ./gamma.exe | grep '0.296439082102472192334520537379648E+06'
setarch `uname -m` -R ./gamma.exe | grep '0.554521067573633755529159865936434E-01'
setarch `uname -m` -R ./gamma.exe | grep '0.265252859812191058636308480000000E+33'
ubuntu-native-ubsan:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
standard: [ legacy, f2018 ]
compiler: [ g++ ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: ubuntu-native
run: |
${{ matrix.compiler }} -x f77 -std=${{ matrix.standard }} -m64 -fno-exceptions -fsanitize=shift -fsanitize=shift-exponent -fsanitize=shift-base -fsanitize=integer-divide-by-zero -fsanitize=null -fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fsanitize=enum -O1 gamma.f -lgfortran -lquadmath -o gamma.exe
ls -la gamma.exe
./gamma.exe | grep '0.947395504039301942134227647281424E+00'
./gamma.exe | grep '0.110784755653406415338349971053114E+01'
./gamma.exe | grep '0.271139823924390323650711692085896E+01'
./gamma.exe | grep '0.102754040920152050479188001843206E+02'
./gamma.exe | grep '0.531934282525008207389522379291889E+02'
./gamma.exe | grep '0.350998609824200588801455504140098E+03'
./gamma.exe | grep '0.282509453680418713613816084109635E+04'
./gamma.exe | grep '0.269036719467497675679082571845063E+05'
./gamma.exe | grep '0.296439082102472192334520537379648E+06'
./gamma.exe | grep '0.554521067573633755529159865936434E-01'
./gamma.exe | grep '0.265252859812191058636308480000000E+33'
macos-native:
runs-on: macos-latest
defaults:
Expand Down

0 comments on commit 183b667

Please sign in to comment.