diff options
author | Nirav Dave <niravd@google.com> | 2016-05-05 14:15:46 +0000 |
---|---|---|
committer | Nirav Dave <niravd@google.com> | 2016-05-05 14:15:46 +0000 |
commit | 996fc133b7daad2936e2fc628d3065ab8c9a2192 (patch) | |
tree | b5b9bf7bc701fd18fe39076d1dd2b09e5b067dab /llvm/test | |
parent | f8cbd6591f8453ae2c015cbfffb66a1509ec3f32 (diff) | |
download | bcm5719-llvm-996fc133b7daad2936e2fc628d3065ab8c9a2192.tar.gz bcm5719-llvm-996fc133b7daad2936e2fc628d3065ab8c9a2192.zip |
Fix Mips Parser error reporting
[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
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/Mips/set-push-pop-directives-bad.s | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/test/MC/Mips/set-push-pop-directives-bad.s b/llvm/test/MC/Mips/set-push-pop-directives-bad.s index 8994eea1c8b..9e259e0f3f4 100644 --- a/llvm/test/MC/Mips/set-push-pop-directives-bad.s +++ b/llvm/test/MC/Mips/set-push-pop-directives-bad.s @@ -1,23 +1,30 @@ # 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]]: |