[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Sparc / sparc-asm-errors.s
blob3a52489b319f292fcbddfda3afd5aada049ad40c
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
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
10 ! V8: unexpected token
11 ! V9: unknown membar tag
12 membar #BadTag
14 ! V8: instruction requires a CPU feature not currently enabled
15 ! V9: invalid membar mask number
16 membar -127
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