[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / RISCV / data-directives-invalid.s
blob6618cd17fa2e74c7341b726e090b1a291a7d22ca
1 # RUN: not llvm-mc -triple riscv32 < %s 2>&1 | FileCheck %s
2 # RUN: not llvm-mc -triple riscv64 < %s 2>&1 | FileCheck %s
4 # CHECK: [[@LINE+1]]:7: error: out of range literal value in '.byte' directive
5 .byte 0xffa
6 # CHECK: [[@LINE+1]]:7: error: out of range literal value in '.half' directive
7 .half 0xffffa
8 # CHECK: [[@LINE+1]]:8: error: out of range literal value in '.short' directive
9 .short 0xffffa
10 # CHECK: [[@LINE+1]]:8: error: out of range literal value in '.hword' directive
11 .hword 0xffffa
12 # CHECK: [[@LINE+1]]:8: error: out of range literal value in '.2byte' directive
13 .2byte 0xffffa
14 # CHECK: [[@LINE+1]]:7: error: out of range literal value in '.word' directive
15 .word 0xffffffffa
16 # CHECK: [[@LINE+1]]:7: error: out of range literal value in '.long' directive
17 .long 0xffffffffa
18 # CHECK: [[@LINE+1]]:8: error: out of range literal value in '.4byte' directive
19 .4byte 0xffffffffa
20 # CHECK: [[@LINE+1]]:8: error: literal value out of range for directive in '.dword' directive
21 .dword 0xffffffffffffffffa
22 # CHECK: [[@LINE+1]]:8: error: literal value out of range for directive in '.8byte' directive
23 .8byte 0xffffffffffffffffa