diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-14 04:25:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-14 04:25:13 +0000 |
commit | 3c733ea0649665b81947de596d410a5c4f42f5f4 (patch) | |
tree | 5ca3a0eb19cf878d00fbd4cb086834685b00a4be /test/MC/Mips | |
parent | dfa550a1761a85417d0e42c8cd17cd08e753388b (diff) | |
download | llvm-3c733ea0649665b81947de596d410a5c4f42f5f4.tar.gz llvm-3c733ea0649665b81947de596d410a5c4f42f5f4.tar.bz2 llvm-3c733ea0649665b81947de596d410a5c4f42f5f4.tar.xz |
Replace .mips_hack_stocg with ".set micromips" and ".set nomicromips".
This matches what gnu as does and implementing this is easier than arguing
about it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips')
-rw-r--r-- | test/MC/Mips/elf_st_other.ll | 3 | ||||
-rw-r--r-- | test/MC/Mips/elf_st_other.s | 26 |
2 files changed, 17 insertions, 12 deletions
diff --git a/test/MC/Mips/elf_st_other.ll b/test/MC/Mips/elf_st_other.ll index 31294c88f8..68cad48ffd 100644 --- a/test/MC/Mips/elf_st_other.ll +++ b/test/MC/Mips/elf_st_other.ll @@ -8,4 +8,5 @@ entry: ret i32 0 } -; CHECK: .mips_hack_stocg main, 128 +; CHECK: .set micromips +; CHECK: main: diff --git a/test/MC/Mips/elf_st_other.s b/test/MC/Mips/elf_st_other.s index 2d63288779..eb685c3760 100644 --- a/test/MC/Mips/elf_st_other.s +++ b/test/MC/Mips/elf_st_other.s @@ -1,13 +1,17 @@ // RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o -| llvm-readobj -t | FileCheck %s - .text - .globl main - .align 2 - .type main,@function - .set nomips16 # @main - .ent main - .mips_hack_stocg main, 128 -main: - -// CHECK: Name: main -// CHECK: Other: 128 + +.globl f1 +.set micromips +f1: + nop + +.globl f2 +.set nomicromips +f2: + nop + +// CHECK-LABEL: Name: f1 +// CHECK: Other: 128 +// CHECK-LABEL: Name: f2 +// CHECK: Other: 0 |