Raymond Toy pushed to branch master at cmucl / cmucl

Commits:

2 changed files:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -7,6 +7,7 @@ stages:
    7 7
       - install
    
    8 8
       - build
    
    9 9
       - test
    
    10
    +  - ansi-test
    
    10 11
       - benchmark
    
    11 12
     
    
    12 13
     cache:
    
    ... ... @@ -41,7 +42,7 @@ linux:build:
    41 42
         #- bin/create-target.sh xcross x86_linux_clang
    
    42 43
         #- bin/cross-build-world.sh -crl -B boot-2020-04-1 xtarget xcross src/tools/cross-scripts/cross-x86-x86.lisp snapshot/bin/lisp
    
    43 44
         # Regular build using the cross-compiled result or snapshot
    
    44
    -    - bin/build.sh $bootstrap -R -C "" -o snapshot/bin/lisp
    
    45
    +    - bin/build.sh $bootstrap -R -C "x86_linux_clang" -o snapshot/bin/lisp
    
    45 46
         - bin/make-dist.sh -I dist linux-4
    
    46 47
     
    
    47 48
     linux:test:
    
    ... ... @@ -56,15 +57,28 @@ linux:test:
    56 57
         # Needs artifacts from build (dist/)
    
    57 58
         - job: linux:build
    
    58 59
           artifacts: true
    
    60
    +  script:
    
    61
    +    - bin/run-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
    
    62
    +
    
    63
    +linux:ansi-test:
    
    64
    +  stage: ansi-test
    
    65
    +  tags:
    
    66
    +    - linux
    
    67
    +  artifacts:
    
    68
    +    paths:
    
    69
    +      - ansi-test/test.out
    
    70
    +  needs:
    
    71
    +    # Needs artifacts from build (dist/)
    
    72
    +    - job: linux:build
    
    73
    +      artifacts: true
    
    59 74
       before_script:
    
    60 75
         - git clone https://gitlab.common-lisp.net/cmucl/ansi-test.git
    
    61 76
         - (cd ansi-test; git checkout rtoy-cmucl-expected-failures)
    
    62 77
       script:
    
    63
    -    - bin/run-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
    
    64 78
         - cd ansi-test
    
    65 79
         - make LISP="../dist/bin/lisp -batch -noinit -nositeinit"
    
    66 80
         - grep 'No unexpected \(successes\|failures\)' test.out
    
    67
    -
    
    81
    +    
    
    68 82
     linux:benchmark:
    
    69 83
       stage: benchmark
    
    70 84
       tags:
    
    ... ... @@ -121,21 +135,33 @@ osx:test:
    121 135
         - osx
    
    122 136
       artifacts:
    
    123 137
         paths:
    
    124
    -      - ansi-test/test.out
    
    125 138
           - test.log
    
    126 139
       needs:
    
    127 140
         # Needs artifacts from build (dist/)
    
    128 141
         - job: osx:build
    
    129 142
           artifacts: true
    
    143
    +  script:
    
    144
    +    - bin/run-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
    
    145
    +
    
    146
    +osx:ansi-test:
    
    147
    +  stage: ansi-test
    
    148
    +  tags:
    
    149
    +    - osx
    
    150
    +  artifacts:
    
    151
    +    paths:
    
    152
    +      - ansi-test/test.out
    
    153
    +  needs:
    
    154
    +    # Needs artifacts from build (dist/)
    
    155
    +    - job: osx:build
    
    156
    +      artifacts: true
    
    130 157
       before_script:
    
    131 158
         - git clone https://gitlab.common-lisp.net/cmucl/ansi-test.git
    
    132 159
         - (cd ansi-test; git checkout rtoy-cmucl-expected-failures)
    
    133 160
       script:
    
    134
    -    - bin/run-tests.sh -l dist/bin/lisp 2>&1 | tee test.log
    
    135 161
         - cd ansi-test
    
    136 162
         - make LISP="../dist/bin/lisp -batch -noinit -nositeinit"
    
    137 163
         - grep 'No unexpected \(successes\|failures\)' test.out 
    
    138
    -
    
    164
    +  
    
    139 165
     osx:benchmark:
    
    140 166
       stage: benchmark
    
    141 167
       tags:
    

  • src/lisp/Config.x86_linux_clang
    ... ... @@ -4,7 +4,11 @@ include Config.x86_common
    4 4
     CC = clang
    
    5 5
     CPPFLAGS += -m32 -D__NO_CTYPE -D_GNU_SOURCE
    
    6 6
     CFLAGS += $(COPT)
    
    7
    -CFLAGS += -march=pentium4 -mfpmath=sse -mtune=generic
    
    7
    +
    
    8
    +# Allow sse2 instructions (-msse2); and tune for pentium4
    
    9
    +# (-mtune=pentium4), the first chip to have sse2; and finally generate
    
    10
    +# code assuming instructions can trap (-ftrapping-math).
    
    11
    +CFLAGS += -msse2 -mtune=pentium4 -ftrapping-math
    
    8 12
     
    
    9 13
     UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
    
    10 14
     ASSEM_SRC +=  linux-stubs.S