UnstableChanges

Summary

  1. [PowerPC][HTM]Fix $zero is not a GPRC register for builtin_ttest This was found during HTM cleanup. Adding a test for builtin_ttest would expose following issue. *** Bad machine code: Illegal physical register for instruction *** - function: test10 - basic block: %bb.0 entry (0xf0e57497b58) - instruction: %5:crrc0 = TABORTWCI 0, $zero, 0 - operand 2: $zero $zero is not a GPRC register. LLVM ERROR: Found 1 machine code errors. Differential Revision: https://reviews.llvm.org/D63079
  2. [llvm-objcopy] Fix SHT_GROUP ordering. Summary: When llvm-objcopy sorts sections during finalization, it only sorts based on the offset, which can cause the group section to come after the sections it contains. This causes link failures when using gold to link objects created by llvm-objcopy. Fix this for now by copying GNU objcopy's behavior of placing SHT_GROUP sections first. In the future, we may want to remove this sorting entirely to more closely preserve the input file layout. This fixes https://bugs.llvm.org/show_bug.cgi?id=42052. Reviewers: jakehehrlich, jhenderson, MaskRay, espindola, alexshap Reviewed By: MaskRay Subscribers: phuongtrang148993, emaste, arichardson, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D62620
  3. [Analysis] add unit test file for VectorUtils; NFC
Revision 362974 by jsji:
[PowerPC][HTM]Fix $zero is not a GPRC register for builtin_ttest

This was found during HTM cleanup.
Adding a test for builtin_ttest would expose following issue.

*** Bad machine code: Illegal physical register for instruction ***
- function:    test10
- basic block: %bb.0 entry (0xf0e57497b58)
- instruction: %5:crrc0 = TABORTWCI 0, $zero, 0
- operand 2:   $zero
  $zero is not a GPRC register.
LLVM ERROR: Found 1 machine code errors.

Differential Revision: https://reviews.llvm.org/D63079
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/lib/Target/PowerPC/PPCInstrHTM.tdtrunk/lib/Target/PowerPC/PPCInstrHTM.td
The file was modified/llvm/trunk/test/CodeGen/PowerPC/htm.lltrunk/test/CodeGen/PowerPC/htm.ll
Revision 362973 by rupprecht:
[llvm-objcopy] Fix SHT_GROUP ordering.

Summary:
When llvm-objcopy sorts sections during finalization, it only sorts based on the offset, which can cause the group section to come after the sections it contains. This causes link failures when using gold to link objects created by llvm-objcopy.

Fix this for now by copying GNU objcopy's behavior of placing SHT_GROUP sections first. In the future, we may want to remove this sorting entirely to more closely preserve the input file layout.

This fixes https://bugs.llvm.org/show_bug.cgi?id=42052.

Reviewers: jakehehrlich, jhenderson, MaskRay, espindola, alexshap

Reviewed By: MaskRay

Subscribers: phuongtrang148993, emaste, arichardson, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62620
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.testtrunk/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test
The file was modified/llvm/trunk/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.testtrunk/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test
The file was added/llvm/trunk/test/tools/llvm-objcopy/ELF/group-reorder.testtrunk/test/tools/llvm-objcopy/ELF/group-reorder.test
The file was modified/llvm/trunk/test/tools/llvm-objcopy/ELF/strip-dwo-groups.testtrunk/test/tools/llvm-objcopy/ELF/strip-dwo-groups.test
The file was modified/llvm/trunk/tools/llvm-objcopy/ELF/Object.cpptrunk/tools/llvm-objcopy/ELF/Object.cpp
Revision 362972 by spatel:
[Analysis] add unit test file for VectorUtils; NFC
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/unittests/Analysis/CMakeLists.txttrunk/unittests/Analysis/CMakeLists.txt
The file was added/llvm/trunk/unittests/Analysis/VectorUtilsTest.cpptrunk/unittests/Analysis/VectorUtilsTest.cpp