[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Mips / imm-operand-err.s
blob8ded4a21b480701fa6824c8f40d6eb69c7d74362
1 ## Print an error if a non-immediate operand is used while an immediate is expected
2 # RUN: not llvm-mc -filetype=obj -triple=mips -o /dev/null %s 2>&1 | FileCheck %s
3 # RUN: not llvm-mc -filetype=obj -triple=mips64 -o /dev/null %s 2>&1 | FileCheck %s
5 # CHECK: [[#@LINE+1]]:16: error: expected an immediate
6 ori $4, $4, start
7 # CHECK: [[#@LINE+1]]:17: error: expected an immediate
8 ori $4, $4, (start - .)
10 # CHECK: [[#@LINE+1]]:18: error: expected an immediate
11 addiu $4, $4, start
12 # CHECK: [[#@LINE+1]]:19: error: expected an immediate
13 addiu $4, $4, (start - .)
15 start: