You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
516 B
16 lines
516 B
; RUN: llc -mtriple=riscv32 < %s | FileCheck -check-prefix=RV32 %s
|
|
; RUN: llc -mtriple=riscv64 < %s | FileCheck -check-prefix=RV64 %s
|
|
|
|
@v = dso_local global i32 0, align 4
|
|
@r = dso_local global i64 7, align 8
|
|
|
|
; SmallDataLimit set to 4, so we expect @v will be put in sbss,
|
|
; but @r won't be put in sdata.
|
|
!llvm.module.flags = !{!0}
|
|
!0 = !{i32 1, !"SmallDataLimit", i32 4}
|
|
|
|
; RV32: .section .sbss
|
|
; RV32-NOT: .section .sdata
|
|
; RV64: .section .sbss
|
|
; RV64-NOT: .section .sdata
|