llvm-project/llvm/test
Craig Topper 54a0b53308 [X86] Add patterns for rotr by immediate to fix PR41057.
Prior to the introduction of funnel shift intrinsics we could count on rotate
by immediates prefering to use rotl since that's what MatchRotate would check
first. The or+shift pattern doesn't have a direction so one must be chosen
arbitrarily.

With funnel shift, there is a direction and fshr will try to use rotr first.
While fshl will try to use rotl first.

This patch adds the isel patterns for rotr to complement the rotl patterns. I've
put the rotr by 1 patterns in the instruction patterns. And moved the rotl by
bitwidth-1 patterns to separate Pat patterns.

Fixes PR41057.

llvm-svn: 356121
2019-03-14 07:07:26 +00:00
..
Analysis [SCEV] Use depth limit for trunc analysis 2019-03-12 18:28:05 +00:00
Assembler Verifier: Make sure masked load/store alignment is a power of 2 2019-03-13 19:46:34 +00:00
Bindings [Go / ASAN] Disable Go bindings for ASAN tests. 2019-03-08 22:34:33 +00:00
Bitcode IR: Add immarg attribute 2019-03-12 21:02:54 +00:00
BugPoint
CodeGen [X86] Add patterns for rotr by immediate to fix PR41057. 2019-03-14 07:07:26 +00:00
DebugInfo Re-land r354244 "[DAGCombiner] Eliminate dead stores to stack." 2019-03-13 13:56:23 +00:00
Demangle
Examples Fix a think-o in the disable-kaleidoscope-tests-on-windows predicate of r354646. 2019-02-22 03:56:50 +00:00
ExecutionEngine [yaml2obj]Allow explicit symbol indexes in relocations and emit error for bad names 2019-03-12 17:00:25 +00:00
Feature
FileCheck [FileCheck]Remove assertions that prevent matching an empty string at file start before CHECK-NEXT/SAME 2019-03-12 15:37:34 +00:00
Instrumentation [SanitizerCoverage] Avoid splitting critical edges when destination is a basic block containing unreachable 2019-03-12 18:20:25 +00:00
Integer
JitListener
LTO Reland "[Remarks] Add -foptimization-record-passes to filter remark emission" 2019-03-12 21:22:27 +00:00
Linker
MC [AMDGPU] Switched HSA metadata to use MsgPackDocument 2019-03-13 18:55:50 +00:00
MachineVerifier [AMDGPU] Add support for immediate operand for S_ENDPGM 2019-03-12 09:52:58 +00:00
Object [yaml2obj]Allow explicit symbol indexes in relocations and emit error for bad names 2019-03-12 17:00:25 +00:00
ObjectYAML [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
Other [PGO] Context sensitive PGO (part 4) 2019-03-06 19:31:37 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen [TableGen] Allow 2^63-1 and 2^63-2 as int literals. 2019-03-12 09:28:19 +00:00
ThinLTO/X86 Reland "[Remarks] Add -foptimization-record-passes to filter remark emission" 2019-03-12 21:22:27 +00:00
Transforms Verifier: Make sure masked load/store alignment is a power of 2 2019-03-13 19:46:34 +00:00
Unit
Verifier Verifier: Make sure masked load/store alignment is a power of 2 2019-03-13 19:46:34 +00:00
YAMLParser
tools [llvm-objcopy] Cleanup errors from CopyConfig and remove llvm-objcopy.h dependency 2019-03-13 22:26:01 +00:00
.clang-format
CMakeLists.txt [Kaleidoscope] Re-enable Kaleidoscope tests. 2019-02-21 22:24:53 +00:00
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in [Kaleidoscope] Re-enable Kaleidoscope tests. 2019-02-21 22:24:53 +00:00