brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · a87e790 Raw
34 lines · plain
1# RUN: llvm-mc %s -triple=riscv32 -mattr=+zcmt\2# RUN:  -M no-aliases -show-encoding \3# RUN:     | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s4# 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 %s9# RUN: llvm-mc %s -triple=riscv64 -mattr=+zcmt\10# RUN:  -M no-aliases -show-encoding \11# RUN:     | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s12# 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 %s17#18# RUN: not llvm-mc -triple riscv32 \19# RUN:     -M no-aliases -show-encoding < %s 2>&1 \20# RUN:     | FileCheck -check-prefixes=CHECK-NO-EXT %s21# RUN: not llvm-mc -triple riscv64 \22# RUN:     -M no-aliases -show-encoding < %s 2>&1 \23# RUN:     | FileCheck -check-prefixes=CHECK-NO-EXT %s24 25# CHECK-ASM-AND-OBJ: cm.jt 126# CHECK-ASM: encoding: [0x06,0xa0]27# CHECK-NO-EXT: error: instruction requires the following: 'Zcmt' (table jump instructions for code-size reduction){{$}}28cm.jt 129 30# CHECK-ASM-AND-OBJ: cm.jalt 3231# CHECK-ASM: encoding: [0x82,0xa0]32# CHECK-NO-EXT: error: instruction requires the following: 'Zcmt' (table jump instructions for code-size reduction){{$}}33cm.jalt 3234