Skip to content

Commit 909f04e

Browse files
committed
add tests for pesudo elw
1 parent 33baae6 commit 909f04e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# RUN: llvm-mc %s -triple=riscv32 --mattr=+xcvelw | FileCheck %s
2+
3+
# CHECK: .Lpcrel_hi0:
4+
# CHECK: auipc a2, %pcrel_hi(a_symbol)
5+
# CHECK: cv.elw a2, %pcrel_lo(.Lpcrel_hi0)(a2)
6+
cv.elw a2, a_symbol
7+
8+
# CHECK: .Lpcrel_hi1:
9+
# CHECK: auipc a3, %pcrel_hi(a_symbol)
10+
# CHECK: cv.elw a3, %pcrel_lo(.Lpcrel_hi1)(a3)
11+
cv.elw a3, a_symbol

0 commit comments

Comments
 (0)