2014-07-08 16:59:22 +08:00
|
|
|
# RUN: not llvm-mc -triple mips-unknown-unknown %s 2>&1 | FileCheck %s
|
2015-01-23 18:40:19 +08:00
|
|
|
|
|
|
|
# Error checking for malformed .module directives (and .set fp=...).
|
|
|
|
|
2014-07-08 16:59:22 +08:00
|
|
|
.module fp=3
|
2015-01-23 18:40:19 +08:00
|
|
|
# CHECK: :[[@LINE-1]]:17: error: unsupported value, expected 'xx', '32' or '64'
|
|
|
|
# CHECK-NEXT: .module fp=3
|
|
|
|
# CHECK-NEXT: ^
|
2014-07-08 16:59:22 +08:00
|
|
|
|
2015-01-23 18:40:19 +08:00
|
|
|
# FIXME: Add separate test for .set fp=xx/32/64.
|
2014-07-08 16:59:22 +08:00
|
|
|
.set fp=xx,6
|
2015-01-23 18:40:19 +08:00
|
|
|
# CHECK: :[[@LINE-1]]:15: error: unexpected token, expected end of statement
|
|
|
|
# CHECK-NEXT: .set fp=xx,6
|
|
|
|
# CHECK-NEXT: ^
|
|
|
|
|
|
|
|
.module
|
|
|
|
# CHECK: :[[@LINE-1]]:12: error: expected .module option identifier
|
|
|
|
# CHECK-NEXT: .module
|
|
|
|
# CHECK-NEXT: ^
|
|
|
|
|
|
|
|
.module 34
|
|
|
|
# CHECK: :[[@LINE-1]]:13: error: expected .module option identifier
|
|
|
|
# CHECK-NEXT: .module 34
|
|
|
|
# CHECK-NEXT: ^
|