You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
580 B
16 lines
580 B
## Print an error if a non-immediate operand is used while an immediate is expected
|
|
# RUN: not llvm-mc -filetype=obj -triple=mips -o /dev/null %s 2>&1 | FileCheck %s
|
|
# RUN: not llvm-mc -filetype=obj -triple=mips64 -o /dev/null %s 2>&1 | FileCheck %s
|
|
|
|
# CHECK: [[#@LINE+1]]:16: error: expected an immediate
|
|
ori $4, $4, start
|
|
# CHECK: [[#@LINE+1]]:17: error: expected an immediate
|
|
ori $4, $4, (start - .)
|
|
|
|
# CHECK: [[#@LINE+1]]:18: error: expected an immediate
|
|
addiu $4, $4, start
|
|
# CHECK: [[#@LINE+1]]:19: error: expected an immediate
|
|
addiu $4, $4, (start - .)
|
|
|
|
start:
|