[AMDGPU] Update `mad-mix*` CodeGen tests
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>
Wed, 28 Sep 2022 06:50:17 +0000 (06:50 +0000)
committerPierre van Houtryve <pierre.vanhoutryve@amd.com>
Thu, 29 Sep 2022 07:11:34 +0000 (07:11 +0000)
commit682c7c77f59a1976353de514057fcaee71937fbc
treefc108a6084e7bb930fff1dc8da8c9752b0d3d4d0
parentb7baddc7557e5c35a0f6a604a134d849265a99d4
[AMDGPU] Update `mad-mix*` CodeGen tests

- Use `fneg %a` instead of `fsub -0.0, %a`
  - This is for D134354 as we don't currently support folding `fsub -0.0, %a` into `fneg` on GISel.
    Also, `fneg` is the canonical way to do the negation.
- Switch to `update_llc_test_checks`-generated tests.
  - Better test coverage
  - Easier to update
  - Easier to see changes in future diffs
- Remove unnecessary CL arguments in RUN lines

Motive for the patch: Preparation for D134354 - we would like to
put GISel tests in this file as well. Fixing the lack of `fneg` and
switching to generated testing makes it much easier.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D134793
llvm/test/CodeGen/AMDGPU/mad-mix-hi.ll
llvm/test/CodeGen/AMDGPU/mad-mix-lo.ll
llvm/test/CodeGen/AMDGPU/mad-mix.ll