1 ## Test .attribute effects.
2 ## We do not provide '-mattr=' and '.option rvc' and enable extensions through
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)
18 # CHECK-INST: c.addi a3, -0x20
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
30 # CHECK-INST: mul a4, ra, s0
33 # CHECK-INST: addw a2, a3, a4