1## Some section flags are processor-specific. Reject them for other targets. 2# REQUIRES: riscv-registered-target 3# RUN: not llvm-mc -triple=riscv32 %s -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error: 4 5# CHECK: {{.*}}.s:[[# @LINE+1]]:34: error: unknown flag 6.section XCORE_SHF_CP_SECTION,"c",@progbits 7 8# CHECK: {{.*}}.s:[[# @LINE+1]]:34: error: unknown flag 9.section XCORE_SHF_CP_SECTION,"d",@progbits 10 11# CHECK: {{.*}}.s:[[# @LINE+1]]:27: error: unknown flag 12.section SHF_HEX_GPREL,"s",@progbits 13 14# CHECK: {{.*}}.s:[[# @LINE+1]]:30: error: unknown flag 15.section SHF_ARM_PURECODE,"y",@progbits 16 17# CHECK: {{.*}}.s:[[# @LINE+1]]:30: error: unknown flag 18.section SHF_X86_64_LARGE,"l",@progbits 19