Thorsten Schütt a138d754cc
[GlobalIsel] Fix tests for G_SCMP and G_UCMP (#100133)
The return type of both is signed. Thus, we have to use sext.

Follow up to https://github.com/llvm/llvm-project/pull/99820
2024-07-23 17:54:07 +02:00
..
2024-07-21 12:57:31 +01:00
2023-08-08 21:59:53 +01:00

++ SVE CodeGen Warnings ++

When the WARN check lines fail in the SVE codegen tests it most likely means you
have introduced a warning due to:
1. Adding an invalid call to VectorType::getNumElements() or EVT::getVectorNumElements()
   when the type is a scalable vector.
2. Relying upon an implicit cast conversion from TypeSize to uint64_t.

For generic code, please modify your code to work with ElementCount and TypeSize directly.
For target-specific code that only deals with fixed-width vectors, use the fixed-size interfaces.
Please refer to the code where those functions live for more details.