[PATCH] D54095: [X86] X86DAGToDAGISel::matchBitExtract(): extract 'lshr' from `X`
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 14 07:21:09 PST 2018
lebedev.ri added inline comments.
================
Comment at: test/CodeGen/X86/extract-bits.ll:54
; X86-BMI1NOTBM-NEXT: shll $8, %eax
-; X86-BMI1NOTBM-NEXT: bextrl %eax, %edx, %eax
+; X86-BMI1NOTBM-NEXT: orl %ecx, %eax
+; X86-BMI1NOTBM-NEXT: bextrl %eax, {{[0-9]+}}(%esp), %eax
----------------
RKSimon wrote:
> This doesn't look its zero-extending properly - the upper bits contents of RAX/RCX will both contain garbage as movb doesn't zero-extend.
Oh indeed.
Repository:
rL LLVM
https://reviews.llvm.org/D54095
More information about the llvm-commits
mailing list