[PATCH] D150677: [GlobalIsel][X86] Legalize G_CTPOP and G_CTLZ

Thorsten via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 08:37:20 PDT 2023


tschuett added inline comments.


================
Comment at: llvm/test/CodeGen/X86/GlobalISel/legalize-leading-zeros.mir:43
+    ; CHECK: [[DEF:%[0-9]+]]:_(s8) = IMPLICIT_DEF
+    ; CHECK-NEXT: [[CTLZ:%[0-9]+]]:_(s16) = G_CTLZ [[DEF]](s8)
+    ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:_(s8) = G_TRUNC [[CTLZ]](s16)
----------------
The input is s8 and the output is s16.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150677/new/

https://reviews.llvm.org/D150677



More information about the llvm-commits mailing list