mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
39e5617bc0
Support "Zfh" extension according to https://github.com/riscv/riscv-isa-manual/blob/zfh/src/zfh.tex Differential Revision: https://reviews.llvm.org/D90738
13 lines
408 B
ArmAsm
13 lines
408 B
ArmAsm
# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-zfh | FileCheck %s
|
|
# RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zfh | FileCheck %s
|
|
|
|
# CHECK: .Lpcrel_hi0:
|
|
# CHECK: auipc a2, %pcrel_hi(a_symbol)
|
|
# CHECK: flh fa2, %pcrel_lo(.Lpcrel_hi0)(a2)
|
|
flh fa2, a_symbol, a2
|
|
|
|
# CHECK: .Lpcrel_hi1:
|
|
# CHECK: auipc a3, %pcrel_hi(a_symbol)
|
|
# CHECK: fsh fa2, %pcrel_lo(.Lpcrel_hi1)(a3)
|
|
fsh fa2, a_symbol, a3
|