[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / register-token-source-loc.s
blobafb6ba0c61a39eb1fa204f93aabe808749fd1b61
1 // RUN: not llvm-mc -triple armv6m--none-eabi < %s 2>&1 | FileCheck %s
2 add sp, r0, #4
3 // CHECK: error: invalid instruction, any one of the following would fix this:
4 // CHECK-NEXT: add sp, r0, #4
5 // CHECK-NEXT: ^
6 // CHECK-NEXT: note: operand must be a register sp
7 // CHECK-NEXT: add sp, r0, #4
8 // CHECK-NEXT: ^
9 // CHECK-NEXT: note: too many operands for instruction
10 // CHECK-NEXT: add sp, r0, #4
11 // CHECK-NEXT: ^