From 8d1052f55cf807afc4fb21734d36f166b83ae4ea Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 21 Apr 2016 18:03:06 +0000 Subject: DAGCombiner: Reduce 64-bit BFE pattern to pattern on 32-bit component If the extracted bits are restricted to the upper half or lower half, this can be truncated. llvm-svn: 267024 --- llvm/test/CodeGen/X86/bmi.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/test/CodeGen/X86/bmi.ll') diff --git a/llvm/test/CodeGen/X86/bmi.ll b/llvm/test/CodeGen/X86/bmi.ll index cfb910eb7da..fc1ce0cdec2 100644 --- a/llvm/test/CodeGen/X86/bmi.ll +++ b/llvm/test/CodeGen/X86/bmi.ll @@ -311,7 +311,7 @@ define i64 @bextr64b(i64 %x) uwtable ssp { ; CHECK-LABEL: bextr64b: ; CHECK: # BB#0: ; CHECK-NEXT: movl $3076, %eax # imm = 0xC04 -; CHECK-NEXT: bextrq %rax, %rdi, %rax +; CHECK-NEXT: bextrl %eax, %edi, %eax ; CHECK-NEXT: retq ; %1 = lshr i64 %x, 4 @@ -323,7 +323,7 @@ define i64 @bextr64b_load(i64* %x) { ; CHECK-LABEL: bextr64b_load: ; CHECK: # BB#0: ; CHECK-NEXT: movl $3076, %eax # imm = 0xC04 -; CHECK-NEXT: bextrq %rax, (%rdi), %rax +; CHECK-NEXT: bextrl %eax, (%rdi), %eax ; CHECK-NEXT: retq ; %1 = load i64, i64* %x, align 8 -- cgit v1.2.3