aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/Sparc/sparc-asm-errors.s
blob: 655fd15e3962f91b730df0e82bf911c203e4ef50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
! RUN: not llvm-mc %s -triple=sparc   -show-encoding 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=V8
! RUN: not llvm-mc %s -triple=sparcv9 -show-encoding 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=V9

! Test the lower and upper bounds of 'set'
        ! CHECK: argument must be between
        set -2147483649, %o1
        ! CHECK: argument must be between
        set 4294967296, %o1

        ! V8: instruction requires a CPU feature not currently enabled
        ! V9: unknown membar tag
        membar #BadTag

        ! V8: instruction requires a CPU feature not currently enabled
        ! V9: invalid membar mask number
        membar -127

! Test the boundary checks on the shift amount
        ! V8: immediate shift value out of range
        sll %g1, 32, %g2
        ! V9: immediate shift value out of range
        slx %g1, 64, %g2