This patch is to add support for LSHIFT and RSHIFT intrinsics which functionality is the same as the standard SHIFTL and SHIFTA intrinsics respectively. The change is to alias the two intrinsics to the standardized ones.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@klausler Thanks for the quick review. Since these two intrinsics are made alias to the existing ones, I am not sure what is the suitable tests. The functionality part (e.g. code gen) is already covered by flang/test/Lower/Intrinsics/shift[lr].f90 and flang/test/Evalute/fold-shift.f90. Will the same tests with the name changed be good? Any advice is appreciated. Thanks.
Comment Actions
I'd try writing a test with -fdebug-unparse and FileCheck to confirm that references to the extension names have been replaced with the conforming names. If you grep the tests you'll find some others that do this.