diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-15 03:07:12 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-15 03:07:12 +0000 |
commit | f6cb056e416b0f424244a4ec199870264b33a2c7 (patch) | |
tree | 3c0ad8005dc791e7e6bad0151d14a64a4d44df75 /test/MC/Mips/elf_st_other.s | |
parent | 268226b9f36a4b6db39cbf1106a91fc799ce95d1 (diff) | |
download | llvm-f6cb056e416b0f424244a4ec199870264b33a2c7.tar.gz llvm-f6cb056e416b0f424244a4ec199870264b33a2c7.tar.bz2 llvm-f6cb056e416b0f424244a4ec199870264b33a2c7.tar.xz |
Only mark functions as micromips.
The GNU as behavior is a bit different and very strange. It will mark any
label that contains an instruction. We can implement that, but using the
type looks more natural since gas will not mark a function if a .word is
used to output the instructions!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips/elf_st_other.s')
-rw-r--r-- | test/MC/Mips/elf_st_other.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/Mips/elf_st_other.s b/test/MC/Mips/elf_st_other.s index eb685c3760..579707b6be 100644 --- a/test/MC/Mips/elf_st_other.s +++ b/test/MC/Mips/elf_st_other.s @@ -2,15 +2,24 @@ .globl f1 +.type f1, @function .set micromips f1: nop +.globl d1 +.type d1, @object +d1: +.word 42 + .globl f2 +.type f2, @function .set nomicromips f2: nop +// CHECK-LABEL: Name: d1 +// CHECK: Other: 0 // CHECK-LABEL: Name: f1 // CHECK: Other: 128 // CHECK-LABEL: Name: f2 |