2017-12-12 23:46:15 +08:00
|
|
|
# RUN: not llvm-mc %s -triple=riscv32 -riscv-no-aliases 2>&1 | FileCheck %s
|
2017-12-15 17:47:01 +08:00
|
|
|
# RUN: not llvm-mc %s -triple=riscv32 2>&1 | FileCheck %s
|
2017-12-12 23:46:15 +08:00
|
|
|
|
|
|
|
# TODO ld
|
|
|
|
# TODO sd
|
|
|
|
|
2018-06-07 23:35:47 +08:00
|
|
|
li x0, 4294967296 # CHECK: :[[@LINE]]:8: error: immediate must be an integer in the range [-2147483648, 4294967295]
|
|
|
|
li x0, -2147483649 # CHECK: :[[@LINE]]:8: error: immediate must be an integer in the range [-2147483648, 4294967295]
|
|
|
|
li t4, foo # CHECK: :[[@LINE]]:8: error: immediate must be an integer in the range [-2147483648, 4294967295]
|
|
|
|
|
2017-12-12 23:46:15 +08:00
|
|
|
negw x1, x2 # CHECK: :[[@LINE]]:1: error: instruction use requires an option to be enabled
|
|
|
|
sext.w x3, x4 # CHECK: :[[@LINE]]:1: error: instruction use requires an option to be enabled
|
2018-06-07 23:35:47 +08:00
|
|
|
|
|
|
|
foo:
|
|
|
|
.space 4
|