diff options
author | Vladimir Medic <Vladimir.Medic@imgtec.com> | 2014-07-08 08:59:22 +0000 |
---|---|---|
committer | Vladimir Medic <Vladimir.Medic@imgtec.com> | 2014-07-08 08:59:22 +0000 |
commit | ffbc2a132503f5992d7d5f62562bfb1b7b78ea8a (patch) | |
tree | 5913e1bd88c3dcbcd9614bf5edb9b9913ee2c245 /test/MC/Mips/mips-abi-bad.s | |
parent | 25b7d54e7ff322f5fc2bc1f356d554f0ee4b4be6 (diff) |
Mips.abiflags is a new implicitly generated section that will be present on all new modules. The section contains a versioned data structure which represents essentially information to allow a program loader to determine the requirements of the application. This patch implements mips.abiflags section and provides test cases for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips/mips-abi-bad.s')
-rw-r--r-- | test/MC/Mips/mips-abi-bad.s | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/MC/Mips/mips-abi-bad.s b/test/MC/Mips/mips-abi-bad.s new file mode 100644 index 000000000000..c4653cfee642 --- /dev/null +++ b/test/MC/Mips/mips-abi-bad.s @@ -0,0 +1,20 @@ +# Error checking for malformed abi related directives +# RUN: not llvm-mc -triple mips-unknown-unknown %s 2>&1 | FileCheck %s +# CHECK: .text + .module fp=3 +# CHECK : mips-abi-bad.s:4:16: error: unsupported option +# CHECK-NEXT : .module fp=3 +# CHECK-NEXT : ^ + + .set fp=xx,6 +# CHECK :mips-abi-bad.s:5:15: error: unexpected token in statement +# CHECK-NEXT : .set fp=xx,6 +# CHECK-NEXT : ^ + +# CHECK :.set mips16 + .set mips16 + .module fp=32 + +# CHECK :mips-abi-bad.s:14:13: error: .module directive must come before any code +# CHECK-NEXT : .module fp=32 +# CHECK-NEXT : ^ |