When feature CSSC is available, the abs intrinsic should map to the
new scalar ABS instruction when using GlobalIsel
spec:
https://developer.arm.com/documentation/ddi0602/2022-09/Base-Instructions/ABS--Absolute-value-
| Paths 
 |  Differential  D139419  
[AArch64] lower abs intrinsic to new ABS instruction in GIsel ClosedPublic Authored by stuij on Dec 6 2022, 5:32 AM. 
Details Summary When feature CSSC is available, the abs intrinsic should map to the spec: 
Diff Detail 
 Event Timeline
 
 
 
 stuij added inline comments. 
 
 This revision is now accepted and ready to land.Jan 9 2023, 10:11 AM This revision was landed with ongoing or failed builds.Jan 10 2023, 3:46 AM Closed by commit rG88b3127ed1fa: [AArch64] lower abs intrinsic to new ABS instruction in GIsel (authored by stuij).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 487740 llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
 llvm/test/CodeGen/AArch64/GlobalISel/legalize-abs.mir
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Can you do the check outside so we can avoid using predicates?