2017-12-12 23:46:15 +08:00
|
|
|
# RUN: not llvm-mc %s -triple=riscv64 -riscv-no-aliases 2>&1 | FileCheck %s
|
2017-12-15 17:47:01 +08:00
|
|
|
# RUN: not llvm-mc %s -triple=riscv64 2>&1 | FileCheck %s
|
2017-12-12 23:46:15 +08:00
|
|
|
|
2018-06-07 23:35:47 +08:00
|
|
|
li t5, 0x10000000000000000 # CHECK: :[[@LINE]]:8: error: unknown operand
|
|
|
|
li t4, foo # CHECK: :[[@LINE]]:8: error: operand must be a constant 64-bit integer
|
|
|
|
|
2017-12-12 23:46:15 +08:00
|
|
|
rdinstreth x29 # CHECK: :[[@LINE]]:1: error: instruction use requires an option to be enabled
|
|
|
|
rdcycleh x27 # CHECK: :[[@LINE]]:1: error: instruction use requires an option to be enabled
|
|
|
|
rdtimeh x28 # CHECK: :[[@LINE]]:1: error: instruction use requires an option to be enabled
|
2018-06-07 23:35:47 +08:00
|
|
|
|
|
|
|
foo:
|
|
|
|
.space 8
|