1 # RUN: not llvm-mc --filetype=obj --triple=loongarch64 --mattr=-relax %s -o /dev/null 2>&1 | FileCheck %s --check-prefixes=ERR,NORELAX --implicit-check-not=error:
2 # RUN: not llvm-mc --filetype=obj --triple=loongarch64 --mattr=+relax %s -o /dev/null 2>&1 | FileCheck %s --check-prefixes=ERR,RELAX --implicit-check-not=error:
13 ## Positive subsection numbers
14 ## With relaxation, report an error as c-b is not an assemble-time constant.
15 # RELAX: :[[#@LINE+1]]:14: error: cannot evaluate subsection number
17 # RELAX: :[[#@LINE+1]]:14: error: cannot evaluate subsection number
19 # RELAX: :[[#@LINE+1]]:14: error: cannot evaluate subsection number
25 ## Negative subsection numbers
26 # NORELAX: :[[#@LINE+2]]:14: error: subsection number -8 is not within [0,2147483647]
27 # RELAX: :[[#@LINE+1]]:14: error: cannot evaluate subsection number
29 # NORELAX: :[[#@LINE+2]]:14: error: subsection number -12 is not within [0,2147483647]
30 # RELAX: :[[#@LINE+1]]:14: error: cannot evaluate subsection number
32 # NORELAX: :[[#@LINE+2]]:14: error: subsection number -12 is not within [0,2147483647]
33 # RELAX: :[[#@LINE+1]]:14: error: cannot evaluate subsection number
35 # ERR: :[[#@LINE+1]]:14: error: subsection number -4 is not within [0,2147483647]
37 # ERR: :[[#@LINE+1]]:14: error: subsection number -4 is not within [0,2147483647]