[PATCH] D52426: [X86] Move X86DAGToDAGISel::matchBEXTRFromAnd() into X86ISelLowering
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 24 09:42:55 PDT 2018
lebedev.ri marked an inline comment as done.
lebedev.ri added inline comments.
================
Comment at: test/CodeGen/X86/tbm_patterns.ll:52-64
define i32 @test_x86_tbm_bextri_u32_z2(i32 %a, i32 %b, i32 %c) nounwind {
; CHECK-LABEL: test_x86_tbm_bextri_u32_z2:
; CHECK: # %bb.0:
; CHECK-NEXT: movl %esi, %eax
-; CHECK-NEXT: shrl $4, %edi
-; CHECK-NEXT: testl $4095, %edi # imm = 0xFFF
+; CHECK-NEXT: bextrl $3076, %edi, %ecx # imm = 0xC04
; CHECK-NEXT: cmovnel %edx, %eax
; CHECK-NEXT: retq
----------------
lebedev.ri wrote:
> This seems to be a miscompile, `BEXTR` does not touch EFLAGS?
Aha, it is not, i just can't read.
http://www.felixcloutier.com/x86/BEXTR.html#flags-affected
Repository:
rL LLVM
https://reviews.llvm.org/D52426
More information about the llvm-commits
mailing list