llvm-project/llvm/test
Lei Huang de20843f6f [PowerPC] Improve BUILD_VECTOR of 4 i32s
Currently, for this node:
  vector int test(int a, int b, int c, int d) {
    return (vector int) { a, b, c, d };
  }

we get this on Power9:
  mtvsrdd 34, 5, 3
  mtvsrdd 35, 6, 4
  vmrgow 2, 3, 2

and this on Power8:
  mtvsrwz 0, 3
  mtvsrwz 1, 5
  mtvsrwz 2, 4
  mtvsrwz 3, 6
  xxmrghd 34, 1, 0
  xxmrghd 35, 3, 2
  vmrgow 2, 3, 2

This can be improved to this on LE Power9:
  rldimi 3, 4, 32, 0
  rldimi 5, 6, 32, 0
  mtvsrdd 34, 5, 3

and this on LE Power8
  rldimi 3, 4, 32, 0
  rldimi 5, 6, 32, 0
  mtvsrd 34, 3
  mtvsrd 35, 5
  xxpermdi 34, 35, 34, 0

This patch updates the TD pattern to generate the optimized sequence for both
Power8 and Power9 on LE and BE.

Differential Revision: https://reviews.llvm.org/D53494

llvm-svn: 345414
2018-10-26 18:09:36 +00:00
..
Analysis [X86] Add -LABEL to some FileCheck checks. NFC 2018-10-26 17:21:19 +00:00
Assembler Emit template type and value parameter DIEs for template variables. 2018-10-03 18:44:53 +00:00
Bindings [LLVM-C] Add more debug information accessors to GlobalObject and Instruction 2018-09-28 15:35:18 +00:00
Bitcode Fix some missing opcodes in bcanalyzer 2018-09-24 12:47:17 +00:00
BugPoint
CodeGen [PowerPC] Improve BUILD_VECTOR of 4 i32s 2018-10-26 18:09:36 +00:00
DebugInfo llvm-dwarfdump: loclists: Don't expect an (albeit empty) expression for LLE_base_address 2018-10-25 21:35:59 +00:00
Demangle
Examples
ExecutionEngine [ORC] Re-apply r345077 with fixes to remove ambiguity in lookup calls. 2018-10-23 23:01:39 +00:00
Feature
FileCheck [SourceMgr][FileCheck] Obey -color by extending WithColor 2018-10-24 21:46:42 +00:00
Instrumentation [hwasan] add stack frame descriptions. 2018-10-23 00:50:40 +00:00
Integer
JitListener
LTO Update test of r344198 to work with release builds. 2018-10-11 20:19:25 +00:00
Linker llvm-link: Improve diagnostic for module-level metadata mismatch 2018-10-09 01:17:27 +00:00
MC [SystemZ] Implement SystemZOperand::print() 2018-10-26 00:36:00 +00:00
Object [AMDGPU] Defined gfx909 Raven Ridge 2 2018-10-24 08:14:07 +00:00
ObjectYAML Make YAML quote forward slashes. 2018-10-12 16:31:20 +00:00
Other [hot-cold-split] Only perform splitting in ThinLTO backend post-link 2018-10-23 22:57:40 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen [TableGen] fix assert in !cast when used out of definition in a multiclass 2018-10-10 10:52:57 +00:00
ThinLTO/X86 [ThinLTO] Fix dot dumper for regular LTO modules 2018-10-24 07:48:32 +00:00
Transforms Pointer types were treated as zero-size by MergeICmps 2018-10-26 18:02:06 +00:00
Unit
Verifier [machineverifier] Detect PHI's that are preceeded by non-PHI's 2018-10-03 22:05:31 +00:00
YAMLParser
tools [llvm-ar] Access ADDLIB in llvm-ar via command line 2018-10-26 13:34:38 +00:00
.clang-format
CMakeLists.txt Reapply r343058 with a fix for -DLLVM_ENABLE_THREADS=OFF. 2018-09-26 16:26:59 +00:00
TestRunner.sh
lit.cfg.py Reapply r343058 with a fix for -DLLVM_ENABLE_THREADS=OFF. 2018-09-26 16:26:59 +00:00
lit.site.cfg.py.in Reapply r343058 with a fix for -DLLVM_ENABLE_THREADS=OFF. 2018-09-26 16:26:59 +00:00