[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / function-call-invalid.s
blob2b7a85245880d7f5a087ab0ef1071b842d90cc0a
1 # RUN: not llvm-mc -triple riscv32 < %s 2>&1 | FileCheck %s
3 call 1234 # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
4 call %pcrel_hi(1234) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
5 call %pcrel_lo(1234) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
6 call %pcrel_hi(foo) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
7 call %pcrel_lo(foo) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
8 call %hi(1234) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
9 call %lo(1234) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
10 call %hi(foo) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
11 call %lo(foo) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
12 call foo, bar # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name