diff --git a/llvm/lib/Target/X86/X86LegalizerInfo.cpp b/llvm/lib/Target/X86/X86LegalizerInfo.cpp --- a/llvm/lib/Target/X86/X86LegalizerInfo.cpp +++ b/llvm/lib/Target/X86/X86LegalizerInfo.cpp @@ -105,7 +105,7 @@ .clampScalar(0, s32, s64); if (Subtarget.hasPOPCNT()) { - // popcount + // popcount (POPCNT) getActionDefinitionsBuilder(G_CTPOP) .legalFor({{s16, s16}, {s32, s32}, {s64, s64}}) .widenScalarToNextPow2(1, /*Min=*/16) diff --git a/llvm/test/CodeGen/X86/GlobalISel/legalize-bswap.mir b/llvm/test/CodeGen/X86/GlobalISel/legalize-bswap.mir --- a/llvm/test/CodeGen/X86/GlobalISel/legalize-bswap.mir +++ b/llvm/test/CodeGen/X86/GlobalISel/legalize-bswap.mir @@ -2,7 +2,7 @@ # RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=X86-64 # RUN: llc -mtriple=i386-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=X86-32 -# test BSWAP s16, s32, and s64 +# test BSWAP s16, s17, s32, and s64 ... ---