[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / llvm / test / MC / RISCV / rv32zcmt-valid.s
bloba3829fed829f03e2ef229b290cc755fe786c1ab8
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+zcmt\
2 # RUN: -riscv-no-aliases -show-encoding \
3 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
4 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+zcmt\
5 # RUN: -mattr=m < %s \
6 # RUN: | llvm-objdump --mattr=+zcmt --no-print-imm-hex \
7 # RUN: -M no-aliases -d -r - \
8 # RUN: | FileCheck --check-prefixes=CHECK-ASM-AND-OBJ %s
9 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zcmt\
10 # RUN: -riscv-no-aliases -show-encoding \
11 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
12 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+zcmt\
13 # RUN: -mattr=m < %s \
14 # RUN: | llvm-objdump --mattr=+zcmt --no-print-imm-hex \
15 # RUN: -M no-aliases -d -r - \
16 # RUN: | FileCheck --check-prefixes=CHECK-ASM-AND-OBJ %s
18 # RUN: not llvm-mc -triple riscv32 \
19 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
20 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
21 # RUN: not llvm-mc -triple riscv64 \
22 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
23 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s
25 # CHECK-ASM-AND-OBJ: cm.jt 1
26 # CHECK-ASM: encoding: [0x06,0xa0]
27 # CHECK-NO-EXT: error: instruction requires the following: 'Zcmt' (table jump instructions for code-size reduction){{$}}
28 cm.jt 1
30 # CHECK-ASM-AND-OBJ: cm.jalt 32
31 # CHECK-ASM: encoding: [0x82,0xa0]
32 # CHECK-NO-EXT: error: instruction requires the following: 'Zcmt' (table jump instructions for code-size reduction){{$}}
33 cm.jalt 32