xref: /llvm-project-15.0.7/llvm/test/MC/Sparc/sparc-asm-errors.s (revision 42652c1d)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1! RUN: not llvm-mc %s -arch=sparc   -show-encoding 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=V8
2! RUN: not llvm-mc %s -arch=sparcv9 -show-encoding 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=V9
3
4! Test the lower and upper bounds of 'set'
5        ! CHECK: argument must be between
6        set -2147483649, %o1
7        ! CHECK: argument must be between
8        set 4294967296, %o1
9
10        ! V8: unexpected token
11        ! V9: unknown membar tag
12        membar #BadTag
13
14        ! V8: instruction requires a CPU feature not currently enabled
15        ! V9: invalid membar mask number
16        membar -127
17
18! Test the boundary checks on the shift amount
19        ! V8: immediate shift value out of range
20        sll %g1, 32, %g2
21        ! V9: immediate shift value out of range
22        slx %g1, 64, %g2
23

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026