brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 7d387b2 Raw
54 lines · plain
1# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-zicfiss,+zcmop -M no-aliases -show-encoding \2# RUN:     | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s3# RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+experimental-zicfiss,+zcmop < %s \4# RUN:     | llvm-objdump --mattr=+experimental-zicfiss,+zcmop -M no-aliases -d -r - \5# RUN:     | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s6# RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zicfiss,+zcmop -M no-aliases -show-encoding \7# RUN:     | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s8# RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-zicfiss,+zcmop < %s \9# RUN:     | llvm-objdump --mattr=+experimental-zicfiss,+zcmop -M no-aliases -d -r - \10# RUN:     | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s11#12# RUN: not llvm-mc -triple riscv32 -M no-aliases -show-encoding < %s 2>&1 \13# RUN:     | FileCheck -check-prefixes=CHECK-NO-EXT %s14 15# CHECK-ASM-AND-OBJ: c.sspopchk t016# CHECK-ASM: encoding: [0x81,0x62]17# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)18sspopchk x519 20# CHECK-ASM-AND-OBJ: c.sspopchk t021# CHECK-ASM: encoding: [0x81,0x62]22# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)23sspopchk t024 25# CHECK-ASM-AND-OBJ: c.sspush ra26# CHECK-ASM: encoding: [0x81,0x60]27# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)28sspush x129 30# CHECK-ASM-AND-OBJ: c.sspush ra31# CHECK-ASM: encoding: [0x81,0x60]32# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)33sspush ra34 35# CHECK-ASM-AND-OBJ: c.sspush ra36# CHECK-ASM: encoding: [0x81,0x60]37# CHECK-NO-EXT: error: instruction requires the following: 'Zcmop' (Compressed May-Be-Operations), 'Zicfiss' (Shadow stack)38c.sspush x139 40# CHECK-ASM-AND-OBJ: c.sspush ra41# CHECK-ASM: encoding: [0x81,0x60]42# CHECK-NO-EXT: error: instruction requires the following: 'Zcmop' (Compressed May-Be-Operations), 'Zicfiss' (Shadow stack)43c.sspush ra44 45# CHECK-ASM-AND-OBJ: c.sspopchk t046# CHECK-ASM: encoding: [0x81,0x62]47# CHECK-NO-EXT: error: instruction requires the following: 'Zcmop' (Compressed May-Be-Operations), 'Zicfiss' (Shadow stack)48c.sspopchk x549 50# CHECK-ASM-AND-OBJ: c.sspopchk t051# CHECK-ASM: encoding: [0x81,0x62]52# CHECK-NO-EXT: error: instruction requires the following: 'Zcmop' (Compressed May-Be-Operations), 'Zicfiss' (Shadow stack)53c.sspopchk t054