brintos

brintos / llvm-project-archived public Read only

0
0
Text · 924 B · a780a9f Raw
20 lines · plain
1# RUN: llvm-mc %s -triple=riscv32 -mattr=+zfa,+d,+zfh -M no-aliases -show-encoding \2# RUN:     | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s3# RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+zfa,+d,+zfh < %s \4# RUN:     | llvm-objdump --mattr=+zfa,+d,+zfh -M no-aliases -d -r - \5# RUN:     | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s6#7# RUN: not llvm-mc -triple riscv32 -mattr=+d,+zfh \8# RUN:     -M no-aliases -show-encoding < %s 2>&1 \9# RUN:     | FileCheck -check-prefixes=CHECK-NO-EXT %s10 11# CHECK-ASM-AND-OBJ: fmvh.x.d a1, fs112# CHECK-ASM: encoding: [0xd3,0x85,0x14,0xe2]13# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}}14fmvh.x.d a1, fs115 16# CHECK-ASM-AND-OBJ: fmvp.d.x fs1, a1, a217# CHECK-ASM: encoding: [0xd3,0x84,0xc5,0xb2]18# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}}19fmvp.d.x fs1, a1, a220