Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

68 lines
2.7 KiB
LLVM

; RUN: llc < %s -mtriple=avr --mcpu=atxmega384d3 \
; RUN: | FileCheck --check-prefixes=CHECK,NOSECTIONS %s
; RUN: llc -function-sections -data-sections < %s -mtriple=avr --mcpu=atxmega384d3 \
; RUN: | FileCheck --check-prefixes=CHECK,SECTIONS %s
; RUN: not llc -function-sections -data-sections < %s -mtriple=avr --mcpu=at90s8515 2>&1 \
; RUN: | FileCheck --check-prefixes=CHECK-8515 %s
; RUN: not llc -function-sections -data-sections < %s -mtriple=avr --mcpu=attiny40 2>&1 \
; RUN: | FileCheck --check-prefixes=CHECK-tiny40 %s
; Test that functions (in address space 1) are not considered .progmem data.
; SECTIONS: .text.somefunc,"ax",@progbits
; CHECK-LABEL: somefunc:
define void @somefunc() addrspace(1) {
ret void
}
; Test whether global variables are placed in the correct section.
; Note: avr-gcc would place this global in .progmem.data.flash with
; -fdata-sections. The AVR backend does not yet respect -fdata-sections in this
; case.
; CHECK: .section .progmem.data,"a",@progbits
; CHECK-LABEL: flash:
@flash = addrspace(1) constant i16 3
; CHECK: .section .progmem1.data,"a",@progbits
; CHECK-LABEL: flash1:
; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory
; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory
@flash1 = addrspace(2) constant i16 4
; CHECK: .section .progmem2.data,"a",@progbits
; CHECK-LABEL: flash2:
; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory
; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory
@flash2 = addrspace(3) constant i16 5
; CHECK: .section .progmem3.data,"a",@progbits
; CHECK-LABEL: flash3:
; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory
; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory
@flash3 = addrspace(4) constant i16 6
; CHECK: .section .progmem4.data,"a",@progbits
; CHECK-LABEL: flash4:
; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory
; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory
@flash4 = addrspace(5) constant i16 7
; CHECK: .section .progmem5.data,"a",@progbits
; CHECK-LABEL: flash5:
; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory
; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory
@flash5 = addrspace(6) constant i16 8
; NOSECTIONS: .section .rodata,"a",@progbits
; SECTIONS: .section .rodata.ram1,"a",@progbits
; CHECK-LABEL: ram1:
@ram1 = constant i16 3
; NOSECTIONS: .data
; SECTIONS: .section .data.ram2,"aw",@progbits
; CHECK-LABEL: ram2:
@ram2 = global i16 3