1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 21:42:54 +02:00
llvm-mirror/test/MC/Mips/hex-immediates.s
Simon Atanasyan ac8aa5d9e9 [mips] Use formatImm call to print immediate value in the MipsInstPrinter
That allows, for example, to print hex-formatted immediates using
llvm-objdump --print-imm-hex command line option.

Differential Revision: http://reviews.llvm.org/D18195

llvm-svn: 263704
2016-03-17 10:43:36 +00:00

12 lines
271 B
ArmAsm

# RUN: llvm-mc -filetype=obj %s -triple=mips-unknown-linux \
# RUN: | llvm-objdump -d --print-imm-hex - | FileCheck %s
# CHECK: jal 0x20
# CHECK: addiu $sp, $sp, -0x20
# CHECK: sw $2, 0x10($fp)
jal 32
addiu $sp, $sp, -32
sw $2, 16($fp)
lui $2, 2