[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 1 11:13:25 PST 2025


================
@@ -77,3 +77,36 @@ __m512i test_mm512_undefined_epi32(void) {
   // OGCG: ret <8 x i64> zeroinitializer
   return _mm512_undefined_epi32();
 }
+
+__m512i test_mm512_ror_epi32(__m512i __A) {
+  // CIR-LABEL: test_mm512_ror_epi32
+  // CIR: {{%.*}} =  cir.cast integral {{%.*}} : !s32i -> !u32i
----------------
andykaylor wrote:

I prefer to see the `%` character outside the RE matching to make this easily recognized as a value identifier. Also, if you aren't capturing the return value to use in a later match, the `%{{.*}} =` string can be omitted. I would prefer to have the value captured and used in the match when it's relevant, as is happening on lines 67-68 above.

https://github.com/llvm/llvm-project/pull/169566


More information about the cfe-commits mailing list