brintos

brintos / llvm-project-archived public Read only

0
0
Text · 918 B · 3e48378 Raw
14 lines · plain
1# Instructions that are correctly rejected but emit a wrong or misleading error.2# RUN: not llvm-mc %s -triple=mips -show-encoding -mattr=micromips 2>%t13# RUN: FileCheck %s < %t14 5  # The 20-bit immediate supported by the standard encodings cause us to emit6  # the diagnostic for the 20-bit form. This isn't exactly wrong but it is7  # misleading. Ideally, we'd emit every way to achieve a valid match instead8  # of picking only one.9  sdbbp -1            # CHECK: :[[@LINE]]:9: error: expected 10-bit unsigned immediate10  sdbbp 1024          # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled11  syscall -1          # CHECK: :[[@LINE]]:11: error: expected 10-bit unsigned immediate12  syscall $4          # CHECK: :[[@LINE]]:11: error: expected 10-bit unsigned immediate13  syscall 1024        # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled14