aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorRoland McGrath <mcgrathr@google.com>2024-04-23 13:21:25 -0700
committerGitHub <noreply@github.com>2024-04-23 13:21:25 -0700
commit837dab96d6f5bece79fd58d28ea2e6f7c0912493 (patch)
tree9100060f8d18d22610d8a9e493eff23f11d767fa /llvm/lib/CodeGen/MachineInstr.cpp
parent2662bce43469e37c6fdabf9a77bbfbccaedf9f9f (diff)
downloadllvm-837dab96d6f5bece79fd58d28ea2e6f7c0912493.zip
llvm-837dab96d6f5bece79fd58d28ea2e6f7c0912493.tar.gz
llvm-837dab96d6f5bece79fd58d28ea2e6f7c0912493.tar.bz2
[libc] Make fenv and math tests preserve fenv_t state (#89658)
This adds a new test fixture class FEnvSafeTest (usable as a base class for other fixtures) that ensures each test doesn't perturb the `fenv_t` state that the next test will start with. It also provides types and methods tests can use to explicitly wrap code under test either to check that it doesn't perturb the state or to save and restore the state around particular test code. All the fenv and math tests are updated to use this so that none can affect another. Expectations that code under test and/or tests themselves don't perturb state can be added later.
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions