brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.3 KiB · 5b2ab8d Raw
103 lines · plain
1# RUN: llvm-mc %s -triple=riscv32 -mattr=+a,+experimental-zicfiss -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=+a,+experimental-zicfiss < %s \4# RUN:     | llvm-objdump --mattr=+a,+experimental-zicfiss -M no-aliases -d -r - \5# RUN:     | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s6# RUN: llvm-mc %s -triple=riscv64 -defsym=RV64=1 -mattr=+a,+experimental-zicfiss -M no-aliases -show-encoding \7# RUN:     | FileCheck -check-prefixes=CHECK-ASM-RV64,CHECK-ASM,CHECK-ASM-AND-OBJ-RV64,CHECK-ASM-AND-OBJ %s8# RUN: llvm-mc -filetype=obj -triple=riscv64 -defsym=RV64=1 -mattr=+a,+experimental-zicfiss < %s \9# RUN:     | llvm-objdump --mattr=+a,+experimental-zicfiss -M no-aliases -d -r - \10# RUN:     | FileCheck --check-prefixes=CHECK-ASM-AND-OBJ-RV64,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# RUN: not llvm-mc -triple riscv64 -defsym=RV64=1 -M no-aliases -show-encoding < %s 2>&1 \15# RUN:     | FileCheck -check-prefixes=CHECK-NO-EXT-RV64 %s16 17# CHECK-ASM-AND-OBJ: sspopchk ra18# CHECK-ASM: encoding: [0x73,0xc0,0xc0,0xcd]19# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)20sspopchk x121 22# CHECK-ASM-AND-OBJ: sspopchk ra23# CHECK-ASM: encoding: [0x73,0xc0,0xc0,0xcd]24# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)25sspopchk ra26 27# CHECK-ASM-AND-OBJ: sspopchk t028# CHECK-ASM: encoding: [0x73,0xc0,0xc2,0xcd]29# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)30sspopchk x531 32# CHECK-ASM-AND-OBJ: sspopchk t033# CHECK-ASM: encoding: [0x73,0xc0,0xc2,0xcd]34# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)35sspopchk t036 37# CHECK-ASM-AND-OBJ: sspush ra38# CHECK-ASM: encoding: [0x73,0x40,0x10,0xce]39# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)40sspush x141 42# CHECK-ASM-AND-OBJ: sspush ra43# CHECK-ASM: encoding: [0x73,0x40,0x10,0xce]44# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)45sspush ra46 47# check-asm-and-obj: sspush t048# check-asm: encoding: [0x73,0x40,0x50,0xce]49# check-no-ext: error: instruction requires the following: 'Zicfiss' (Shadow stack)50sspush x551 52# check-asm-and-obj: sspush t053# check-asm: encoding: [0x73,0x40,0x50,0xce]54# check-no-ext: error: instruction requires the following: 'Zicfiss' (Shadow stack)55sspush t056 57# CHECK-ASM-AND-OBJ: ssrdp ra58# CHECK-ASM: encoding: [0xf3,0x40,0xc0,0xcd]59# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)60ssrdp ra61 62# CHECK-ASM-AND-OBJ: ssamoswap.w a4, ra, (s0)63# CHECK-ASM: encoding: [0x2f,0x27,0x14,0x48]64# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)65ssamoswap.w a4, ra, (s0)66 67# CHECK-ASM-AND-OBJ: ssamoswap.w.aq a4, ra, (s0)68# CHECK-ASM: encoding: [0x2f,0x27,0x14,0x4c]69# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)70ssamoswap.w.aq a4, ra, (s0)71 72# CHECK-ASM-AND-OBJ: ssamoswap.w.rl a4, ra, (s0)73# CHECK-ASM: encoding: [0x2f,0x27,0x14,0x4a]74# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)75ssamoswap.w.rl a4, ra, (s0)76 77# CHECK-ASM-AND-OBJ: ssamoswap.w.aqrl a4, ra, (s0)78# CHECK-ASM: encoding: [0x2f,0x27,0x14,0x4e]79# CHECK-NO-EXT: error: instruction requires the following: 'Zicfiss' (Shadow stack)80ssamoswap.w.aqrl a4, ra, (s0)81 82.ifdef RV6483# CHECK-ASM-AND-OBJ-RV64: ssamoswap.d a4, ra, (s0)84# CHECK-ASM-RV64: encoding: [0x2f,0x37,0x14,0x48]85# CHECK-NO-EXT-RV64: error: instruction requires the following: 'Zicfiss' (Shadow stack)86ssamoswap.d a4, ra, (s0)87 88# CHECK-ASM-AND-OBJ-RV64: ssamoswap.d.aq a4, ra, (s0)89# CHECK-ASM-RV64: encoding: [0x2f,0x37,0x14,0x4c]90# CHECK-NO-EXT-RV64: error: instruction requires the following: 'Zicfiss' (Shadow stack)91ssamoswap.d.aq a4, ra, (s0)92 93# CHECK-ASM-AND-OBJ-RV64: ssamoswap.d.rl a4, ra, (s0)94# CHECK-ASM-RV64: encoding: [0x2f,0x37,0x14,0x4a]95# CHECK-NO-EXT-RV64: error: instruction requires the following: 'Zicfiss' (Shadow stack)96ssamoswap.d.rl a4, ra, (s0)97 98# CHECK-ASM-AND-OBJ-RV64: ssamoswap.d.aqrl a4, ra, (s0)99# CHECK-ASM-RV64: encoding: [0x2f,0x37,0x14,0x4e]100# CHECK-NO-EXT-RV64: error: instruction requires the following: 'Zicfiss' (Shadow stack)101ssamoswap.d.aqrl a4, ra, (s0)102.endif103