Index: llvm/trunk/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-thumb.ll =================================================================== --- llvm/trunk/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-thumb.ll +++ llvm/trunk/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-thumb.ll @@ -1,4 +1,4 @@ -;RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | llvm-mc -triple=thumbv7-linux-gnueabi -filetype=obj | llvm-objdump -triple=thumbv7 -d - | FileCheck %s +;RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | llvm-mc -triple=thumbv7-linux-gnueabi -filetype=obj | llvm-objdump --print-imm-hex=false -triple=thumbv7 -d - | FileCheck %s ;RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | FileCheck %s -check-prefix=ASM ;RUN: llc -mtriple=thumbv7-apple-darwin < %s | FileCheck %s -check-prefix=ASM Index: llvm/trunk/test/CodeGen/ARM/inlineasm-switch-mode.ll =================================================================== --- llvm/trunk/test/CodeGen/ARM/inlineasm-switch-mode.ll +++ llvm/trunk/test/CodeGen/ARM/inlineasm-switch-mode.ll @@ -1,7 +1,7 @@ ;RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | llvm-mc -triple=thumbv7-linux-gnueabi -filetype=obj > %t ; Two pass decoding needed because llvm-objdump does not respect mapping symbols -;RUN: llvm-objdump -triple=armv7 -d %t | FileCheck %s --check-prefix=ARM -;RUN: llvm-objdump -triple=thumbv7 -d %t | FileCheck %s --check-prefix=THUMB +;RUN: llvm-objdump --print-imm-hex=false -triple=armv7 -d %t | FileCheck %s --check-prefix=ARM +;RUN: llvm-objdump --print-imm-hex=false -triple=thumbv7 -d %t | FileCheck %s --check-prefix=THUMB define hidden i32 @bah(i8* %start) #0 align 2 { %1 = ptrtoint i8* %start to i32 Index: llvm/trunk/test/CodeGen/ARM/struct_byval_arm_t1_t2.ll =================================================================== --- llvm/trunk/test/CodeGen/ARM/struct_byval_arm_t1_t2.ll +++ llvm/trunk/test/CodeGen/ARM/struct_byval_arm_t1_t2.ll @@ -1,10 +1,10 @@ -;RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mattr=+neon -verify-machineinstrs -filetype=obj | llvm-objdump -triple armv7-none-linux-gnueabi -disassemble - | FileCheck %s --check-prefix=ARM -;RUN: llc < %s -mtriple=thumbv7-none-linux-gnueabi -mattr=+neon -verify-machineinstrs -filetype=obj | llvm-objdump -triple thumbv7-none-linux-gnueabi -disassemble - | FileCheck %s --check-prefix=THUMB2 -;RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mattr=-neon -verify-machineinstrs -filetype=obj | llvm-objdump -triple armv7-none-linux-gnueabi -disassemble - | FileCheck %s --check-prefix=NO_NEON +;RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mattr=+neon -verify-machineinstrs -filetype=obj | llvm-objdump --print-imm-hex=false -triple armv7-none-linux-gnueabi -disassemble - | FileCheck %s --check-prefix=ARM +;RUN: llc < %s -mtriple=thumbv7-none-linux-gnueabi -mattr=+neon -verify-machineinstrs -filetype=obj | llvm-objdump --print-imm-hex=false -triple thumbv7-none-linux-gnueabi -disassemble - | FileCheck %s --check-prefix=THUMB2 +;RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mattr=-neon -verify-machineinstrs -filetype=obj | llvm-objdump --print-imm-hex=false -triple armv7-none-linux-gnueabi -disassemble - | FileCheck %s --check-prefix=NO_NEON ;We want to have both positive and negative checks for thumb1. These checks ;are not easy to do in a single pass so we generate the output once to a ;temp file and run filecheck twice with different prefixes. -;RUN: llc < %s -mtriple=thumbv5-none-linux-gnueabi -verify-machineinstrs -filetype=obj | llvm-objdump -triple thumbv5-none-linux-gnueabi -disassemble - > %t +;RUN: llc < %s -mtriple=thumbv5-none-linux-gnueabi -verify-machineinstrs -filetype=obj | llvm-objdump --print-imm-hex=false -triple thumbv5-none-linux-gnueabi -disassemble - > %t ;RUN: cat %t | FileCheck %s --check-prefix=THUMB1 ;RUN: cat %t | FileCheck %s --check-prefix=T1POST Index: llvm/trunk/test/CodeGen/ARM/thumb1-varalloc.ll =================================================================== --- llvm/trunk/test/CodeGen/ARM/thumb1-varalloc.ll +++ llvm/trunk/test/CodeGen/ARM/thumb1-varalloc.ll @@ -1,7 +1,7 @@ ; RUN: llc < %s -mtriple=thumbv6-apple-darwin | FileCheck %s ; RUN: llc < %s -mtriple=thumbv6-apple-darwin -regalloc=basic | FileCheck %s ; RUN: llc < %s -o %t -filetype=obj -mtriple=thumbv6-apple-darwin -; RUN: llvm-objdump -triple=thumbv6-apple-darwin -d %t | FileCheck %s +; RUN: llvm-objdump --print-imm-hex=false -triple=thumbv6-apple-darwin -d %t | FileCheck %s @__bar = external hidden global i8* @__baz = external hidden global i8* Index: llvm/trunk/test/CodeGen/Hexagon/cmp.ll =================================================================== --- llvm/trunk/test/CodeGen/Hexagon/cmp.ll +++ llvm/trunk/test/CodeGen/Hexagon/cmp.ll @@ -1,4 +1,4 @@ -; RUN: llc -march=hexagon --filetype=obj < %s -o - | llvm-objdump -d - | FileCheck %s +; RUN: llc -march=hexagon --filetype=obj < %s -o - | llvm-objdump --print-imm-hex=false -d - | FileCheck %s ; Function Attrs: nounwind define i32 @cmpeq(i32 %i) #0 { Index: llvm/trunk/test/CodeGen/Hexagon/relax.ll =================================================================== --- llvm/trunk/test/CodeGen/Hexagon/relax.ll +++ llvm/trunk/test/CodeGen/Hexagon/relax.ll @@ -1,4 +1,4 @@ -; RUN: llc -march=hexagon -filetype=obj < %s | llvm-objdump -d -r - | FileCheck %s +; RUN: llc -march=hexagon -filetype=obj < %s | llvm-objdump --print-imm-hex=false -d -r - | FileCheck %s declare void @bar() Index: llvm/trunk/test/CodeGen/Mips/micromips-atomic1.ll =================================================================== --- llvm/trunk/test/CodeGen/Mips/micromips-atomic1.ll +++ llvm/trunk/test/CodeGen/Mips/micromips-atomic1.ll @@ -1,5 +1,5 @@ ; RUN: llc -march=mipsel -filetype=obj --disable-machine-licm -mattr=micromips < %s -o - \ -; RUN: | llvm-objdump -no-show-raw-insn -arch mipsel -mcpu=mips32r2 -mattr=micromips -d - \ +; RUN: | llvm-objdump --print-imm-hex=false -no-show-raw-insn -arch mipsel -mcpu=mips32r2 -mattr=micromips -d - \ ; RUN: | FileCheck %s -check-prefix=MICROMIPS ; Use llvm-objdump to check wheter the encodings of microMIPS atomic instructions are correct. Index: llvm/trunk/test/CodeGen/Thumb/large-stack.ll =================================================================== --- llvm/trunk/test/CodeGen/Thumb/large-stack.ll +++ llvm/trunk/test/CodeGen/Thumb/large-stack.ll @@ -1,9 +1,9 @@ ; RUN: llc < %s -mtriple=thumb-apple-ios | FileCheck %s --check-prefix=CHECK --check-prefix=IOS ; RUN: llc < %s -mtriple=thumb-none-eabi | FileCheck %s --check-prefix=CHECK --check-prefix=EABI ; RUN: llc < %s -o %t -filetype=obj -mtriple=thumbv6-apple-ios -; RUN: llvm-objdump -triple=thumbv6-apple-ios -d %t | FileCheck %s --check-prefix=CHECK --check-prefix=IOS +; RUN: llvm-objdump --print-imm-hex=false -triple=thumbv6-apple-ios -d %t | FileCheck %s --check-prefix=CHECK --check-prefix=IOS ; RUN: llc < %s -o %t -filetype=obj -mtriple=thumbv6-none-eabi -; RUN: llvm-objdump -triple=thumbv6-none-eabi -d %t | FileCheck %s --check-prefix=CHECK --check-prefix=EABI +; RUN: llvm-objdump --print-imm-hex=false -triple=thumbv6-none-eabi -d %t | FileCheck %s --check-prefix=CHECK --check-prefix=EABI ; Largest stack for which a single tADDspi/tSUBspi is enough define void @test1() { Index: llvm/trunk/test/MC/ARM/coff-relocations.s =================================================================== --- llvm/trunk/test/MC/ARM/coff-relocations.s +++ llvm/trunk/test/MC/ARM/coff-relocations.s @@ -2,7 +2,8 @@ @ RUN: | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-RELOCATION @ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \ -@ RUN: | llvm-objdump -d - | FileCheck %s -check-prefix CHECK-ENCODING +@ RUN: | llvm-objdump --print-imm-hex=false -d - | FileCheck %s \ +@ RUN: -check-prefix CHECK-ENCODING .syntax unified .text Index: llvm/trunk/test/MC/ARM/thumb1-relax-bcc.s =================================================================== --- llvm/trunk/test/MC/ARM/thumb1-relax-bcc.s +++ llvm/trunk/test/MC/ARM/thumb1-relax-bcc.s @@ -1,7 +1,7 @@ @ RUN: not llvm-mc -triple thumbv6m-none-macho -filetype=obj -o /dev/null %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s @ RUN: not llvm-mc -triple thumbv7m-none-macho -filetype=obj -o /dev/null %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s @ RUN: llvm-mc -triple thumbv7m-none-eabi -filetype=obj -o %t %s -@ RUN: llvm-objdump -d -r -triple thumbv7m-none-eabi %t | FileCheck --check-prefix=CHECK-ELF %s +@ RUN: llvm-objdump --print-imm-hex=false -d -r -triple thumbv7m-none-eabi %t | FileCheck --check-prefix=CHECK-ELF %s .global func1 _func1: Index: llvm/trunk/test/MC/ARM/thumb1-relax-br.s =================================================================== --- llvm/trunk/test/MC/ARM/thumb1-relax-br.s +++ llvm/trunk/test/MC/ARM/thumb1-relax-br.s @@ -1,8 +1,8 @@ @ RUN: not llvm-mc -triple thumbv6m-none-macho -filetype=obj -o /dev/null %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s @ RUN: llvm-mc -triple thumbv7m-none-macho -filetype=obj -o %t %s -@ RUN: llvm-objdump -d -r -triple thumbv7m-none-macho %t | FileCheck --check-prefix=CHECK-MACHO %s +@ RUN: llvm-objdump --print-imm-hex=false -d -r -triple thumbv7m-none-macho %t | FileCheck --check-prefix=CHECK-MACHO %s @ RUN: llvm-mc -triple thumbv7m-none-eabi -filetype=obj -o %t %s -@ RUN: llvm-objdump -d -r -triple thumbv7m-none-eabi %t | FileCheck --check-prefix=CHECK-ELF %s +@ RUN: llvm-objdump --print-imm-hex=false -d -r -triple thumbv7m-none-eabi %t | FileCheck --check-prefix=CHECK-ELF %s .global func1 _func1: Index: llvm/trunk/test/MC/ARM/thumb2-cbn-to-next-inst.s =================================================================== --- llvm/trunk/test/MC/ARM/thumb2-cbn-to-next-inst.s +++ llvm/trunk/test/MC/ARM/thumb2-cbn-to-next-inst.s @@ -1,5 +1,5 @@ @ RUN: llvm-mc -triple thumbv7-apple-darwin -filetype=obj -o %t.o %s -@ RUN: llvm-objdump -triple thumbv7-apple-darwin -d %t.o | FileCheck %s +@ RUN: llvm-objdump --print-imm-hex=false -triple thumbv7-apple-darwin -d %t.o | FileCheck %s .thumb start: Index: llvm/trunk/test/MC/ELF/relax-arith.s =================================================================== --- llvm/trunk/test/MC/ELF/relax-arith.s +++ llvm/trunk/test/MC/ELF/relax-arith.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump -d - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump --print-imm-hex=false -d - | FileCheck %s // Test that we correctly relax these instructions into versions that use // 16 or 32 bit immediate values. Index: llvm/trunk/test/MC/ELF/relax-arith2.s =================================================================== --- llvm/trunk/test/MC/ELF/relax-arith2.s +++ llvm/trunk/test/MC/ELF/relax-arith2.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump -d - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump --print-imm-hex=false -d - | FileCheck %s // Test that we avoid relaxing these instructions and instead generate versions // that use 8-bit immediate values. Index: llvm/trunk/test/MC/ELF/relax-arith3.s =================================================================== --- llvm/trunk/test/MC/ELF/relax-arith3.s +++ llvm/trunk/test/MC/ELF/relax-arith3.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump -d - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump --print-imm-hex=false -d - | FileCheck %s // Test that we correctly relax these instructions into versions that use // 16 or 32 bit immediate values. Index: llvm/trunk/test/MC/ELF/relax-arith4.s =================================================================== --- llvm/trunk/test/MC/ELF/relax-arith4.s +++ llvm/trunk/test/MC/ELF/relax-arith4.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-objdump -d - | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-objdump --print-imm-hex=false -d - | FileCheck %s // Test for proper instruction relaxation behavior for the push $imm // instruction forms. This is the 32-bit version of the push $imm tests from Index: llvm/trunk/test/MC/Hexagon/asmMap.s =================================================================== --- llvm/trunk/test/MC/Hexagon/asmMap.s +++ llvm/trunk/test/MC/Hexagon/asmMap.s @@ -1,4 +1,4 @@ -#RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s +#RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d - | FileCheck %s # Make sure that the assembler mapped instructions are being handled correctly. Index: llvm/trunk/test/MC/Hexagon/duplex-registers.s =================================================================== --- llvm/trunk/test/MC/Hexagon/duplex-registers.s +++ llvm/trunk/test/MC/Hexagon/duplex-registers.s @@ -1,4 +1,4 @@ -#RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s +#RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d - | FileCheck %s .text { Index: llvm/trunk/test/MC/Hexagon/fixups.s =================================================================== --- llvm/trunk/test/MC/Hexagon/fixups.s +++ llvm/trunk/test/MC/Hexagon/fixups.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -arch=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s +# RUN: llvm-mc -arch=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d - | FileCheck %s .text # CHECK-LABEL: 0: Index: llvm/trunk/test/MC/Hexagon/iconst.s =================================================================== --- llvm/trunk/test/MC/Hexagon/iconst.s +++ llvm/trunk/test/MC/Hexagon/iconst.s @@ -1,6 +1,6 @@ -# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump -d -r - | FileCheck %s +# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d -r - | FileCheck %s a: # CHECK: r0 = add(r0, #0) # CHECK: R_HEX_23_REG r0 = iconst(#a) \ No newline at end of file Index: llvm/trunk/test/MC/Hexagon/inst_cmp_eqi.ll =================================================================== --- llvm/trunk/test/MC/Hexagon/inst_cmp_eqi.ll +++ llvm/trunk/test/MC/Hexagon/inst_cmp_eqi.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -d - | FileCheck %s +;; RUN: | llvm-objdump --print-imm-hex=false -d - | FileCheck %s define i1 @foo (i32 %a) { Index: llvm/trunk/test/MC/Hexagon/inst_cmp_gti.ll =================================================================== --- llvm/trunk/test/MC/Hexagon/inst_cmp_gti.ll +++ llvm/trunk/test/MC/Hexagon/inst_cmp_gti.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -d - | FileCheck %s +;; RUN: | llvm-objdump --print-imm-hex=false -d - | FileCheck %s define i1 @foo (i32 %a) { Index: llvm/trunk/test/MC/Hexagon/inst_cmp_ugti.ll =================================================================== --- llvm/trunk/test/MC/Hexagon/inst_cmp_ugti.ll +++ llvm/trunk/test/MC/Hexagon/inst_cmp_ugti.ll @@ -1,5 +1,5 @@ ;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \ -;; RUN: | llvm-objdump -d - | FileCheck %s +;; RUN: | llvm-objdump --print-imm-hex=false -d - | FileCheck %s define i1 @foo (i32 %a) { Index: llvm/trunk/test/MC/Hexagon/relaxed_newvalue.s =================================================================== --- llvm/trunk/test/MC/Hexagon/relaxed_newvalue.s +++ llvm/trunk/test/MC/Hexagon/relaxed_newvalue.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s +# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d - | FileCheck %s # Make sure relaxation doesn't hinder newvalue calculation #CHECK: r18 = add(r2, #-6) Index: llvm/trunk/test/MC/Hexagon/two_ext.s =================================================================== --- llvm/trunk/test/MC/Hexagon/two_ext.s +++ llvm/trunk/test/MC/Hexagon/two_ext.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s +# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d - | FileCheck %s # verify two extenders generated during relaxation { Index: llvm/trunk/test/MC/Hexagon/v60-vmem.s =================================================================== --- llvm/trunk/test/MC/Hexagon/v60-vmem.s +++ llvm/trunk/test/MC/Hexagon/v60-vmem.s @@ -1,5 +1,5 @@ #RUN: llvm-mc -triple=hexagon -mcpu=hexagonv60 -filetype=obj %s | \ -#RUN: llvm-objdump -triple=hexagon -mcpu=hexagonv60 -d - | \ +#RUN: llvm-objdump --print-imm-hex=false -triple=hexagon -mcpu=hexagonv60 -d - | \ #RUN: FileCheck %s #CHECK: 292cc11b { vmem(r12++#1) = v27 } Index: llvm/trunk/test/MC/Mips/cprestore-noreorder.s =================================================================== --- llvm/trunk/test/MC/Mips/cprestore-noreorder.s +++ llvm/trunk/test/MC/Mips/cprestore-noreorder.s @@ -2,7 +2,7 @@ # RUN: FileCheck %s # RUN: llvm-mc %s -arch=mips -mcpu=mips32 -relocation-model=pic -filetype=obj -o -| \ -# RUN: llvm-objdump -d -r -arch=mips - | \ +# RUN: llvm-objdump --print-imm-hex=false -d -r -arch=mips - | \ # RUN: FileCheck %s -check-prefix=CHECK-FOR-STORE # RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+micromips -relocation-model=pic -show-encoding | \ Index: llvm/trunk/test/MC/Mips/cprestore-reorder.s =================================================================== --- llvm/trunk/test/MC/Mips/cprestore-reorder.s +++ llvm/trunk/test/MC/Mips/cprestore-reorder.s @@ -2,7 +2,7 @@ # RUN: FileCheck %s # RUN: llvm-mc %s -arch=mips -mcpu=mips32 -relocation-model=pic -filetype=obj -o -| \ -# RUN: llvm-objdump -d -r -arch=mips - | \ +# RUN: llvm-objdump --print-imm-hex=false -d -r -arch=mips - | \ # RUN: FileCheck %s -check-prefix=CHECK-FOR-STORE # RUN: llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+micromips -relocation-model=pic -show-encoding | \ Index: llvm/trunk/test/MC/Mips/cpsetup.s =================================================================== --- llvm/trunk/test/MC/Mips/cpsetup.s +++ llvm/trunk/test/MC/Mips/cpsetup.s @@ -1,19 +1,19 @@ # RUN: llvm-mc -triple mips64-unknown-unknown -target-abi o32 -filetype=obj -o - %s | \ -# RUN: llvm-objdump -d -r -arch=mips64 - | \ +# RUN: llvm-objdump --print-imm-hex=false -d -r -arch=mips64 - | \ # RUN: FileCheck -check-prefix=ALL -check-prefix=O32 %s # RUN: llvm-mc -triple mips64-unknown-unknown -target-abi o32 %s | \ # RUN: FileCheck -check-prefix=ALL -check-prefix=ASM %s # RUN: llvm-mc -triple mips64-unknown-unknown -target-abi n32 -filetype=obj -o - %s | \ -# RUN: llvm-objdump -d -r -t -arch=mips64 - | \ +# RUN: llvm-objdump --print-imm-hex=false -d -r -t -arch=mips64 - | \ # RUN: FileCheck -check-prefix=ALL -check-prefix=NXX -check-prefix=N32 %s # RUN: llvm-mc -triple mips64-unknown-unknown -target-abi n32 %s | \ # RUN: FileCheck -check-prefix=ALL -check-prefix=ASM %s # RUN: llvm-mc -triple mips64-unknown-unknown %s -filetype=obj -o - | \ -# RUN: llvm-objdump -d -r -t -arch=mips64 - | \ +# RUN: llvm-objdump --print-imm-hex=false -d -r -t -arch=mips64 - | \ # RUN: FileCheck -check-prefix=ALL -check-prefix=NXX -check-prefix=N64 %s # RUN: llvm-mc -triple mips64-unknown-unknown %s | \ Index: llvm/trunk/test/MC/Mips/got-rel-expr.s =================================================================== --- llvm/trunk/test/MC/Mips/got-rel-expr.s +++ llvm/trunk/test/MC/Mips/got-rel-expr.s @@ -2,7 +2,7 @@ # as an argument of the %got relocation. # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s \ -# RUN: | llvm-objdump -d -r - | FileCheck %s +# RUN: | llvm-objdump --print-imm-hex=false -d -r - | FileCheck %s .text foo: Index: llvm/trunk/test/MC/Mips/hex-immediates.s =================================================================== --- llvm/trunk/test/MC/Mips/hex-immediates.s +++ llvm/trunk/test/MC/Mips/hex-immediates.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=obj %s -triple=mips-unknown-linux \ -# RUN: | llvm-objdump -d --print-imm-hex - | FileCheck %s +# RUN: | llvm-objdump -d - | FileCheck %s # CHECK: jal 0x20 # CHECK: addiu $sp, $sp, -0x20 Index: llvm/trunk/test/MC/Mips/higher-highest-addressing.s =================================================================== --- llvm/trunk/test/MC/Mips/higher-highest-addressing.s +++ llvm/trunk/test/MC/Mips/higher-highest-addressing.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=obj -triple=mips64el-unknown-linux -mcpu=mips64r2 %s \ -# RUN: | llvm-objdump -disassemble -triple mips64el - | FileCheck %s +# RUN: | llvm-objdump --print-imm-hex=false -disassemble -triple mips64el - | FileCheck %s # RUN: llvm-mc -filetype=obj -triple=mips64el-unknown-linux -mcpu=mips64r2 %s \ # RUN: | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-REL Index: llvm/trunk/test/MC/Mips/hilo-addressing.s =================================================================== --- llvm/trunk/test/MC/Mips/hilo-addressing.s +++ llvm/trunk/test/MC/Mips/hilo-addressing.s @@ -2,7 +2,7 @@ # RUN: | FileCheck %s -check-prefix=CHECK-ENC # RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s \ -# RUN: | llvm-objdump -disassemble - | FileCheck %s -check-prefix=CHECK-INSTR +# RUN: | llvm-objdump --print-imm-hex=false -disassemble - | FileCheck %s -check-prefix=CHECK-INSTR # RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s \ # RUN: | llvm-readobj -r | FileCheck %s -check-prefix=CHECK-REL Index: llvm/trunk/test/MC/Mips/instr-analysis.s =================================================================== --- llvm/trunk/test/MC/Mips/instr-analysis.s +++ llvm/trunk/test/MC/Mips/instr-analysis.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o - \ -# RUN: | llvm-objdump -d - | FileCheck %s +# RUN: | llvm-objdump --print-imm-hex=false -d - | FileCheck %s # CHECK: foo: # CHECK-NEXT: 0: 0c 00 00 02 jal 8 Index: llvm/trunk/test/MC/Mips/micromips-el-fixup-data.s =================================================================== --- llvm/trunk/test/MC/Mips/micromips-el-fixup-data.s +++ llvm/trunk/test/MC/Mips/micromips-el-fixup-data.s @@ -1,6 +1,6 @@ # RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \ # RUN: -mattr=+micromips 2>&1 -filetype=obj > %t.o -# RUN: llvm-objdump %t.o -triple mipsel -mattr=+micromips -d | FileCheck %s +# RUN: llvm-objdump --print-imm-hex=false %t.o -triple mipsel -mattr=+micromips -d | FileCheck %s # Check that fixup data is written in the microMIPS specific little endian # byte order. Index: llvm/trunk/test/MC/Mips/mips64extins.ll =================================================================== --- llvm/trunk/test/MC/Mips/mips64extins.ll +++ llvm/trunk/test/MC/Mips/mips64extins.ll @@ -1,5 +1,5 @@ ; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -target-abi=n64 %s -o - \ -; RUN: | llvm-objdump -disassemble -triple mips64el -mattr +mips64r2 - \ +; RUN: | llvm-objdump --print-imm-hex=false -disassemble -triple mips64el -mattr +mips64r2 - \ ; RUN: | FileCheck %s define i64 @dext(i64 %i) nounwind readnone { Index: llvm/trunk/test/MC/Mips/mips64shift.ll =================================================================== --- llvm/trunk/test/MC/Mips/mips64shift.ll +++ llvm/trunk/test/MC/Mips/mips64shift.ll @@ -1,8 +1,8 @@ ; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -disable-mips-delay-filler %s -o - \ -; RUN: | llvm-objdump -disassemble -triple mips64el - | FileCheck %s +; RUN: | llvm-objdump --print-imm-hex=false -disassemble -triple mips64el - | FileCheck %s ; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - \ -; RUN: | llvm-objdump -disassemble -triple mips64el - | FileCheck %s +; RUN: | llvm-objdump --print-imm-hex=false -disassemble -triple mips64el - | FileCheck %s define i64 @f3(i64 %a0) nounwind readnone { entry: Index: llvm/trunk/test/MC/Mips/mips_gprel16.s =================================================================== --- llvm/trunk/test/MC/Mips/mips_gprel16.s +++ llvm/trunk/test/MC/Mips/mips_gprel16.s @@ -4,10 +4,10 @@ // field. // RUN: llvm-mc -mcpu=mips32r2 -triple=mipsel-pc-linux -filetype=obj -relocation-model=static %s -o - \ -// RUN: | llvm-objdump -disassemble -mattr +mips32r2 - \ +// RUN: | llvm-objdump --print-imm-hex=false -disassemble -mattr +mips32r2 - \ // RUN: | FileCheck %s // RUN: llvm-mc -mcpu=mips32r2 -triple=mips-pc-linux -filetype=obj -relocation-model=static %s -o - \ -// RUN: | llvm-objdump -disassemble -mattr +mips32r2 - \ +// RUN: | llvm-objdump --print-imm-hex=false -disassemble -mattr +mips32r2 - \ // RUN: | FileCheck %s .text Index: llvm/trunk/test/MC/Mips/nacl-mask.s =================================================================== --- llvm/trunk/test/MC/Mips/nacl-mask.s +++ llvm/trunk/test/MC/Mips/nacl-mask.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-nacl %s \ -# RUN: | llvm-objdump -triple mipsel -disassemble -no-show-raw-insn - \ +# RUN: | llvm-objdump --print-imm-hex=false -triple mipsel -disassemble -no-show-raw-insn - \ # RUN: | FileCheck %s # This test tests that address-masking sandboxing is added when given assembly Index: llvm/trunk/test/MC/X86/AlignedBundling/labeloffset.s =================================================================== --- llvm/trunk/test/MC/X86/AlignedBundling/labeloffset.s +++ llvm/trunk/test/MC/X86/AlignedBundling/labeloffset.s @@ -1,9 +1,9 @@ # RUN: llvm-mc -triple=i686-linux -filetype=obj %s -o - | \ -# RUN: llvm-objdump -disassemble -no-show-raw-insn -r - | FileCheck %s +# RUN: llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn -r - | FileCheck %s # RUN: llvm-mc -triple=i686-nacl -filetype=obj %s -o - | \ -# RUN: llvm-objdump -disassemble -no-show-raw-insn -r - | FileCheck %s +# RUN: llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn -r - | FileCheck %s # RUN: llvm-mc -triple=i686-nacl -filetype=obj -mc-relax-all %s -o - | \ -# RUN: llvm-objdump -disassemble -no-show-raw-insn -r - | FileCheck %s +# RUN: llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn -r - | FileCheck %s .bundle_align_mode 5 .text Index: llvm/trunk/test/MC/X86/AlignedBundling/misaligned-bundle-group.s =================================================================== --- llvm/trunk/test/MC/X86/AlignedBundling/misaligned-bundle-group.s +++ llvm/trunk/test/MC/X86/AlignedBundling/misaligned-bundle-group.s @@ -1,8 +1,8 @@ # RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - \ -# RUN: | llvm-objdump -disassemble -no-show-raw-insn - \ +# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - \ # RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-OPT %s # RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -mc-relax-all %s -o - \ -# RUN: | llvm-objdump -disassemble -no-show-raw-insn - \ +# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - \ # RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-RELAX %s .text Index: llvm/trunk/test/MC/X86/AlignedBundling/misaligned-bundle.s =================================================================== --- llvm/trunk/test/MC/X86/AlignedBundling/misaligned-bundle.s +++ llvm/trunk/test/MC/X86/AlignedBundling/misaligned-bundle.s @@ -1,8 +1,8 @@ # RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - \ -# RUN: | llvm-objdump -disassemble -no-show-raw-insn - \ +# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - \ # RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-OPT %s # RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu -mc-relax-all %s -o - \ -# RUN: | llvm-objdump -disassemble -no-show-raw-insn - \ +# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - \ # RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-RELAX %s .text Index: llvm/trunk/test/MC/X86/AlignedBundling/rodata-section.s =================================================================== --- llvm/trunk/test/MC/X86/AlignedBundling/rodata-section.s +++ llvm/trunk/test/MC/X86/AlignedBundling/rodata-section.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -triple=i686-nacl -filetype=obj %s -o - \ -# RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s +# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - | FileCheck %s # RUN: llvm-mc -triple=i686-nacl -filetype=obj -mc-relax-all %s -o - \ -# RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s +# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - | FileCheck %s .bundle_align_mode 5 .text Index: llvm/trunk/test/MC/X86/AlignedBundling/single-inst-bundling.s =================================================================== --- llvm/trunk/test/MC/X86/AlignedBundling/single-inst-bundling.s +++ llvm/trunk/test/MC/X86/AlignedBundling/single-inst-bundling.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \ -# RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-OPT %s +# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-OPT %s # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -mc-relax-all %s -o - \ -# RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-RELAX %s +# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-RELAX %s # Test simple NOP insertion for single instructions. Index: llvm/trunk/test/MC/X86/fixup-cpu-mode.s =================================================================== --- llvm/trunk/test/MC/X86/fixup-cpu-mode.s +++ llvm/trunk/test/MC/X86/fixup-cpu-mode.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t -// RUN: llvm-objdump -d %t | FileCheck %s +// RUN: llvm-objdump --print-imm-hex=false -d %t | FileCheck %s //PR18303 .global edata Index: llvm/trunk/test/MC/X86/hex-immediates.s =================================================================== --- llvm/trunk/test/MC/X86/hex-immediates.s +++ llvm/trunk/test/MC/X86/hex-immediates.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc -filetype=obj %s -triple=x86_64-apple-darwin9 | llvm-objdump -d --print-imm-hex - | FileCheck %s +# RUN: llvm-mc -filetype=obj %s -triple=x86_64-apple-darwin9 | llvm-objdump -d - | FileCheck %s # CHECK: movabsq $0x7fffffffffffffff, %rcx movabsq $0x7fffffffffffffff, %rcx Index: llvm/trunk/test/Object/Mips/feature.test =================================================================== --- llvm/trunk/test/Object/Mips/feature.test +++ llvm/trunk/test/Object/Mips/feature.test @@ -1,4 +1,4 @@ -RUN: llvm-objdump -disassemble -triple mips64el -mattr +mips64r2 %p/../Inputs/dext-test.elf-mips64r2 \ +RUN: llvm-objdump --print-imm-hex=false -disassemble -triple mips64el -mattr +mips64r2 %p/../Inputs/dext-test.elf-mips64r2 \ RUN: | FileCheck %s CHECK: Disassembly of section .text: Index: llvm/trunk/test/Object/Mips/objdump-micro-mips.test =================================================================== --- llvm/trunk/test/Object/Mips/objdump-micro-mips.test +++ llvm/trunk/test/Object/Mips/objdump-micro-mips.test @@ -1,4 +1,4 @@ -RUN: llvm-objdump -d -mattr=micromips %p/../Inputs/micro-mips.elf-mipsel \ +RUN: llvm-objdump --print-imm-hex=false -d -mattr=micromips %p/../Inputs/micro-mips.elf-mipsel \ RUN: | FileCheck %s CHECK: foo: Index: llvm/trunk/test/Object/X86/objdump-disassembly-inline-relocations.test =================================================================== --- llvm/trunk/test/Object/X86/objdump-disassembly-inline-relocations.test +++ llvm/trunk/test/Object/X86/objdump-disassembly-inline-relocations.test @@ -1,14 +1,14 @@ -RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.coff-i386 \ +RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.coff-i386 \ RUN: | FileCheck %s -check-prefix COFF-i386 -RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.coff-x86-64 \ +RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.coff-x86-64 \ RUN: | FileCheck %s -check-prefix COFF-x86-64 -RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.macho-i386 \ +RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.macho-i386 \ RUN: | FileCheck %s -check-prefix MACHO-i386 -RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.macho-x86-64 \ +RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.macho-x86-64 \ RUN: | FileCheck %s -check-prefix MACHO-x86-64 -RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.elf-i386 \ +RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.elf-i386 \ RUN: | FileCheck %s -check-prefix ELF-i386 -RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.elf-x86-64 \ +RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.elf-x86-64 \ RUN: | FileCheck %s -check-prefix ELF-x86-64 COFF-i386: file format COFF-i386 Index: llvm/trunk/test/Object/X86/objdump-trivial-object.test =================================================================== --- llvm/trunk/test/Object/X86/objdump-trivial-object.test +++ llvm/trunk/test/Object/X86/objdump-trivial-object.test @@ -1,10 +1,10 @@ -RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.coff-i386 \ +RUN: llvm-objdump --print-imm-hex=false -d %p/../Inputs/trivial-object-test.coff-i386 \ RUN: | FileCheck %s -check-prefix COFF-i386 -RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.coff-x86-64 \ +RUN: llvm-objdump --print-imm-hex=false -d %p/../Inputs/trivial-object-test.coff-x86-64 \ RUN: | FileCheck %s -check-prefix COFF-x86-64 -RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.elf-i386 \ +RUN: llvm-objdump --print-imm-hex=false -d %p/../Inputs/trivial-object-test.elf-i386 \ RUN: | FileCheck %s -check-prefix ELF-i386 -RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.elf-x86-64 \ +RUN: llvm-objdump --print-imm-hex=false -d %p/../Inputs/trivial-object-test.elf-x86-64 \ RUN: | FileCheck %s -check-prefix ELF-x86-64 COFF-i386: file format COFF-i386 Index: llvm/trunk/test/tools/llvm-objdump/AArch64/macho-symbolized-disassembly.test =================================================================== --- llvm/trunk/test/tools/llvm-objdump/AArch64/macho-symbolized-disassembly.test +++ llvm/trunk/test/tools/llvm-objdump/AArch64/macho-symbolized-disassembly.test @@ -1,7 +1,7 @@ -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.obj.macho-aarch64 | FileCheck %s -check-prefix=OBJ -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.macho-aarch64 | FileCheck %s -check-prefix=EXE -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.obj.macho-aarch64 | FileCheck %s -check-prefix=ObjC-OBJ -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.exe.macho-aarch64 | FileCheck %s -check-prefix=ObjC-EXE +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/hello.obj.macho-aarch64 | FileCheck %s -check-prefix=OBJ +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/hello.exe.macho-aarch64 | FileCheck %s -check-prefix=EXE +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/ObjC.obj.macho-aarch64 | FileCheck %s -check-prefix=ObjC-OBJ +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/ObjC.exe.macho-aarch64 | FileCheck %s -check-prefix=ObjC-EXE OBJ: 000000000000001c adrp x0, L_.str@PAGE OBJ: 0000000000000020 add x0, x0, L_.str@PAGEOFF Index: llvm/trunk/test/tools/llvm-objdump/ARM/macho-symbolized-disassembly.test =================================================================== --- llvm/trunk/test/tools/llvm-objdump/ARM/macho-symbolized-disassembly.test +++ llvm/trunk/test/tools/llvm-objdump/ARM/macho-symbolized-disassembly.test @@ -1,5 +1,5 @@ -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.obj.macho-arm | FileCheck %s -check-prefix=OBJ -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.macho-arm | FileCheck %s -check-prefix=EXE +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/hello.obj.macho-arm | FileCheck %s -check-prefix=OBJ +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/hello.exe.macho-arm | FileCheck %s -check-prefix=EXE OBJ: 00000006 movw r3, :lower16:((54-14)-4) OBJ: 0000000a movt r3, :upper16:((54-14)-4) Index: llvm/trunk/test/tools/llvm-objdump/X86/coff-disassemble-export.test =================================================================== --- llvm/trunk/test/tools/llvm-objdump/X86/coff-disassemble-export.test +++ llvm/trunk/test/tools/llvm-objdump/X86/coff-disassemble-export.test @@ -1,4 +1,4 @@ -// RUN: llvm-objdump -d %p/Inputs/disassemble.dll.coff-i386 | \ +// RUN: llvm-objdump --print-imm-hex=false -d %p/Inputs/disassemble.dll.coff-i386 | \ // RUN: FileCheck %s // CHECK-LABEL: g: Index: llvm/trunk/test/tools/llvm-objdump/X86/hex-displacement.test =================================================================== --- llvm/trunk/test/tools/llvm-objdump/X86/hex-displacement.test +++ llvm/trunk/test/tools/llvm-objdump/X86/hex-displacement.test @@ -1,6 +1,6 @@ # Check that target displacement has '0x' prefix # to accent hex format of the number. -# RUN: llvm-objdump -d %p/Inputs/hello.exe.macho-i386 | FileCheck %s +# RUN: llvm-objdump --print-imm-hex=false -d %p/Inputs/hello.exe.macho-i386 | FileCheck %s # CHECK: 1f47: e8 00 00 00 00 calll 0 <_main+0xC> Index: llvm/trunk/test/tools/llvm-objdump/X86/macho-dis-no-leading-addr.test =================================================================== --- llvm/trunk/test/tools/llvm-objdump/X86/macho-dis-no-leading-addr.test +++ llvm/trunk/test/tools/llvm-objdump/X86/macho-dis-no-leading-addr.test @@ -1,4 +1,4 @@ -# RUN: llvm-objdump -m -d %p/Inputs/hello.obj.macho-x86_64 -no-show-raw-insn -print-imm-hex -no-leading-addr | FileCheck %s +# RUN: llvm-objdump -m -d %p/Inputs/hello.obj.macho-x86_64 -no-show-raw-insn -no-leading-addr | FileCheck %s # CHECK: (__TEXT,__text) section # CHECK: _main: Index: llvm/trunk/test/tools/llvm-objdump/X86/macho-dis-symname.test =================================================================== --- llvm/trunk/test/tools/llvm-objdump/X86/macho-dis-symname.test +++ llvm/trunk/test/tools/llvm-objdump/X86/macho-dis-symname.test @@ -1,4 +1,4 @@ -# RUN: llvm-objdump -m -d %p/Inputs/exeThread.macho-x86_64 -dis-symname start -no-show-raw-insn -full-leading-addr -print-imm-hex | FileCheck %s +# RUN: llvm-objdump -m -d %p/Inputs/exeThread.macho-x86_64 -dis-symname start -no-show-raw-insn -full-leading-addr | FileCheck %s # CHECK: (__TEXT,__text) section # CHECK: start: Index: llvm/trunk/test/tools/llvm-objdump/X86/macho-nontext-disasm.test =================================================================== --- llvm/trunk/test/tools/llvm-objdump/X86/macho-nontext-disasm.test +++ llvm/trunk/test/tools/llvm-objdump/X86/macho-nontext-disasm.test @@ -1,4 +1,4 @@ -# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __FOO,__bar -full-leading-addr -print-imm-hex -no-show-raw-insn - | FileCheck %s +# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __FOO,__bar -full-leading-addr -no-show-raw-insn - | FileCheck %s .section __FOO, __bar _foo: Index: llvm/trunk/test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test =================================================================== --- llvm/trunk/test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test +++ llvm/trunk/test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test @@ -1,14 +1,14 @@ -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=OBJ -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s -check-prefix=EXE -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.obj.macho-x86_64 | FileCheck %s -check-prefix=ObjC-OBJ -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/ObjC.exe.macho-x86_64 | FileCheck %s -check-prefix=ObjC-EXE -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello_cpp.exe.macho-x86_64 | FileCheck %s -check-prefix=CXX-EXE +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=OBJ +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s -check-prefix=EXE +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/ObjC.obj.macho-x86_64 | FileCheck %s -check-prefix=ObjC-OBJ +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/ObjC.exe.macho-x86_64 | FileCheck %s -check-prefix=ObjC-EXE +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/hello_cpp.exe.macho-x86_64 | FileCheck %s -check-prefix=CXX-EXE -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.obj.macho-i386 | FileCheck %s -check-prefix=i386-OBJ -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex %p/Inputs/hello.exe.macho-i386 | FileCheck %s -check-prefix=i386-EXE +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/hello.obj.macho-i386 | FileCheck %s -check-prefix=i386-OBJ +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr %p/Inputs/hello.exe.macho-i386 | FileCheck %s -check-prefix=i386-EXE -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex -no-symbolic-operands %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NO-SYM-OPS-OBJ -// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex -no-symbolic-operands %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s -check-prefix=NO-SYM-OPS-EXE +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -no-symbolic-operands %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NO-SYM-OPS-OBJ +// RUN: llvm-objdump -d -m -no-show-raw-insn -full-leading-addr -no-symbolic-operands %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s -check-prefix=NO-SYM-OPS-EXE OBJ: 0000000000000008 leaq L_.str(%rip), %rax ## literal pool for: "Hello world\n" OBJ: 0000000000000026 callq _printf Index: llvm/trunk/test/tools/llvm-objdump/X86/macho-universal-x86_64.i386.test =================================================================== --- llvm/trunk/test/tools/llvm-objdump/X86/macho-universal-x86_64.i386.test +++ llvm/trunk/test/tools/llvm-objdump/X86/macho-universal-x86_64.i386.test @@ -1,6 +1,6 @@ -RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex -arch all \ +RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -d -m -no-show-raw-insn -full-leading-addr -arch all \ RUN: | FileCheck %s -check-prefix UEXE-all -RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 -d -m -no-show-raw-insn -full-leading-addr -print-imm-hex -arch i386 \ +RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 -d -m -no-show-raw-insn -full-leading-addr -arch i386 \ RUN: | FileCheck %s -check-prefix UArchive-i386 RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -universal-headers -m \ RUN: | FileCheck %s -check-prefix FAT Index: llvm/trunk/test/tools/llvm-objdump/X86/malformed-machos.test =================================================================== --- llvm/trunk/test/tools/llvm-objdump/X86/malformed-machos.test +++ llvm/trunk/test/tools/llvm-objdump/X86/malformed-machos.test @@ -1,40 +1,40 @@ // These test checks that llvm-objdump will not crash with malformed Mach-O // files. So the check line is not all that important but the bug fixes to // make sure llvm-objdump is robust is what matters. -# RUN: llvm-objdump -macho -objc-meta-data \ +# RUN: llvm-objdump --print-imm-hex=false -macho -objc-meta-data \ # RUN: %p/Inputs/malformed-machos/mem-crup-0001.macho \ # RUN: | FileCheck -check-prefix=m0001 %s # m0001: (method_t extends past the end of the section) -# RUN: llvm-objdump -macho -objc-meta-data \ +# RUN: llvm-objdump --print-imm-hex=false -macho -objc-meta-data \ # RUN: %p/Inputs/malformed-machos/mem-crup-0006.macho \ # RUN: | FileCheck -check-prefix=m0006 %s # m0006: ivarLayout 0x8 -# RUN: llvm-objdump -macho -objc-meta-data \ +# RUN: llvm-objdump --print-imm-hex=false -macho -objc-meta-data \ # RUN: %p/Inputs/malformed-machos/mem-crup-0006.macho \ # RUN: | FileCheck -check-prefix=m0010 %s # m0010: 00000000000010e0 0x10e8 _OBJC_CLASS_ -# RUN: llvm-objdump -macho -objc-meta-data \ +# RUN: llvm-objdump --print-imm-hex=false -macho -objc-meta-data \ # RUN: %p/Inputs/malformed-machos/mem-crup-0040.macho \ # RUN: | FileCheck -check-prefix=m0040 %s # m0040: 00000000000010a0 0xf39 -[tiny_dylib init] -# RUN: llvm-objdump -macho -objc-meta-data \ +# RUN: llvm-objdump --print-imm-hex=false -macho -objc-meta-data \ # RUN: %p/Inputs/malformed-machos/mem-crup-0080.macho \ # RUN: | FileCheck -check-prefix=m0080 %s # m0080: data 0xf960000 (struct class_ro_t *) -# RUN: llvm-objdump -macho -objc-meta-data \ +# RUN: llvm-objdump --print-imm-hex=false -macho -objc-meta-data \ # RUN: %p/Inputs/malformed-machos/mem-crup-0261.macho -# RUN: llvm-objdump -macho -disassemble \ +# RUN: llvm-objdump --print-imm-hex=false -macho -disassemble \ # RUN: %p/Inputs/malformed-machos/mem-crup-0337.macho \ # RUN: | FileCheck -check-prefix=m0337 %s Index: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp =================================================================== --- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp +++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp @@ -177,7 +177,8 @@ cl::opt llvm::PrintImmHex("print-imm-hex", - cl::desc("Use hex format for immediate values")); + cl::desc("Use hex format for immediate values"), + cl::init(true)); cl::opt PrintFaultMaps("fault-map-section", cl::desc("Display contents of faultmap section"));