Index: test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-thumb.ll =================================================================== --- test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-thumb.ll +++ 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: test/CodeGen/ARM/inlineasm-switch-mode.ll =================================================================== --- test/CodeGen/ARM/inlineasm-switch-mode.ll +++ 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: test/CodeGen/ARM/struct_byval_arm_t1_t2.ll =================================================================== --- test/CodeGen/ARM/struct_byval_arm_t1_t2.ll +++ 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: test/CodeGen/ARM/thumb1-varalloc.ll =================================================================== --- test/CodeGen/ARM/thumb1-varalloc.ll +++ 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: test/CodeGen/Hexagon/cmp.ll =================================================================== --- test/CodeGen/Hexagon/cmp.ll +++ 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: test/CodeGen/Hexagon/relax.ll =================================================================== --- test/CodeGen/Hexagon/relax.ll +++ 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: test/CodeGen/Mips/micromips-atomic1.ll =================================================================== --- test/CodeGen/Mips/micromips-atomic1.ll +++ 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: test/CodeGen/Thumb/large-stack.ll =================================================================== --- test/CodeGen/Thumb/large-stack.ll +++ 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: test/MC/ARM/coff-relocations.s =================================================================== --- test/MC/ARM/coff-relocations.s +++ 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: test/MC/ARM/thumb1-relax-bcc.s =================================================================== --- test/MC/ARM/thumb1-relax-bcc.s +++ 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: test/MC/ARM/thumb1-relax-br.s =================================================================== --- test/MC/ARM/thumb1-relax-br.s +++ 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: test/MC/ARM/thumb2-cbn-to-next-inst.s =================================================================== --- test/MC/ARM/thumb2-cbn-to-next-inst.s +++ 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: test/MC/Disassembler/ARM/hex-immediates.txt =================================================================== --- test/MC/Disassembler/ARM/hex-immediates.txt +++ test/MC/Disassembler/ARM/hex-immediates.txt @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 --disassemble --print-imm-hex < %s | FileCheck %s +# RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 --disassemble < %s | FileCheck %s # CHECK: ldr r4, [pc, #0x20] 0x08 0x4c # CHECK: sub sp, #0x84 Index: test/MC/Disassembler/X86/hex-immediates.txt =================================================================== --- test/MC/Disassembler/X86/hex-immediates.txt +++ test/MC/Disassembler/X86/hex-immediates.txt @@ -1,4 +1,4 @@ -# RUN: llvm-mc --print-imm-hex --disassemble %s -triple=x86_64-apple-darwin9 2>&1 | FileCheck %s +# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 2>&1 | FileCheck %s # CHECK: movabsq $0x7fffffffffffffff, %rcx 0x48 0xb9 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x7f Index: test/MC/Disassembler/X86/moffs.txt =================================================================== --- test/MC/Disassembler/X86/moffs.txt +++ test/MC/Disassembler/X86/moffs.txt @@ -1,6 +1,6 @@ -# RUN: llvm-mc --disassemble --show-encoding --print-imm-hex %s -triple=i686-linux-gnu-code16 | FileCheck --check-prefix=16 %s -# RUN: llvm-mc --disassemble --show-encoding --print-imm-hex %s -triple=i686-linux-gnu | FileCheck --check-prefix=32 %s -# RUN: llvm-mc --disassemble --show-encoding --print-imm-hex %s -triple=x86_64-linux-gnu | FileCheck --check-prefix=64 %s +# RUN: llvm-mc --disassemble --show-encoding %s -triple=i686-linux-gnu-code16 | FileCheck --check-prefix=16 %s +# RUN: llvm-mc --disassemble --show-encoding %s -triple=i686-linux-gnu | FileCheck --check-prefix=32 %s +# RUN: llvm-mc --disassemble --show-encoding %s -triple=x86_64-linux-gnu | FileCheck --check-prefix=64 %s # 16: movb 0x5a5a, %al # encoding: [0xa0,0x5a,0x5a] # 32: movb 0x5a5a5a5a, %al # encoding: [0xa0,0x5a,0x5a,0x5a,0x5a] Index: test/MC/ELF/relax-arith.s =================================================================== --- test/MC/ELF/relax-arith.s +++ 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: test/MC/ELF/relax-arith2.s =================================================================== --- test/MC/ELF/relax-arith2.s +++ 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: test/MC/ELF/relax-arith3.s =================================================================== --- test/MC/ELF/relax-arith3.s +++ 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: test/MC/ELF/relax-arith4.s =================================================================== --- test/MC/ELF/relax-arith4.s +++ 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: test/MC/Hexagon/asmMap.s =================================================================== --- test/MC/Hexagon/asmMap.s +++ 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: test/MC/Hexagon/duplex-registers.s =================================================================== --- test/MC/Hexagon/duplex-registers.s +++ 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: test/MC/Hexagon/fixups.s =================================================================== --- test/MC/Hexagon/fixups.s +++ 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: test/MC/Hexagon/iconst.s =================================================================== --- test/MC/Hexagon/iconst.s +++ test/MC/Hexagon/iconst.s @@ -1,4 +1,4 @@ -# 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) Index: test/MC/Hexagon/inst_cmp_eqi.ll =================================================================== --- test/MC/Hexagon/inst_cmp_eqi.ll +++ 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: test/MC/Hexagon/inst_cmp_gti.ll =================================================================== --- test/MC/Hexagon/inst_cmp_gti.ll +++ 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: test/MC/Hexagon/inst_cmp_ugti.ll =================================================================== --- test/MC/Hexagon/inst_cmp_ugti.ll +++ 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: test/MC/Hexagon/relaxed_newvalue.s =================================================================== --- test/MC/Hexagon/relaxed_newvalue.s +++ 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: test/MC/Hexagon/two_ext.s =================================================================== --- test/MC/Hexagon/two_ext.s +++ 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: test/MC/Hexagon/v60-vmem.s =================================================================== --- test/MC/Hexagon/v60-vmem.s +++ 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: test/MC/Mips/cprestore-noreorder.s =================================================================== --- test/MC/Mips/cprestore-noreorder.s +++ 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: test/MC/Mips/cprestore-reorder.s =================================================================== --- test/MC/Mips/cprestore-reorder.s +++ 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: test/MC/Mips/cpsetup.s =================================================================== --- test/MC/Mips/cpsetup.s +++ test/MC/Mips/cpsetup.s @@ -1,5 +1,5 @@ # 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 | \ @@ -6,7 +6,7 @@ # 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 | \ @@ -13,7 +13,7 @@ # 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: test/MC/Mips/got-rel-expr.s =================================================================== --- test/MC/Mips/got-rel-expr.s +++ 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: test/MC/Mips/hex-immediates.s =================================================================== --- test/MC/Mips/hex-immediates.s +++ 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: test/MC/Mips/higher-highest-addressing.s =================================================================== --- test/MC/Mips/higher-highest-addressing.s +++ 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: test/MC/Mips/hilo-addressing.s =================================================================== --- test/MC/Mips/hilo-addressing.s +++ 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: test/MC/Mips/instr-analysis.s =================================================================== --- test/MC/Mips/instr-analysis.s +++ 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: test/MC/Mips/micromips-el-fixup-data.s =================================================================== --- test/MC/Mips/micromips-el-fixup-data.s +++ 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: test/MC/Mips/mips64extins.ll =================================================================== --- test/MC/Mips/mips64extins.ll +++ 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: test/MC/Mips/mips64shift.ll =================================================================== --- test/MC/Mips/mips64shift.ll +++ 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: test/MC/Mips/mips_gprel16.s =================================================================== --- test/MC/Mips/mips_gprel16.s +++ 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: test/MC/Mips/nacl-mask.s =================================================================== --- test/MC/Mips/nacl-mask.s +++ 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: test/MC/X86/AlignedBundling/labeloffset.s =================================================================== --- test/MC/X86/AlignedBundling/labeloffset.s +++ 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: test/MC/X86/AlignedBundling/misaligned-bundle-group.s =================================================================== --- test/MC/X86/AlignedBundling/misaligned-bundle-group.s +++ 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: test/MC/X86/AlignedBundling/misaligned-bundle.s =================================================================== --- test/MC/X86/AlignedBundling/misaligned-bundle.s +++ 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: test/MC/X86/AlignedBundling/rodata-section.s =================================================================== --- test/MC/X86/AlignedBundling/rodata-section.s +++ 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: test/MC/X86/AlignedBundling/single-inst-bundling.s =================================================================== --- test/MC/X86/AlignedBundling/single-inst-bundling.s +++ 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: test/MC/X86/fixup-cpu-mode.s =================================================================== --- test/MC/X86/fixup-cpu-mode.s +++ 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: test/MC/X86/hex-immediates.s =================================================================== --- test/MC/X86/hex-immediates.s +++ 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: test/Object/Mips/feature.test =================================================================== --- test/Object/Mips/feature.test +++ 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: test/Object/Mips/objdump-micro-mips.test =================================================================== --- test/Object/Mips/objdump-micro-mips.test +++ 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: test/Object/X86/objdump-disassembly-inline-relocations.test =================================================================== --- test/Object/X86/objdump-disassembly-inline-relocations.test +++ 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: test/Object/X86/objdump-trivial-object.test =================================================================== --- test/Object/X86/objdump-trivial-object.test +++ 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: test/tools/llvm-objdump/AArch64/macho-symbolized-disassembly.test =================================================================== --- test/tools/llvm-objdump/AArch64/macho-symbolized-disassembly.test +++ 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: test/tools/llvm-objdump/ARM/macho-symbolized-disassembly.test =================================================================== --- test/tools/llvm-objdump/ARM/macho-symbolized-disassembly.test +++ 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: test/tools/llvm-objdump/X86/coff-disassemble-export.test =================================================================== --- test/tools/llvm-objdump/X86/coff-disassemble-export.test +++ 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: test/tools/llvm-objdump/X86/hex-displacement.test =================================================================== --- test/tools/llvm-objdump/X86/hex-displacement.test +++ 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: test/tools/llvm-objdump/X86/macho-dis-no-leading-addr.test =================================================================== --- test/tools/llvm-objdump/X86/macho-dis-no-leading-addr.test +++ 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: test/tools/llvm-objdump/X86/macho-dis-symname.test =================================================================== --- test/tools/llvm-objdump/X86/macho-dis-symname.test +++ 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: test/tools/llvm-objdump/X86/macho-nontext-disasm.test =================================================================== --- test/tools/llvm-objdump/X86/macho-nontext-disasm.test +++ 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: test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test =================================================================== --- test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test +++ 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: test/tools/llvm-objdump/X86/macho-universal-x86_64.i386.test =================================================================== --- test/tools/llvm-objdump/X86/macho-universal-x86_64.i386.test +++ 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: test/tools/llvm-objdump/X86/malformed-machos.test =================================================================== --- test/tools/llvm-objdump/X86/malformed-machos.test +++ 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: tools/llvm-objdump/llvm-objdump.cpp =================================================================== --- tools/llvm-objdump/llvm-objdump.cpp +++ 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"));