Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port gcc-dg tests from GCC, continued #72

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Commits on Nov 23, 2023

  1. Configuration menu
    Copy the full SHA
    5d419bc View commit details
    Browse the repository at this point in the history
  2. fix include path

    mohammed-nurulhoque committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    b1fc950 View commit details
    Browse the repository at this point in the history
  3. Add cmake file and factor common parts

    common parts between C/gcc-c-torture/CMakeLists.txt and the new
    C/gcc-dg/CMakeLists.txt are put in DgOptions.txt
    mohammed-nurulhoque committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    a400a7f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5140f8f View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. Configuration menu
    Copy the full SHA
    9bed7b0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    110711d View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. Configuration menu
    Copy the full SHA
    f6da1d1 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Change x86_64 3-operand add to a mov

    The `pr89313.c` and `pr87600-1.c` tests were passing fine on LLVM
    trunk (specifically I was on `c1eef483b2c1`), but failed on 17.0.5.
    
    I bisected the failure down to the following LLVM commit:
    
    d79ccee8dc4a [X86][MC] Support encoding/decoding for APX variant ADD/SUB/ADC/SBB/OR/XOR/NEG/NOT instructions (#76319)
    
    So it turns out that the three-operand form of `add`, on x86_64, is
    actually a very recent addition.
    
    We should therefore probably avoid using it incase someone wants to
    run against an older but still recent LLVM version.
    mablinov committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    624a7a8 View commit details
    Browse the repository at this point in the history
  2. Disable pr107262.c for RISC-V

    RISC-V does not support the __bf16 datatype, therefore disable test.
    mablinov committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    6b0a9dd View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. Configuration menu
    Copy the full SHA
    112a54e View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Configuration menu
    Copy the full SHA
    d1c0751 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1896949 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0c42915 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. Partially undo gcc-c-torture refactoring

    GCC has the notion of "default test behaviour", which is stored in the
    `dg-do-what-default` global variable. It specified what should happen
    when there is no `dg-do` comment found in the test suite.
    
    Our current behaviour is that if there's no `dg-do`, then we just
    compile the test. But for the `gcc.c-torture/execute` directory, the
    default behaviour is to run the test, because the `execute.exp` script
    manaully sets it so:
    
    ```
    set saved-dg-do-what-default ${dg-do-what-default}
    set dg-do-what-default "run"
    gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] "" "-w"
    set dg-do-what-default ${saved-dg-do-what-default}
    ```
    
    We should probably model this behaviour in our CMake scripts, but for
    now undo the refactoring in the execute/CMakeLists.txt script, and for
    tests in that particular directory we always try to run the file.
    mablinov committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    b9c8ef0 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. Add new parameter DG_DO_DEFAULT to gcc_torture_execute_test

    In the GCC test suite many tests don't have an explicit `dg-do`
    directive telling the test driver what to do. In these cases, the
    default action is taken from a TCL variable called
    `dg-do-what-default`, which can be set freely (see for example
    gcc/testsuite/gcc.c-torture/execute/execute.exp)
    
    Emulate this behaviour in our CMakeScripts also.
    mablinov committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    8dcbfa3 View commit details
    Browse the repository at this point in the history