mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
54ac1d95cd
Previously the patterns didn't have high enough priority and we would only use the GR32 form if the only the upper 32 or 56 bits were zero. Fixes PR23100. llvm-svn: 234075
12 lines
204 B
LLVM
12 lines
204 B
LLVM
; RUN: llc < %s -march=x86-64 | FileCheck %s
|
|
|
|
define i64 @test(i64 %A) {
|
|
; CHECK: @test
|
|
; CHECK: shrq $54
|
|
; CHECK: andl $1020
|
|
; CHECK: ret
|
|
%B = lshr i64 %A, 56
|
|
%C = shl i64 %B, 2
|
|
ret i64 %C
|
|
}
|