[flang-commits] [clang-tools-extra] [llvm] [clang] [compiler-rt] [flang] [RISCV][MC] Add experimental support of Zaamo and Zalrsc (PR #78970)

Craig Topper via flang-commits flang-commits at lists.llvm.org
Wed Jan 24 09:59:47 PST 2024


================
@@ -170,7 +170,7 @@ xor s2, s2 # CHECK: :[[@LINE]]:1: error: too few operands for instruction
 
 # Instruction not in the base ISA
 div a4, ra, s0 # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'M' (Integer Multiplication and Division){{$}}
-amomaxu.w s5, s4, (s3) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'A' (Atomic Instructions){{$}}
+amomaxu.w s5, s4, (s3) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'A' (Atomic Instructions) or 'Zaamo' (Atomic Memory Operations){{$}}
----------------
topperc wrote:

Add a test for lr or sc so that we have a test for the string `error: instruction requires the following: 'A' (Atomic Instructions) or 'Zalrsc'...`

https://github.com/llvm/llvm-project/pull/78970


More information about the flang-commits mailing list