2 # RUN: rm -rf %t && split-file %s %t && cd %t
3 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+c,+relax a.s -o a.o
4 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=-c,+relax b.s -o b.o
6 # RUN: ld.lld a.o b.o --shared -o a -Ttext=0x10000
7 # RUN: llvm-objdump -d --no-show-raw-insn -M no-aliases a | FileCheck %s
9 ## This needs to be a *uncompressed* jal instruction since it came from the
10 ## source file which does not enable C
12 # CHECK-NEXT: 10000: jal zero, {{.*}} <foo>
13 # CHECK-NEXT: 10004: sub zero, zero, zero
19 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
25 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_zicsr2p0_zifencei2p0"
30 # Pick a non-canonical nop to ensure test output can't be confused
31 # with riscv_align padding