mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
77217229ba
The constructs %hi() and %lo() represent the high and low 16 bits of the address. Because the 16 bit offset field of an LW instruction is interpreted as signed, if bit 15 of the low part is 1 then the low part will act as a negative and 1 needs to be added to the high part. Contributer: Vladimir Medic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175707 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
424 B
ArmAsm
20 lines
424 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
|