mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
ed0981bcb7
[mips] On error, ParseDirective should always return false to signify that the directive was understood. Reviewers: dsanders, vkalintiris, sdardis Subscribers: dsanders, llvm-commits, sdardis Differential Revision: http://reviews.llvm.org/D19929 llvm-svn: 268630
31 lines
1021 B
ArmAsm
31 lines
1021 B
ArmAsm
# RUN: not llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 2>%t1
|
|
# RUN: FileCheck %s < %t1
|
|
|
|
# Check only one error per statement.
|
|
|
|
.text
|
|
.set pop
|
|
# CHECK: :[[@LINE-1]]:14: error: .set pop with no .set push
|
|
# CHECK-NOT: :[[@LINE-1]]:
|
|
.set push
|
|
.set pop
|
|
.set pop
|
|
# CHECK: :[[@LINE-1]]:14: error: .set pop with no .set push
|
|
# CHECK-NOT: :[[@LINE-1]]:
|
|
.set push foo
|
|
# CHECK: :[[@LINE-1]]:19: error: unexpected token, expected end of statement
|
|
# CHECK-NOT: :[[@LINE-1]]:
|
|
.set pop bar
|
|
# CHECK: :[[@LINE-1]]:18: error: unexpected token, expected end of statement
|
|
# CHECK-NOT: :[[@LINE-1]]:
|
|
.set hardfloat
|
|
.set push
|
|
.set softfloat
|
|
add.s $f2, $f2, $f2
|
|
# CHECK: :[[@LINE-1]]:9: error: instruction requires a CPU feature not currently enabled
|
|
# CHECK-NOT: :[[@LINE-1]]:
|
|
.set pop
|
|
add.s $f2, $f2, $f2
|
|
# CHECK-NOT: :[[@LINE-1]]:9: error: instruction requires a CPU feature not currently enabled
|
|
# CHECK-NOT: :[[@LINE-1]]:
|