Files
clang-p2996/llvm/test/tools/UpdateTestChecks/update_mc_test_checks/amdgpu-basic.test
Brox Chen 2b892b0502 added a script to update llvm-mc test file (#107246)
Added a script to update the test file generated by llvm-mc binary. The
script accepts .s and .txt for asm and dasm.

For mc test I am targetting there is no function name which can be used
as a key, thus no clear mapping between input and output. The script
assumes the test are always line-by-line and it update the output marker
for each test line-by-line.

---------

Co-authored-by: Alexander Richardson <mail@alexrichardson.me>
2024-09-23 15:27:41 -04:00

12 lines
632 B
Plaintext

# REQUIRES: amdgpu-registered-target
## Check that basic asm/dasm process is correct
# RUN: cp -f %S/Inputs/amdgpu_asm.s %t.s && %update_mc_test_checks %t.s
# RUN: diff -u %S/Inputs/amdgpu_asm.s.expected %t.s
# RUN: cp -f %S/Inputs/amdgpu_asm_err.s %t.s && %update_mc_test_checks %t.s
# RUN: diff -u %S/Inputs/amdgpu_asm_err.s.expected %t.s
# RUN: cp -f %S/Inputs/amdgpu_dasm.txt %t.txt && %update_mc_test_checks %t.txt
# RUN: diff -u %S/Inputs/amdgpu_dasm.txt.expected %t.txt
# RUN: cp -f %S/Inputs/amdgpu_multirun_dasm.txt %t.txt && %update_mc_test_checks %t.txt
# RUN: diff -u %S/Inputs/amdgpu_multirun_dasm.txt.expected %t.txt