[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / RISCV / rvzfh-pseudos.s
blob0506c9e468b56d2bb66017623e6a731dfd3228e0
1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-zfh | FileCheck %s
2 # RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zfh | FileCheck %s
4 # CHECK: .Lpcrel_hi0:
5 # CHECK: auipc a2, %pcrel_hi(a_symbol)
6 # CHECK: flh fa2, %pcrel_lo(.Lpcrel_hi0)(a2)
7 flh fa2, a_symbol, a2
9 # CHECK: .Lpcrel_hi1:
10 # CHECK: auipc a3, %pcrel_hi(a_symbol)
11 # CHECK: fsh fa2, %pcrel_lo(.Lpcrel_hi1)(a3)
12 fsh fa2, a_symbol, a3