1; RUN: sed 's/SMALL_DATA_LIMIT/0/g' %s | \ 2; RUN: llc -mtriple=riscv32 -mattr=+d | \ 3; RUN: FileCheck -check-prefix=CHECK-SDL-0 %s 4; RUN: sed 's/SMALL_DATA_LIMIT/0/g' %s | \ 5; RUN: llc -mtriple=riscv64 -mattr=+d | \ 6; RUN: FileCheck -check-prefix=CHECK-SDL-0 %s 7; RUN: sed 's/SMALL_DATA_LIMIT/4/g' %s | \ 8; RUN: llc -mtriple=riscv32 -mattr=+d | \ 9; RUN: FileCheck -check-prefix=CHECK-SDL-4 %s 10; RUN: sed 's/SMALL_DATA_LIMIT/4/g' %s | \ 11; RUN: llc -mtriple=riscv64 -mattr=+d | \ 12; RUN: FileCheck -check-prefix=CHECK-SDL-4 %s 13; RUN: sed 's/SMALL_DATA_LIMIT/8/g' %s | \ 14; RUN: llc -mtriple=riscv32 -mattr=+d | \ 15; RUN: FileCheck -check-prefix=CHECK-SDL-8 %s 16; RUN: sed 's/SMALL_DATA_LIMIT/8/g' %s | \ 17; RUN: llc -mtriple=riscv64 -mattr=+d | \ 18; RUN: FileCheck -check-prefix=CHECK-SDL-8 %s 19; RUN: sed 's/SMALL_DATA_LIMIT/16/g' %s | \ 20; RUN: llc -mtriple=riscv32 -mattr=+d | \ 21; RUN: FileCheck -check-prefix=CHECK-SDL-16 %s 22; RUN: sed 's/SMALL_DATA_LIMIT/16/g' %s | \ 23; RUN: llc -mtriple=riscv64 -mattr=+d | \ 24; RUN: FileCheck -check-prefix=CHECK-SDL-16 %s 25 26define dso_local float @foof() { 27entry: 28 ret float 0x400A08ACA0000000 29} 30 31define dso_local double @foo() { 32entry: 33 ret double 0x400A08AC91C3E242 34} 35 36!llvm.module.flags = !{!0} 37 38!0 = !{i32 8, !"SmallDataLimit", i32 SMALL_DATA_LIMIT} 39 40; CHECK-SDL-0-NOT: .section .srodata.cst4 41; CHECK-SDL-0-NOT: .section .srodata.cst8 42; CHECK-SDL-4: .section .srodata.cst4 43; CHECK-SDL-4-NOT: .section .srodata.cst8 44; CHECK-SDL-8: .section .srodata.cst4 45; CHECK-SDL-8: .section .srodata.cst8 46; CHECK-SDL-16: .section .srodata.cst4 47; CHECK-SDL-16: .section .srodata.cst8 48