[Chapel Merge] Update LLVM tests to function with ASSERTS build

Branch: refs/heads/master
Revision: 7b2e71c
Author: mppf
Log Message:

Merge pull request #17153 from mppf/update-llvm-tests-assert-build

Update LLVM tests to function with ASSERTS build

We configure bundled LLVM with -DLLVM_ENABLE_DUMP=ON for make ASSERTS=1
builds (and for CHPL_DEVELOPER builds) which causes registers to have
names rather than just numbers.

This PR updates the tests to tolerate register names or numbers. An
alternative would be to use --ccflags -fdiscard-value-name to request
register names be discarded.

  • [x] affected tests pass with bundled llvm with CHPL_DEVELOPER
  • [x] affected tests pass with system llvm

Test change only - not reviewed.

Modified Files:
M test/llvm/alignment/check-align16-field1.prediff
M test/llvm/alignment/check-align16.prediff
M test/llvm/llvm-invariant/function_local_const.chpl
M test/llvm/llvm-invariant/program_constructs.chpl

Compare: Comparing 3c2f01fdffc6...7b2e71caecd4 · chapel-lang/chapel · GitHub