brintos

brintos / llvm-project-archived public Read only

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