[PATCH] D62099: UpdateTestChecks: fix AMDGPU handling

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 18 02:57:57 PDT 2019


lebedev.ri created this revision.
lebedev.ri added a reviewer: RKSimon.
lebedev.ri added a project: LLVM.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.

Was looking into supporting `(srl (shl x, c1), c2)` with c1 != c2 in dagcombiner,
this test changes, but makes `update_llc_test_checks.py` unhappy.

**Many** AMDGPU tests specify `-march`, not `-mtriple`, which results in `update_llc_test_checks.py`
defaulting to x86 asm function detection heuristics, which don't work here.
I propose to fix this by adding an infrastructure to map from `-march` to `-mtriple`,
in the UpdateTestChecks tooling.


Repository:
  rL LLVM

https://reviews.llvm.org/D62099

Files:
  test/CodeGen/AMDGPU/llvm.amdgcn.ubfe.ll
  utils/UpdateTestChecks/asm.py
  utils/update_llc_test_checks.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62099.200141.patch
Type: text/x-patch
Size: 71240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190518/24d3d144/attachment.bin>


More information about the llvm-commits mailing list