diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-03-26 13:40:29 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-03-26 13:40:29 +0000 |
commit | 0de31d52d53028a6890210728da23558899078fc (patch) | |
tree | 8159b685bcca2f004b9895fdcb3a2be8e46e7cf8 /test/MC/Mips/mips_directives_bad.s | |
parent | c4b058f9e7145765783fb741ea280acc4fea1f94 (diff) |
[mips] Add support for '.option pic2'.
The directive '.option pic2' enables PIC from assembly source.
At the moment none of the macros/directives check the PIC bit
but that's going to be fixed relatively soon. For example, the
expansion of macros like 'la' depend on the relocation model.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips/mips_directives_bad.s')
-rw-r--r-- | test/MC/Mips/mips_directives_bad.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/Mips/mips_directives_bad.s b/test/MC/Mips/mips_directives_bad.s index 7705eee55b0..c823cacf0cb 100644 --- a/test/MC/Mips/mips_directives_bad.s +++ b/test/MC/Mips/mips_directives_bad.s @@ -47,3 +47,13 @@ # CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token in .option pic0 directive # CHECK-NEXT: .option pic0 pic2 # CHECK-NEXT: ^ + + .option pic2, +# CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token in .option pic2 directive +# CHECK-NEXT: .option pic2, +# CHECK-NEXT: ^ + + .option pic2 pic3 +# CHECK-NEXT: :{{[0-9]+}}:{{[0-9]+}}: error: unexpected token in .option pic2 directive +# CHECK-NEXT: .option pic2 pic3 +# CHECK-NEXT: ^ |