[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / llvm / test / MC / RISCV / attribute-with-insts.s
blobfad37396c10bac74b0ff094c4c83aa009f4f0a4c
1 ## Test .attribute effects.
2 ## We do not provide '-mattr=' and '.option rvc' and enable extensions through
3 ## '.attribute arch'.
5 # RUN: llvm-mc -triple riscv32 -filetype=obj %s \
6 # RUN: | llvm-objdump --triple=riscv32 -d -M no-aliases - \
7 # RUN: | FileCheck -check-prefix=CHECK-INST %s
9 # RUN: llvm-mc -triple riscv64 -filetype=obj %s \
10 # RUN: | llvm-objdump --triple=riscv64 -d -M no-aliases - \
11 # RUN: | FileCheck -check-prefix=CHECK-INST %s
13 .attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0"
15 # CHECK-INST: lr.w t0, (t1)
16 lr.w t0, (t1)
18 # CHECK-INST: c.addi a3, -0x20
19 c.addi a3, -32
21 # CHECK-INST: fmadd.d fa0, fa1, fa2, fa3, dyn
22 fmadd.d f10, f11, f12, f13, dyn
24 # CHECK-INST: fmadd.s fa0, fa1, fa2, fa3, dyn
25 fmadd.s f10, f11, f12, f13, dyn
27 # CHECK-INST: addi ra, sp, 0x2
28 addi ra, sp, 2
30 # CHECK-INST: mul a4, ra, s0
31 mul a4, ra, s0
33 # CHECK-INST: addw a2, a3, a4
34 addw a2, a3, a4