1 # RUN: llvm-mc -triple riscv64 -mattr +c,-relax -filetype obj -o - %s | llvm-objdump -d - | FileCheck %s -check-prefix CHECK-RVC-NORELAX
2 # RUN: llvm-mc -triple riscv64 -mattr +c,+relax -filetype obj -o - %s | llvm-objdump -d - | FileCheck %s -check-prefix CHECK-RVC-RELAX
3 # RUN: llvm-mc -triple riscv64 -mattr -c,-relax -filetype obj -o - %s | llvm-objdump -d - | FileCheck %s
4 # RUN: llvm-mc -triple riscv64 -mattr -c,+relax -filetype obj -o - %s | llvm-objdump -d - | FileCheck %s
12 # CHECK-RVC-NORELAX: 0000000000000000 <.text>:
13 # CHECK-RVC-NORELAX-NEXT: 0: 00 00 unimp
14 # CHECK-RVC-NORELAX-NEXT: 2: 01 00 nop
15 # CHECK-RVC-NORELAX-NEXT: 4: 17 05 00 00 auipc a0, 0
17 # CHECK-RVC-RELAX: 0000000000000000 <.text>:
18 # CHECK-RVC-RELAX-NEXT: 0: 01 00 nop
19 # CHECK-RVC-RELAX-NEXT: 2: 00 01 addi s0, sp, 128
20 # CHECK-RVC-RELAX-NEXT: 4: 00 17 addi s0, sp, 928
21 # CHECK-RVC-RELAX-NEXT: 6: 05 00 c.nop 1
22 # CHECK-RVC-RELAX-NEXT: 8: 00 <unknown>
24 # CHECK: 0000000000000000 <.text>:
25 # CHECK-NEXT: 0: 00 00 <unknown>
26 # CHECK-NEXT: 2: 00 00 <unknown>
27 # CHECK-NEXT: 4: 17 05 00 00 auipc a0, 0