[AMDGPU][MC] Fix for Bugs 28201, 28199, 28170 + LIT tests
ClosedPublic

Authored by dp on Fri, Mar 10, 6:47 AM.

Details

Summary

This fix enables sp3 abs modifier with constants, for example:

  • |1.0|
  • |-1|

Currently this is not supported because closing '|' conflicts with syntax of standard MC expressions.

Diff Detail

Repository
rL LLVM
dp created this revision.Fri, Mar 10, 6:47 AM
artem.tamazov accepted this revision.EditedFri, Mar 17, 7:01 AM

Looks good.

This revision is now accepted and ready to land.Fri, Mar 17, 7:01 AM
artem.tamazov added inline comments.Fri, Mar 17, 7:03 AM
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
952 ↗(On Diff #91332)

pls remove extra whitespace prior committing this.

This revision was automatically updated to reflect the committed changes.