[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / llvm / test / MC / CSKY / fpuv3.s
bloba084aa6d2c73e6991165b4d80c2152c99ed4c9be
1 # RUN: llvm-mc %s -triple=csky -show-encoding -csky-no-aliases -mattr=+fpuv3_sf,+fpuv3_df \
2 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
3 # RUN: llvm-mc -filetype=obj -triple=csky -mattr=+fpuv3_sf,+fpuv3_df < %s \
4 # RUN: | llvm-objdump --mattr=+fpuv3_sf,+fpuv3_df -M no-aliases -M abi-names -d -r - \
5 # RUN: | FileCheck -check-prefixes=CHECK-ASM-AND-OBJ %s
7 # CHECK-ASM-AND-OBJ: fldm.32 vr1-vr2, (a1)
8 # CHECK-ASM: encoding: [0x21,0xf4,0x01,0x30]
9 fldm.32 vr1-vr2, (a1)
11 # CHECK-ASM-AND-OBJ: fldm.64 vr1-vr2, (a1)
12 # CHECK-ASM: encoding: [0x21,0xf4,0x01,0x31]
13 fldm.64 vr1-vr2, (a1)
15 # CHECK-ASM-AND-OBJ: fstm.32 vr1-vr2, (a1)
16 # CHECK-ASM: encoding: [0x21,0xf4,0x01,0x34]
17 fstm.32 vr1-vr2, (a1)
19 # CHECK-ASM-AND-OBJ: fstm.64 vr1-vr2, (a1)
20 # CHECK-ASM: encoding: [0x21,0xf4,0x01,0x35]
21 fstm.64 vr1-vr2, (a1)
23 # RUN: not llvm-mc -triple csky -mattr=+fpuv3_sf -mattr=+fpuv3_df --defsym=ERR=1 < %s 2>&1 | FileCheck %s
25 .ifdef ERR
26 fstm.32 vr1-vr33, (a1) # CHECK: :[[#@LINE]]:14: error: invalid register
27 fstm.64 vr1-vr33, (a1) # CHECK: :[[#@LINE]]:14: error: invalid register
28 fldm.32 vr1-vr33, (a1) # CHECK: :[[#@LINE]]:14: error: invalid register
29 fldm.64 vr1-vr33, (a1) # CHECK: :[[#@LINE]]:14: error: invalid register
30 .endif