mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
be66089390
This adds support for the .short and its alias .hword for adding literal values into the object file. This is similar to the .word directive, however, rather than inserting a value of 4 bytes, adds a 2-byte value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201968 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
323 B
ArmAsm
27 lines
323 B
ArmAsm
@ RUN: llvm-mc -triple arm %s | FileCheck %s
|
|
|
|
.data
|
|
|
|
short:
|
|
.short 0
|
|
.short 0xdefe
|
|
|
|
@ CHECK-LABEL: short
|
|
@ CHECK-NEXT: .short 0
|
|
@ CHECK-NEXT: .short 57086
|
|
|
|
hword:
|
|
.hword 0
|
|
.hword 0xdefe
|
|
|
|
@ CHECK-LABEL: hword
|
|
@ CHECK-NEXT: .short 0
|
|
@ CHECK-NEXT: .short 57086
|
|
|
|
word:
|
|
.word 3
|
|
|
|
@ CHECK-LABEL: word
|
|
@ CHECK-NEXT: .long 3
|
|
|