1 // REQUIRES: riscv-registered-target
2 // RUN: %clang -S --target=riscv32-unknown-elf -fpic -msmall-data-limit=8 %s 2>&1 \
3 // RUN: | FileCheck -check-prefix=CHECK-PIC-SDATA %s
4 // CHECK-PIC-SDATA: warning: ignoring '-msmall-data-limit=' with -mcmodel=large for -fpic or RV64
6 // RUN: %clang -S --target=riscv64-unknown-elf -mcmodel=large -msmall-data-limit=8 %s 2>&1 \
7 // RUN: | FileCheck -check-prefix=CHECK-RV64-LARGE-SDATA %s
8 // CHECK-RV64-LARGE-SDATA: warning: ignoring '-msmall-data-limit=' with -mcmodel=large for -fpic or RV64