[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / reloc-addend.s
blob96e7c51e83b2838bfa93d40d6d56adef9220fef0
1 # RUN: llvm-mc -triple riscv64 -filetype obj -o - %s | llvm-readobj -r - | FileCheck %s
3 .section __jump_table,"aw",@progbits
4 .p2align 3
5 .Ltmp0:
6 .quad (function+128)-.Ltmp0
8 # CHECK: .rela__jump_table {
9 # CHECK: 0x0 R_RISCV_ADD64 function 0x80
10 # CHECK-NEXT: 0x0 R_RISCV_SUB64 .Ltmp0 0x0
11 # CHECK: }