brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 71ced17 Raw
33 lines · plain
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 %s4; RUN: sed 's/SMALL_DATA_LIMIT/0/g' %s | \5; RUN:   llc -mtriple=riscv64 -mattr=+d | \6; RUN:   FileCheck -check-prefix=CHECK-SDL-0 %s7; RUN: sed 's/SMALL_DATA_LIMIT/8/g' %s | \8; RUN:   llc -mtriple=riscv32 -mattr=+d | \9; RUN:   FileCheck -check-prefix=CHECK-SDL-8 %s10; RUN: sed 's/SMALL_DATA_LIMIT/8/g' %s | \11; RUN:   llc -mtriple=riscv64 -mattr=+d | \12; RUN:   FileCheck -check-prefix=CHECK-SDL-8 %s13; RUN: sed 's/SMALL_DATA_LIMIT/16/g' %s | \14; RUN:   llc -mtriple=riscv32 -mattr=+d | \15; RUN:   FileCheck -check-prefix=CHECK-SDL-16 %s16; RUN: sed 's/SMALL_DATA_LIMIT/16/g' %s | \17; RUN:   llc -mtriple=riscv64 -mattr=+d | \18; RUN:   FileCheck -check-prefix=CHECK-SDL-16 %s19 20define dso_local double @foo() {21entry:22  ret double 0x400A08AC91C3E24223}24 25!llvm.module.flags = !{!0}26 27!0 = !{i32 8, !"SmallDataLimit", i32 SMALL_DATA_LIMIT}28 29; CHECK-SDL-0-NOT:    .section        .srodata.cst430; CHECK-SDL-0-NOT:    .section        .srodata.cst831; CHECK-SDL-8:        .section        .srodata.cst832; CHECK-SDL-16:       .section        .srodata.cst833