summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips/micromips64r6/invalid-wrong-error.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/Mips/micromips64r6/invalid-wrong-error.s')
-rw-r--r--llvm/test/MC/Mips/micromips64r6/invalid-wrong-error.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/micromips64r6/invalid-wrong-error.s b/llvm/test/MC/Mips/micromips64r6/invalid-wrong-error.s
index 90ded86f58a..ac3f160a79a 100644
--- a/llvm/test/MC/Mips/micromips64r6/invalid-wrong-error.s
+++ b/llvm/test/MC/Mips/micromips64r6/invalid-wrong-error.s
@@ -3,6 +3,14 @@
# RUN: FileCheck %s < %t1
+ # The LLD instruction with invalid memory operand should emit "expected memory with 12-bit signed offset".
+ lld $31, 4096($31) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
+ lld $31, 2048($31) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
+ lld $31, -2049($31) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
+ # The LWU instruction with invalid memory operand should emit "expected memory with 12-bit signed offset".
+ lwu $31, 4096($31) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
+ lwu $31, 2048($31) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
+ lwu $31, -2049($31) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
# The 10-bit immediate supported by the standard encodings cause us to emit
# the diagnostic for the 10-bit form. This isn't exactly wrong but it is
# misleading. Ideally, we'd emit every way to achieve a valid match instead
OpenPOWER on IntegriCloud