32 lines · plain
1# RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zalasr -M no-aliases -show-encoding \2# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s3# RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-zalasr < %s \4# RUN: | llvm-objdump --mattr=+experimental-zalasr -M no-aliases -d -r - \5# RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s6#7# RUN: not llvm-mc -triple riscv64 \8# RUN: -M no-aliases -show-encoding < %s 2>&1 \9# RUN: | FileCheck --check-prefixes=CHECK-NO-EXT %s10 11 12# CHECK-ASM-AND-OBJ: ld.aq t1, (a0)13# CHECK-ASM: encoding: [0x2f,0x33,0x05,0x34]14# CHECK-NO-EXT: error: instruction requires the following: 'Zalasr' (Load-Acquire and Store-Release Instructions){{$}}15ld.aq t1, (a0)16 17# CHECK-ASM-AND-OBJ: ld.aqrl t1, (a0)18# CHECK-ASM: encoding: [0x2f,0x33,0x05,0x36]19# CHECK-NO-EXT: error: instruction requires the following: 'Zalasr' (Load-Acquire and Store-Release Instructions){{$}}20ld.aqrl t1, 0(a0)21 22 23# CHECK-ASM-AND-OBJ: sd.rl t1, (a0)24# CHECK-ASM: encoding: [0x2f,0x30,0x65,0x3a]25# CHECK-NO-EXT: error: instruction requires the following: 'Zalasr' (Load-Acquire and Store-Release Instructions){{$}}26sd.rl t1, 0(a0)27 28# CHECK-ASM-AND-OBJ: sd.aqrl t1, (a0)29# CHECK-ASM: encoding: [0x2f,0x30,0x65,0x3e]30# CHECK-NO-EXT: error: instruction requires the following: 'Zalasr' (Load-Acquire and Store-Release Instructions){{$}}31sd.aqrl t1, (a0)32