diff options
author | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2014-11-05 16:35:20 +0000 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2014-11-05 16:35:20 +0000 |
commit | 9c654830f7ed5d4a0f754abe8b117aa6155bea22 (patch) | |
tree | 36ba9147e8ade02f66297f027f1c9ca1dde64b0c /llvm/test/MC | |
parent | a87308c84c75984432fc2e501478f7456d6aef59 (diff) | |
download | bcm5719-llvm-9c654830f7ed5d4a0f754abe8b117aa6155bea22.tar.gz bcm5719-llvm-9c654830f7ed5d4a0f754abe8b117aa6155bea22.zip |
[mips][microMIPS] Mark symbols as microMIPS if necessary
Differential Revision: http://reviews.llvm.org/D6039
llvm-svn: 221355
Diffstat (limited to 'llvm/test/MC')
-rw-r--r-- | llvm/test/MC/Mips/micromips-label-test-sections.s | 35 | ||||
-rw-r--r-- | llvm/test/MC/Mips/micromips-label-test.s | 54 |
2 files changed, 89 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/micromips-label-test-sections.s b/llvm/test/MC/Mips/micromips-label-test-sections.s new file mode 100644 index 00000000000..569b64c6f98 --- /dev/null +++ b/llvm/test/MC/Mips/micromips-label-test-sections.s @@ -0,0 +1,35 @@ +# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \ +# RUN: -mattr=+micromips -filetype=obj -o - | llvm-readobj -t | FileCheck %s + .text + .set micromips +f: + nop +g: + .section .text +h: + nop + +# CHECK: Symbols [ +# CHECK: Symbol { +# CHECK: Name: f +# CHECK: Binding: Local +# CHECK: Type: None +# CHECK: Other: 128 +# CHECK: Section: .text +# CHECK: } +# CHECK: Symbol { +# CHECK: Name: g +# CHECK: Binding: Local +# CHECK: Type: None +# CHECK: Other: 0 +# CHECK: Section: .text +# CHECK: } +# CHECK: Symbol { +# CHECK: Name: h +# CHECK: Binding: Local +# CHECK: Type: None +# CHECK: Other: 128 +# CHECK: Section: .text +# CHECK: } +# CHECK: ] + diff --git a/llvm/test/MC/Mips/micromips-label-test.s b/llvm/test/MC/Mips/micromips-label-test.s new file mode 100644 index 00000000000..cc1566b9e67 --- /dev/null +++ b/llvm/test/MC/Mips/micromips-label-test.s @@ -0,0 +1,54 @@ +# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \ +# RUN: -mattr=+micromips -filetype=obj -o - | llvm-readobj -t | FileCheck %s + .text + .set nomicromips +f: + nop +g: + .set micromips + nop +h: + .word 0 +i: + nop +j: + .set nomicromips + nop +# CHECK: Symbols [ +# CHECK: Symbol { +# CHECK: Name: f +# CHECK: Binding: Local +# CHECK: Type: None +# CHECK: Other: 0 +# CHECK: Section: .text +# CHECK: } +# CHECK: Symbol { +# CHECK: Name: g +# CHECK: Binding: Local +# CHECK: Type: None +# CHECK: Other: 128 +# CHECK: Section: .text +# CHECK: } +# CHECK: Symbol { +# CHECK: Name: h +# CHECK: Binding: Local +# CHECK: Type: None +# CHECK: Other: 0 +# CHECK: Section: .text +# CHECK: } +# CHECK: Symbol { +# CHECK: Name: i +# CHECK: Binding: Local +# CHECK: Type: None +# CHECK: Other: 128 +# CHECK: Section: .text +# CHECK: } +# CHECK: Symbol { +# CHECK: Name: j +# CHECK: Binding: Local +# CHECK: Type: None +# CHECK: Other: 0 +# CHECK: Section: .text +# CHECK: } +# CHECK: ] + |