brintos

brintos / llvm-project-archived public Read only

0
0
Text · 847 B · e51c649 Raw
16 lines · plain
1# RUN: not llvm-mc -triple riscv64 -mattr=+zfh < %s 2>&1 | \2# RUN:   FileCheck %s3 4# Out of range immediates5## simm126flh ft1, -2049(a0) # CHECK: :[[@LINE]]:10: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]7fsh ft2, 2048(a1) # CHECK: :[[@LINE]]:10: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]8 9# Integer registers where FP regs are expected10fcvt.l.h ft0, a0 # CHECK: :[[@LINE]]:10: error: invalid operand for instruction11fcvt.lu.h ft1, a1 # CHECK: :[[@LINE]]:11: error: invalid operand for instruction12 13# FP registers where integer regs are expected14fcvt.h.l a2, ft2 # CHECK: :[[@LINE]]:10: error: invalid operand for instruction15fcvt.h.lu a3, ft3 # CHECK: :[[@LINE]]:11: error: invalid operand for instruction16