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
117 lines
3.7 KiB
LLVM
117 lines
3.7 KiB
LLVM
;RUN: llc -mtriple=armv7-eabi %s -o - | FileCheck %s
|
|
;Test that global variables and functions are assigned to correct sections.
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
|
|
target triple = "armv7-arm-none-eabi"
|
|
|
|
@a = global i32 0, align 4 #0
|
|
@b = global i32 1, align 4 #0
|
|
@c = global [4 x i32] zeroinitializer, align 4 #0
|
|
@d = global [5 x i16] zeroinitializer, align 2 #0
|
|
@e = global [6 x i16] [i16 0, i16 0, i16 1, i16 0, i16 0, i16 0], align 2 #0
|
|
@f = constant i32 2, align 4 #0
|
|
@h = global i32 0, align 4 #1
|
|
@i = global i32 0, align 4 #2
|
|
@j = constant i32 4, align 4 #2
|
|
@k = global i32 0, align 4 #2
|
|
@_ZZ3gooE7lstat_h = internal global i32 0, align 4 #2
|
|
@_ZL1g = internal global [2 x i32] zeroinitializer, align 4 #0
|
|
@l = global i32 5, align 4 #3
|
|
@m = constant i32 6, align 4 #3
|
|
@n = global i32 0, align 4
|
|
@o = global i32 6, align 4
|
|
@p = constant i32 7, align 4
|
|
|
|
declare i32 @zoo(ptr, ptr) #6
|
|
|
|
; Function Attrs: noinline nounwind
|
|
define i32 @hoo() #7 {
|
|
entry:
|
|
%0 = load i32, ptr @b, align 4
|
|
ret i32 %0
|
|
}
|
|
|
|
attributes #0 = { "bss-section"="my_bss.1" "data-section"="my_data.1" "rodata-section"="my_rodata.1" }
|
|
attributes #1 = { "data-section"="my_data.1" "rodata-section"="my_rodata.1" }
|
|
attributes #2 = { "bss-section"="my_bss.2" "rodata-section"="my_rodata.1" }
|
|
attributes #3 = { "bss-section"="my_bss.2" "data-section"="my_data.2" "rodata-section"="my_rodata.2" }
|
|
attributes #6 = { "correctly-rounded-divide-sqrt-fp-math"="false" denormal_fpenv(preservesign) "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="cortex-a9" "target-features"="+dsp,+fp16,+neon,+vfp3" "use-soft-float"="false" }
|
|
attributes #7 = { noinline nounwind "correctly-rounded-divide-sqrt-fp-math"="false" denormal_fpenv(preservesign) "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="true" "no-jump-tables"="false" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="cortex-a9" "target-features"="+dsp,+fp16,+neon,+vfp3" "use-soft-float"="false" }
|
|
|
|
!llvm.module.flags = !{!0, !1, !2, !3}
|
|
|
|
!0 = !{i32 1, !"wchar_size", i32 4}
|
|
!1 = !{i32 1, !"static_rwdata", i32 1}
|
|
!2 = !{i32 1, !"enumsize_buildattr", i32 2}
|
|
!3 = !{i32 1, !"armlib_unavailable", i32 0}
|
|
|
|
;CHECK: .text
|
|
;CHECK: .type hoo,%function
|
|
;CHECK: hoo:
|
|
|
|
;CHECK: .type a,%object
|
|
;CHECK: .section my_bss.1,"aw",%nobits
|
|
;CHECK: a:
|
|
|
|
;CHECK: .type b,%object
|
|
;CHECK: .section my_data.1,"aw",%progbits
|
|
;CHECK: b:
|
|
|
|
;CHECK: .type c,%object
|
|
;CHECK: .section my_bss.1,"aw",%nobits
|
|
;CHECK: c:
|
|
|
|
;CHECK: .type d,%object
|
|
;CHECK: d:
|
|
|
|
;CHECK: .type e,%object
|
|
;CHECK: .section my_data.1,"aw",%progbits
|
|
;CHECK: e:
|
|
|
|
;CHECK: .type f,%object
|
|
;CHECK: .section my_rodata.1,"a",%progbits
|
|
;CHECK: f:
|
|
|
|
;CHECK: .type h,%object
|
|
;CHECK: .bss
|
|
;CHECK: h:
|
|
|
|
;CHECK: .type i,%object
|
|
;CHECK: .section my_bss.2,"aw",%nobits
|
|
;CHECK: i:
|
|
|
|
;CHECK: .type j,%object
|
|
;CHECK: .section my_rodata.1,"a",%progbits
|
|
;CHECK: j:
|
|
|
|
;CHECK: .type k,%object
|
|
;CHECK: .section my_bss.2,"aw",%nobits
|
|
;CHECK: k:
|
|
|
|
;CHECK: .type _ZZ3gooE7lstat_h,%object @ @_ZZ3gooE7lstat_h
|
|
;CHECK: _ZZ3gooE7lstat_h:
|
|
|
|
;CHECK: .type _ZL1g,%object
|
|
;CHECK: .section my_bss.1,"aw",%nobits
|
|
;CHECK: _ZL1g:
|
|
|
|
;CHECK: .type l,%object
|
|
;CHECK: .section my_data.2,"aw",%progbits
|
|
;CHECK: l:
|
|
|
|
;CHECK: .type m,%object
|
|
;CHECK: .section my_rodata.2,"a",%progbits
|
|
;CHECK: m:
|
|
|
|
;CHECK: .type n,%object
|
|
;CHECK: .bss
|
|
;CHECK: n:
|
|
|
|
;CHECK: .type o,%object
|
|
;CHECK: .data
|
|
;CHECK: o:
|
|
|
|
;CHECK: .type p,%object
|
|
;CHECK: .section .rodata,"a",%progbits
|
|
;CHECK: p:
|