2017-12-12 23:46:15 +08:00
|
|
|
# RUN: llvm-mc %s -triple=riscv32 -riscv-no-aliases \
|
2018-04-19 03:02:31 +08:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK-INST %s
|
2017-12-15 17:47:01 +08:00
|
|
|
# RUN: llvm-mc %s -triple=riscv32 \
|
2018-04-19 03:02:31 +08:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK-ALIAS %s
|
2017-12-12 23:46:15 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
|
2017-12-15 17:47:01 +08:00
|
|
|
# RUN: | llvm-objdump -riscv-no-aliases -d - \
|
2018-04-19 03:02:31 +08:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK-INST %s
|
2017-12-12 23:46:15 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
|
2017-12-15 17:47:01 +08:00
|
|
|
# RUN: | llvm-objdump -d - \
|
2018-04-19 03:02:31 +08:00
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK-ALIAS %s
|
2017-12-12 23:46:15 +08:00
|
|
|
|
|
|
|
# CHECK-INST: csrrs t4, 3202, zero
|
|
|
|
# CHECK-ALIAS: rdinstreth t4
|
|
|
|
rdinstreth x29
|
|
|
|
# CHECK-INST: csrrs s11, 3200, zero
|
|
|
|
# CHECK-ALIAS: rdcycleh s11
|
|
|
|
rdcycleh x27
|
|
|
|
# CHECK-INST: csrrs t3, 3201, zero
|
|
|
|
# CHECK-ALIAS: rdtimeh t3
|
|
|
|
rdtimeh x28
|