1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test
Rainer Orth 2697fb8b1e [test][DebugInfo] Adapt two tests for Sun assembler syntax on Sparc
Two DebugInfo tests currently `FAIL` on Sparc:

  LLVM :: DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll
  LLVM :: DebugInfo/Generic/array.ll

both in a similar way.  E.g.

  : 'RUN: at line 1';   /var/llvm/local-sparcv9-A/bin/llc -O2 /vol/llvm/src/llvm-project/local/llvm/test/DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll -o - | /var/llvm/local-sparcv9-A/bin/FileCheck /vol/llvm/src/llvm-project/local/llvm/test/DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll

  /vol/llvm/src/llvm-project/local/llvm/test/DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll:4:10: error: CHECK: expected string not found in input
  ; CHECK: debug_info,
           ^

On `amd64-pc-solaris2.11`, the corresponding line is

  .section        .debug_info,"",@progbits

while on `sparcv9-sun-solaris2.11` we have only

  .section        .debug_info

This happens because Sparc currently emits `.section` directives using the
style of the Solaris/SPARC assembler (controlled by `SunStyleELFSectionSwitchSyntax`).

This patch takes the easy way out and allows both forms while tightening the
check to only match the `.section` directive.

Tested on `sparcv9-sun-solaris2.11`, `amd64-pc-solaris2.11`,
`x86_64-pc-linux-gnu`, and `x86_64-apple-darwin20.0.0`.

Differential Revision: https://reviews.llvm.org/D85414
2020-08-08 09:13:47 +02:00
..
Analysis Revert "[StackSafety] Skip ambiguous lifetime analysis" 2020-08-07 14:02:50 -07:00
Assembler
Bindings [Bindings] Remove ipc_propagation. 2020-08-02 22:36:53 +01:00
Bitcode [StackSafety,NFC] Add combined index test 2020-08-04 18:31:58 -07:00
BugPoint
CodeGen [X86] Limit the scope of the min/max canonicalization in combineSelect 2020-08-07 22:51:49 -07:00
DebugInfo [test][DebugInfo] Adapt two tests for Sun assembler syntax on Sparc 2020-08-08 09:13:47 +02:00
Demangle
Examples
ExecutionEngine [JITLink][MachO][AArch64] More PAGEOFF12 relocation fixes. 2020-08-05 21:09:45 -07:00
Feature [NewPM] Print 'Skipping pass' as pass instrumentation 2020-08-07 15:02:02 -07:00
FileCheck
Instrumentation Revert "[MSAN] Instrument libatomic load/store calls" 2020-08-07 19:45:51 +00:00
Integer
JitListener
Linker
LTO
MachineVerifier
MC Revert "Reland D64327 [MC][ELF] Allow STT_SECTION referencing SHF_MERGE on REL targets" 2020-08-07 10:56:33 -07:00
Object [llvm-readobj] - Don't stop dumping when the name of a relocation section can't be read. 2020-08-03 14:49:09 +03:00
ObjectYAML [DWARFYAML][debug_info] Make the 'Values' field optional. 2020-08-06 20:43:52 +08:00
Other [NewPM][LoopUnswitch] Pin loop-unswitch to legacy PM or use simple-loop-unswitch 2020-08-06 10:56:00 -07:00
Reduce
SafepointIRVerifier
Support
SymbolRewriter
TableGen [flang][NFC] Unify OpenMP and OpenACC structure checker 2020-08-05 14:25:49 -04:00
ThinLTO/X86
tools [llvm-libtool-darwin] Add support for -D and -U options 2020-08-07 14:44:32 -07:00
Transforms [InstCombine] Optimize select(freeze(icmp eq/ne x, y), x, y) 2020-08-08 15:22:29 +09:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt Revert "[CMake] Simplify CMake handling for zlib" 2020-08-07 09:36:49 +02:00
lit.cfg.py Add test utility 'split-file' 2020-08-03 20:42:09 -07:00
lit.site.cfg.py.in Revert "[CMake] Simplify CMake handling for zlib" 2020-08-07 09:36:49 +02:00
TestRunner.sh