Alex Bradbury | 59136ff | 2017-12-15 09:47:01 +0000 | [diff] [blame] | 1 | # RUN: llvm-mc %s -triple=riscv32 -mattr=+c,+d -riscv-no-aliases -show-encoding \ |
Alex Bradbury | 60714f9 | 2017-12-13 09:32:55 +0000 | [diff] [blame] | 2 | # RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s |
| 3 | # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+c,+d < %s \ |
Alex Bradbury | 59136ff | 2017-12-15 09:47:01 +0000 | [diff] [blame] | 4 | # RUN: | llvm-objdump -mattr=+c,+d -riscv-no-aliases -d - \ |
| 5 | # RUN: | FileCheck -check-prefix=CHECK-INST %s |
Ana Pazos | 1b57c7a | 2018-01-18 18:54:05 +0000 | [diff] [blame] | 6 | # RUN: not llvm-mc -triple riscv32 -mattr=+c\ |
| 7 | # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \ |
| 8 | # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s |
| 9 | # RUN: not llvm-mc -triple riscv32 \ |
| 10 | # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \ |
| 11 | # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s |
Alex Bradbury | 60714f9 | 2017-12-13 09:32:55 +0000 | [diff] [blame] | 12 | |
| 13 | # CHECK-INST: c.fldsp fs0, 504(sp) |
| 14 | # CHECK: encoding: [0x7e,0x34] |
Ana Pazos | 1b57c7a | 2018-01-18 18:54:05 +0000 | [diff] [blame] | 15 | # CHECK-NO-EXT: error: instruction use requires an option to be enabled |
Alex Bradbury | 60714f9 | 2017-12-13 09:32:55 +0000 | [diff] [blame] | 16 | c.fldsp fs0, 504(sp) |
| 17 | # CHECK-INST: c.fsdsp fa7, 504(sp) |
| 18 | # CHECK: encoding: [0xc6,0xbf] |
Ana Pazos | 1b57c7a | 2018-01-18 18:54:05 +0000 | [diff] [blame] | 19 | # CHECK-NO-EXT: error: instruction use requires an option to be enabled |
Alex Bradbury | 60714f9 | 2017-12-13 09:32:55 +0000 | [diff] [blame] | 20 | c.fsdsp fa7, 504(sp) |
| 21 | |
| 22 | # CHECK-INST: c.fld fa3, 248(a5) |
| 23 | # CHECK: encoding: [0xf4,0x3f] |
Ana Pazos | 1b57c7a | 2018-01-18 18:54:05 +0000 | [diff] [blame] | 24 | # CHECK-NO-EXT: error: instruction use requires an option to be enabled |
Alex Bradbury | 60714f9 | 2017-12-13 09:32:55 +0000 | [diff] [blame] | 25 | c.fld fa3, 248(a5) |
| 26 | # CHECK-INST: c.fsd fa2, 248(a1) |
| 27 | # CHECK: encoding: [0xf0,0xbd] |
Ana Pazos | 1b57c7a | 2018-01-18 18:54:05 +0000 | [diff] [blame] | 28 | # CHECK-NO-EXT: error: instruction use requires an option to be enabled |
Alex Bradbury | 60714f9 | 2017-12-13 09:32:55 +0000 | [diff] [blame] | 29 | c.fsd fa2, 248(a1) |