Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / rv64dc-valid.s
blob97d36db35dd4b012ee1dd2fc726530bc6aedbbce
1 # RUN: llvm-mc %s -triple=riscv64 -mattr=+c,+d -riscv-no-aliases -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
3 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+c,+d < %s \
4 # RUN: | llvm-objdump --mattr=+c,+d -M no-aliases -d -r - \
5 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
6 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zcd,+d -riscv-no-aliases -show-encoding \
7 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
8 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+zcd,+d < %s \
9 # RUN: | llvm-objdump --mattr=+zcd,+d -M no-aliases -d -r - \
10 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
12 # RUN: not llvm-mc -triple riscv64 -mattr=+c \
13 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
14 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT-D %s
15 # RUN: not llvm-mc -triple riscv64 -mattr=+zcd \
16 # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \
17 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT-D %s
18 # RUN: not llvm-mc -triple riscv64 -riscv-no-aliases -show-encoding < %s 2>&1 \
19 # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT-DC %s
21 # CHECK-ASM-AND-OBJ: c.fldsp fs0, 504(sp)
22 # CHECK-ASM: encoding: [0x7e,0x34]
23 # CHECK-NO-EXT-D: error: instruction requires the following: 'D' (Double-Precision Floating-Point){{$}}
24 # CHECK-NO-EXT-DC: error: instruction requires the following: 'C' (Compressed Instructions) or 'Zcd' (Compressed Double-Precision Floating-Point Instructions), 'D' (Double-Precision Floating-Point){{$}}
25 c.fldsp fs0, 504(sp)
26 # CHECK-ASM-AND-OBJ: c.fsdsp fa7, 504(sp)
27 # CHECK-ASM: encoding: [0xc6,0xbf]
28 # CHECK-NO-EXT-D: error: instruction requires the following: 'D' (Double-Precision Floating-Point){{$}}
29 # CHECK-NO-EXT-DC: error: instruction requires the following: 'C' (Compressed Instructions) or 'Zcd' (Compressed Double-Precision Floating-Point Instructions), 'D' (Double-Precision Floating-Point){{$}}
30 c.fsdsp fa7, 504(sp)
32 # CHECK-ASM-AND-OBJ: c.fld fa3, 248(a5)
33 # CHECK-ASM: encoding: [0xf4,0x3f]
34 # CHECK-NO-EXT-D: error: instruction requires the following: 'D' (Double-Precision Floating-Point){{$}}
35 # CHECK-NO-EXT-DC: error: instruction requires the following: 'C' (Compressed Instructions) or 'Zcd' (Compressed Double-Precision Floating-Point Instructions), 'D' (Double-Precision Floating-Point){{$}}
36 c.fld fa3, 248(a5)
37 # CHECK-ASM-AND-OBJ: c.fsd fa2, 248(a1)
38 # CHECK-ASM: encoding: [0xf0,0xbd]
39 # CHECK-NO-EXT-D: error: instruction requires the following: 'D' (Double-Precision Floating-Point){{$}}
40 # CHECK-NO-EXT-DC: error: instruction requires the following: 'C' (Compressed Instructions) or 'Zcd' (Compressed Double-Precision Floating-Point Instructions), 'D' (Double-Precision Floating-Point){{$}}
41 c.fsd fa2, 248(a1)