summaryrefslogtreecommitdiff
path: root/test/MC/Mips
diff options
context:
space:
mode:
authorJack Carter <jcarter@mips.com>2012-10-04 02:29:46 +0000
committerJack Carter <jcarter@mips.com>2012-10-04 02:29:46 +0000
commit30116cd2e24a4a2b6c2771ef2665d655de93b984 (patch)
treeffe3150f7b79530449a9376ee7824bbf52cc4747 /test/MC/Mips
parent047d3617cb9cfba07b6c982e9597b937c7d7115a (diff)
downloadllvm-30116cd2e24a4a2b6c2771ef2665d655de93b984.tar.gz
llvm-30116cd2e24a4a2b6c2771ef2665d655de93b984.tar.bz2
llvm-30116cd2e24a4a2b6c2771ef2665d655de93b984.tar.xz
This patch is a partial implementation of mips .set assembler directive. Directive is defined as follows:
.set option The patch implements following options at - lets the assembler use the $at register for macros, but generates warnings if the source program uses $at noat - let source programs use $at without issuingwarnings. noreorder - prevents the assembler from reordering machine language instructions. nomacro - causes the assembler to print a warning whenever an assembler operation generates more than one machine language instruction. macro - lets the assembler generate multiple machine instructions from a single assembler instruction reorder - lets the assembler reorder machine language instructions to improve performance The above variants are parsed and their boolean values set or unset. The code to actually use them will come later. Following options are not implemented yet: nomips16 nomicromips move nomove Contributer: Vladimir Medic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips')
-rw-r--r--test/MC/Mips/mips_directives.s8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/MC/Mips/mips_directives.s b/test/MC/Mips/mips_directives.s
index f9d846078b..e2f75a827d 100644
--- a/test/MC/Mips/mips_directives.s
+++ b/test/MC/Mips/mips_directives.s
@@ -1,10 +1,16 @@
# RUN: llvm-mc -triple mips-unknown-unknown %s
-
+#this test produces no output so there isS no FileCheck call
$BB0_2:
+ .ent directives_test
.frame $sp,0,$ra
.mask 0x00000000,0
.fmask 0x00000000,0
.set noreorder
.set nomacro
+ .set noat
$JTI0_0:
.gpword ($BB0_2)
+ .set at=$12
+ .set macro
+ .set reorder
+ .end directives_test