mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-04 09:30:13 +00:00
The .set directive in the Mips the assembler can be used to set the value of a symbol to an expression. This changes the symbol's value and type to conform to the expression's. Syntax: .set symbol, expression This patch implements the parsing of the above syntax and enables the parser to use defined symbols when parsing operands. Contributor: Vladimir Medic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177667 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
668 B
ArmAsm
26 lines
668 B
ArmAsm
# RUN: llvm-mc -show-encoding -triple mips-unknown-unknown %s | FileCheck %s
|
|
#
|
|
$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)
|
|
.word 0x77fffffc
|
|
# CHECK: $JTI0_0:
|
|
# CHECK-NEXT: .4byte 2013265916
|
|
.set at=$12
|
|
.set macro
|
|
.set reorder
|
|
.set at=$a0
|
|
.set STORE_MASK,$t7
|
|
.set FPU_MASK,$f7
|
|
#CHECK: abs.s $f6, $f7 # encoding: [0x46,0x00,0x39,0x85]
|
|
#CHECK: and $3, $15, $15 # encoding: [0x01,0xef,0x18,0x24]
|
|
abs.s $f6,FPU_MASK
|
|
and $3,$t7,STORE_MASK
|