From 30116cd2e24a4a2b6c2771ef2665d655de93b984 Mon Sep 17 00:00:00 2001 From: Jack Carter Date: Thu, 4 Oct 2012 02:29:46 +0000 Subject: 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 --- test/MC/Mips/mips_directives.s | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/MC') diff --git a/test/MC/Mips/mips_directives.s b/test/MC/Mips/mips_directives.s index f9d8460..e2f75a8 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 -- cgit v1.1