mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
6cd76408bf
This patch updates tests using llvm-readobj and llvm-readelf, because soon reading from stdin will be achievable only via a '-' as described here: https://bugs.llvm.org/show_bug.cgi?id=46400. Patch with changes to llvm-readobj behavior is here: https://reviews.llvm.org/D83704 Differential Revision: https://reviews.llvm.org/D83912 Reviewed by: jhenderson, MaskRay, grimar
33 lines
733 B
LLVM
33 lines
733 B
LLVM
; RUN: llc -filetype=obj %s -o - | llvm-readobj -S - | FileCheck %s
|
|
|
|
; Test the mechanism for defining user custom sections.
|
|
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
!0 = !{ !"red", !"foo" }
|
|
!1 = !{ !"green", !"bar" }
|
|
!2 = !{ !"green", !"qux" }
|
|
!wasm.custom_sections = !{ !0, !1, !2 }
|
|
|
|
!3 = !{ !"clang version 123"}
|
|
!llvm.ident = !{!3}
|
|
|
|
; CHECK: Section {
|
|
; CHECK: Type: CUSTOM (0x0)
|
|
; CHECK: Size: 3
|
|
; CHECK: Offset: 72
|
|
; CHECK: Name: red
|
|
; CHECK: }
|
|
; CHECK: Section {
|
|
; CHECK: Type: CUSTOM (0x0)
|
|
; CHECK: Size: 6
|
|
; CHECK: Offset: 85
|
|
; CHECK: Name: green
|
|
; CHECK: }
|
|
; CHECK: Section {
|
|
; CHECK: Type: CUSTOM (0x0)
|
|
; CHECK: Size: 25
|
|
; CHECK: Offset: 118
|
|
; CHECK: Name: producers
|
|
; CHECK: }
|