mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
246602f2b6
The replacement doesn't work for llc, but it is needed by patchable-function-entry.ll. This reverts commit aa9a30b83a06e3e5e68e32ea645ec2d9edc27efc.
72 lines
2.1 KiB
ArmAsm
72 lines
2.1 KiB
ArmAsm
# RUN: llvm-mc %s -triple=riscv32 -riscv-no-aliases -mattr=+f -show-encoding \
|
|
# RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d --mattr=+f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-INST-ALIAS %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-INST-ALIAS-NO-F %s
|
|
#
|
|
# RUN: llvm-mc %s -triple=riscv64 -riscv-no-aliases -mattr=+f -show-encoding \
|
|
# RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d --mattr=+f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-INST-ALIAS %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-INST-ALIAS-NO-F %s
|
|
|
|
##################################
|
|
# User Floating Pont CSRs
|
|
##################################
|
|
|
|
# fflags
|
|
# name
|
|
# CHECK-INST: csrrs t1, fflags, zero
|
|
# CHECK-ENC: encoding: [0x73,0x23,0x10,0x00]
|
|
# CHECK-INST-ALIAS: frflags t1
|
|
# CHECK-INST-ALIAS-NO-F: csrr t1, fflags
|
|
# uimm12
|
|
# CHECK-INST: csrrs t2, fflags, zero
|
|
# CHECK-ENC: encoding: [0xf3,0x23,0x10,0x00]
|
|
# CHECK-INST-ALIAS: frflags t2
|
|
# CHECK-INST-ALIAS-NO-F: csrr t2, fflags
|
|
# name
|
|
csrrs t1, fflags, zero
|
|
# uimm12
|
|
csrrs t2, 0x001, zero
|
|
|
|
# frm
|
|
# name
|
|
# CHECK-INST: csrrs t1, frm, zero
|
|
# CHECK-ENC: encoding: [0x73,0x23,0x20,0x00]
|
|
# CHECK-INST-ALIAS: frrm t1
|
|
# CHECK-INST-ALIAS-NO-F: csrr t1, frm
|
|
# uimm12
|
|
# CHECK-INST: csrrs t2, frm, zero
|
|
# CHECK-ENC: encoding: [0xf3,0x23,0x20,0x00]
|
|
# CHECK-INST-ALIAS: frrm t2
|
|
# CHECK-INST-ALIAS-NO-F: csrr t2, frm
|
|
# name
|
|
csrrs t1, frm, zero
|
|
# uimm12
|
|
csrrs t2, 0x002, zero
|
|
|
|
# fcsr
|
|
# name
|
|
# CHECK-INST: csrrs t1, fcsr, zero
|
|
# CHECK-ENC: encoding: [0x73,0x23,0x30,0x00]
|
|
# CHECK-INST-ALIAS: frcsr t1
|
|
# CHECK-INST-ALIAS-NO-F: csrr t1, fcsr
|
|
# uimm12
|
|
# CHECK-INST: csrrs t2, fcsr, zero
|
|
# CHECK-ENC: encoding: [0xf3,0x23,0x30,0x00]
|
|
# CHECK-INST-ALIAS: frcsr t2
|
|
# CHECK-INST-ALIAS-NO-F: csrr t2, fcsr
|
|
# name
|
|
csrrs t1, fcsr, zero
|
|
# uimm12
|
|
csrrs t2, 0x003, zero
|
|
|
|
|