[llvm] bc8b6f6 - [RISCV] Add more tests for D144166. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 19 21:43:25 PST 2023
Author: Craig Topper
Date: 2023-02-19T21:43:15-08:00
New Revision: bc8b6f62caba904e944af9b103972ac7b85a6082
URL: https://github.com/llvm/llvm-project/commit/bc8b6f62caba904e944af9b103972ac7b85a6082
DIFF: https://github.com/llvm/llvm-project/commit/bc8b6f62caba904e944af9b103972ac7b85a6082.diff
LOG: [RISCV] Add more tests for D144166. NFC
Adding load and store tests. Addressing post commit feedback.
Added:
Modified:
llvm/test/MC/RISCV/rv32i-only-valid.s
Removed:
################################################################################
diff --git a/llvm/test/MC/RISCV/rv32i-only-valid.s b/llvm/test/MC/RISCV/rv32i-only-valid.s
index 1e95f52750b64..3f15659edf6e2 100644
--- a/llvm/test/MC/RISCV/rv32i-only-valid.s
+++ b/llvm/test/MC/RISCV/rv32i-only-valid.s
@@ -10,3 +10,9 @@ addi a0, a1, 4294967295 # 0xffffffff
# CHECK-ASM-AND-OBJ: ori a2, a3, -2048
# CHECK-ASM: encoding: [0x13,0xe6,0x06,0x80]
ori a2, a3, 0xfffff800
+# CHECK-ASM-AND-OBJ: lw a1, -1621(a2)
+# CHECK-ASM: encoding: [0x83,0x25,0xb6,0x9a]
+lw a1, 0xfffff9ab(a2)
+# CHECK-ASM-AND-OBJ: sw a1, -8(a2)
+# CHECK-ASM: encoding: [0x23,0x2c,0xb6,0xfe]
+sw a1, 0xfffffff8(a2)
More information about the llvm-commits
mailing list