diff options
author | Simon Cook <simon.cook@embecosm.com> | 2019-12-10 16:44:48 +0000 |
---|---|---|
committer | Simon Cook <simon.cook@embecosm.com> | 2019-12-10 16:44:48 +0000 |
commit | a6e50e40e6ddaaefff944dc97379b51af7687cae (patch) | |
tree | 1f9446dac22498e4cf2c6315eb42842d48efe7ec /llvm/test/MC/RISCV/rv32dc-valid.s | |
parent | 0be81968a283fd4161cb9ac9748d5ed200926292 (diff) | |
download | bcm5719-llvm-a6e50e40e6ddaaefff944dc97379b51af7687cae.tar.gz bcm5719-llvm-a6e50e40e6ddaaefff944dc97379b51af7687cae.zip |
[RISCV] Improve assembler missing feature warnings
This adds support for printing improved missing feature error messages
from the assembler, which now indicates which feature caused the parse
to fail.
Differential Revision: https://reviews.llvm.org/D69899
Diffstat (limited to 'llvm/test/MC/RISCV/rv32dc-valid.s')
-rw-r--r-- | llvm/test/MC/RISCV/rv32dc-valid.s | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/llvm/test/MC/RISCV/rv32dc-valid.s b/llvm/test/MC/RISCV/rv32dc-valid.s index 9e419f0ba82..dd5c234f357 100644 --- a/llvm/test/MC/RISCV/rv32dc-valid.s +++ b/llvm/test/MC/RISCV/rv32dc-valid.s @@ -6,24 +6,28 @@ # # RUN: not llvm-mc -triple riscv32 -mattr=+c \ # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \ -# RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s +# RUN: | FileCheck -check-prefixes=CHECK-NO-EXT-D %s # RUN: not llvm-mc -triple riscv32 -riscv-no-aliases -show-encoding < %s 2>&1 \ -# RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s +# RUN: | FileCheck -check-prefixes=CHECK-NO-EXT-DC %s # CHECK-ASM-AND-OBJ: c.fldsp fs0, 504(sp) # CHECK-ASM: encoding: [0x7e,0x34] -# CHECK-NO-EXT: error: instruction use requires an option to be enabled +# CHECK-NO-EXT-D: error: instruction requires the following: 'D' (Double-Precision Floating-Point) +# CHECK-NO-EXT-DC: error: instruction requires the following: 'C' (Compressed Instructions), 'D' (Double-Precision Floating-Point) c.fldsp fs0, 504(sp) # CHECK-ASM-AND-OBJ: c.fsdsp fa7, 504(sp) # CHECK-ASM: encoding: [0xc6,0xbf] -# CHECK-NO-EXT: error: instruction use requires an option to be enabled +# CHECK-NO-EXT-D: error: instruction requires the following: 'D' (Double-Precision Floating-Point) +# CHECK-NO-EXT-DC: error: instruction requires the following: 'C' (Compressed Instructions), 'D' (Double-Precision Floating-Point) c.fsdsp fa7, 504(sp) # CHECK-ASM-AND-OBJ: c.fld fa3, 248(a5) # CHECK-ASM: encoding: [0xf4,0x3f] -# CHECK-NO-EXT: error: instruction use requires an option to be enabled +# CHECK-NO-EXT-D: error: instruction requires the following: 'D' (Double-Precision Floating-Point) +# CHECK-NO-EXT-DC: error: instruction requires the following: 'C' (Compressed Instructions), 'D' (Double-Precision Floating-Point) c.fld fa3, 248(a5) # CHECK-ASM-AND-OBJ: c.fsd fa2, 248(a1) # CHECK-ASM: encoding: [0xf0,0xbd] -# CHECK-NO-EXT: error: instruction use requires an option to be enabled +# CHECK-NO-EXT-D: error: instruction requires the following: 'D' (Double-Precision Floating-Point) +# CHECK-NO-EXT-DC: error: instruction requires the following: 'C' (Compressed Instructions), 'D' (Double-Precision Floating-Point) c.fsd fa2, 248(a1) |