CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
62 lines
2.6 KiB
LLVM
62 lines
2.6 KiB
LLVM
; RUN: llc -filetype=obj -mattr=-bulk-memory %s -o %t.o
|
|
; RUN: wasm-ld -no-gc-sections --no-entry -o %t.wasm %t.o
|
|
; RUN: obj2yaml %t.wasm | FileCheck %s --check-prefixes=CHECK,NO-BSS
|
|
; RUN: wasm-ld -no-gc-sections --no-entry --import-memory -o %t.bss.wasm %t.o
|
|
; RUN: obj2yaml %t.bss.wasm | FileCheck %s --check-prefixes=CHECK,BSS
|
|
; RUN: wasm-ld -no-gc-sections --no-entry -o %t_reloc.o %t.o --relocatable
|
|
; RUN: obj2yaml %t_reloc.o | FileCheck -check-prefix RELOC %s
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
@bss = hidden global i32 zeroinitializer, align 4
|
|
@foo = hidden global i32 zeroinitializer, section "WowZero!", align 4
|
|
@bar = hidden constant i32 42, section "MyAwesomeSection", align 4
|
|
@baz = hidden global i32 7, section "AnotherGreatSection", align 4
|
|
|
|
; CHECK-LABEL: - Type: DATA
|
|
; CHECK-NEXT: Segments:
|
|
; CHECK-NEXT: - SectionOffset: 8
|
|
; CHECK-NEXT: InitFlags: 0
|
|
; CHECK-NEXT: Offset:
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
; CHECK-NEXT: Value: 65536
|
|
; CHECK-NEXT: Content: '00000000'
|
|
; CHECK-NEXT: - SectionOffset: 19
|
|
; CHECK-NEXT: InitFlags: 0
|
|
; CHECK-NEXT: Offset:
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
; CHECK-NEXT: Value: 65540
|
|
; CHECK-NEXT: Content: 2A000000
|
|
; CHECK-NEXT: - SectionOffset: 30
|
|
; CHECK-NEXT: InitFlags: 0
|
|
; CHECK-NEXT: Offset:
|
|
; CHECK-NEXT: Opcode: I32_CONST
|
|
; CHECK-NEXT: Value: 65544
|
|
; CHECK-NEXT: Content: '07000000'
|
|
; BSS-NEXT: - SectionOffset: 41
|
|
; BSS-NEXT: InitFlags: 0
|
|
; BSS-NEXT: Offset:
|
|
; BSS-NEXT: Opcode: I32_CONST
|
|
; BSS-NEXT: Value: 65548
|
|
; BSS-NEXT: Content: '00000000'
|
|
; NO-BSS-NOT: - SectionOffset:
|
|
|
|
; RELOC-LABEL: SegmentInfo:
|
|
; RELOC-NEXT: - Index: 0
|
|
; RELOC-NEXT: Name: 'WowZero!'
|
|
; RELOC-NEXT: Alignment: 2
|
|
; RELOC-NEXT: Flags: [ ]
|
|
; RELOC-NEXT: - Index: 1
|
|
; RELOC-NEXT: Name: MyAwesomeSection
|
|
; RELOC-NEXT: Alignment: 2
|
|
; RELOC-NEXT: Flags: [ ]
|
|
; RELOC-NEXT: - Index: 2
|
|
; RELOC-NEXT: Name: AnotherGreatSection
|
|
; RELOC-NEXT: Alignment: 2
|
|
; RELOC-NEXT: Flags: [ ]
|
|
; RELOC-NEXT: - Index: 3
|
|
; RELOC-NEXT: Name: .bss.bss
|
|
; RELOC-NEXT: Alignment: 2
|
|
; RELOC-NEXT: Flags: [ ]
|