mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
0b39f93ebd
Summary: This change allows checking for ISA extensions in print methods. Reviewers: asb, niosHD Reviewed By: asb, niosHD Subscribers: llvm-commits, niosHD, asb, rbar, johnrusso, simoncook, jordy.potman.lists, sabuasal Differential Revision: https://reviews.llvm.org/D41503 llvm-svn: 322345
118 lines
3.7 KiB
ArmAsm
118 lines
3.7 KiB
ArmAsm
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=+f -riscv-no-aliases - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-INST %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=+f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=+f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-EXT-F %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=+f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-EXT-F %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=-f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-EXT-F-OFF %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=-f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-EXT-F-OFF %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=+f -riscv-no-aliases - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-INST %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=+f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-ALIAS %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=+f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-EXT-F %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=-f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=+f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-EXT-F %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=-f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=-f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-EXT-F-OFF %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+f < %s \
|
|
# RUN: | llvm-objdump -d -mattr=-f - \
|
|
# RUN: | FileCheck -check-prefix=CHECK-EXT-F-OFF %s
|
|
|
|
|
|
# CHECK-INST: csrrs t0, 3, zero
|
|
# CHECK-ALIAS: frcsr t0
|
|
# CHECK-EXT-F: frcsr t0
|
|
# CHECK-EXT-F-OFF: csrr t0, 3
|
|
csrrs t0, 3, zero
|
|
|
|
# CHECK-INST: csrrw t1, 3, t2
|
|
# CHECK-ALIAS: fscsr t1, t2
|
|
# CHECK-EXT-F-ON: fscsr t1, t2
|
|
# CHECK-EXT-F-OFF: csrrw t1, 3, t2
|
|
csrrw t1, 3, t2
|
|
|
|
# CHECK-INST: csrrw zero, 3, t2
|
|
# CHECK-ALIAS: fscsr t2
|
|
# CHECK-EXT-F-ON: fscsr t2
|
|
# CHECK-EXT-F-OFF: csrw 3, t2
|
|
csrrw zero, 3, t2
|
|
|
|
# CHECK-INST: csrrw zero, 3, t2
|
|
# CHECK-ALIAS: fscsr t2
|
|
# CHECK-EXT-F-ON: fscsr t2
|
|
# CHECK-EXT-F-OFF: csrw 3, t2
|
|
csrrw zero, 3, t2
|
|
|
|
# CHECK-INST: csrrw t0, 2, zero
|
|
# CHECK-ALIAS: fsrm t0, zero
|
|
# CHECK-EXT-F-ON: fsrm t0, zero
|
|
# CHECK-EXT-F-OFF: csrrw t0, 2, zero
|
|
csrrw t0, 2, zero
|
|
|
|
# CHECK-INST: csrrw t0, 2, t1
|
|
# CHECK-ALIAS: fsrm t0, t1
|
|
# CHECK-EXT-F-ON: fsrm t0, t1
|
|
# CHECK-EXT-F-OFF: csrrw t0, 2, t1
|
|
csrrw t0, 2, t1
|
|
|
|
# CHECK-INST: csrrwi t0, 2, 31
|
|
# CHECK-ALIAS: fsrmi t0, 31
|
|
# CHECK-EXT-F-ON: fsrmi t0, 31
|
|
# CHECK-EXT-F-OFF: csrrwi t0, 2, 31
|
|
csrrwi t0, 2, 31
|
|
|
|
# CHECK-INST: csrrwi zero, 2, 31
|
|
# CHECK-ALIAS: fsrmi 31
|
|
# CHECK-EXT-F-ON: fsrmi 31
|
|
# CHECK-EXT-F-OFF: csrwi 2, 31
|
|
csrrwi zero, 2, 31
|
|
|
|
# CHECK-INST: csrrs t0, 1, zero
|
|
# CHECK-ALIAS: frflags t0
|
|
# CHECK-EXT-F-ON: frflags t0
|
|
# CHECK-EXT-F-OFF: csrr t0, 1
|
|
csrrs t0, 1, zero
|
|
|
|
# CHECK-INST: csrrw t0, 1, t2
|
|
# CHECK-ALIAS: fsflags t0, t2
|
|
# CHECK-EXT-F-ON: fsflags t0, t2
|
|
# CHECK-EXT-F-OFF: csrrw t0, 1, t2
|
|
csrrw t0, 1, t2
|
|
|
|
# CHECK-INST: csrrw zero, 1, t2
|
|
# CHECK-ALIAS: fsflags t2
|
|
# CHECK-EXT-F-ON: fsflags t2
|
|
# CHECK-EXT-F-OFF: csrw 1, t2
|
|
csrrw zero, 1, t2
|
|
|
|
# CHECK-INST: csrrwi t0, 1, 31
|
|
# CHECK-ALIAS: fsflagsi t0, 31
|
|
# CHECK-EXT-F: fsflagsi t0, 31
|
|
# CHECK-EXT-F-OFF: csrrwi t0, 1, 31
|
|
csrrwi t0, 1, 31
|
|
|
|
# CHECK-INST: csrrwi zero, 1, 31
|
|
# CHECK-ALIAS: fsflagsi 31
|
|
# CHECK-EXT-F: fsflagsi 31
|
|
# CHECK-EXT-F-OFF: csrwi 1, 31
|
|
csrrwi zero, 1, 31
|
|
|