Skip to content

Commit

Permalink
[llvm-objdump] Printing hex instead of dec by default
Browse files Browse the repository at this point in the history
Differential Revision: http://reviews.llvm.org/D18770

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265817 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Colin LeMahieu committed Apr 8, 2016
1 parent 62e3955 commit c49723b
Show file tree
Hide file tree
Showing 61 changed files with 106 additions and 104 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/ARM/inlineasm-switch-mode.ll
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/CodeGen/ARM/struct_byval_arm_t1_t2.ll
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/ARM/thumb1-varalloc.ll
Original file line number Diff line number Diff line change
@@ -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*
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/Hexagon/cmp.ll
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/Hexagon/relax.ll
Original file line number Diff line number Diff line change
@@ -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()

Expand Down
2 changes: 1 addition & 1 deletion test/CodeGen/Mips/micromips-atomic1.ll
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions test/CodeGen/Thumb/large-stack.ll
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
3 changes: 2 additions & 1 deletion test/MC/ARM/coff-relocations.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/MC/ARM/thumb1-relax-bcc.s
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions test/MC/ARM/thumb1-relax-br.s
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion test/MC/ARM/thumb2-cbn-to-next-inst.s
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion test/MC/ELF/relax-arith.s
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/MC/ELF/relax-arith2.s
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/MC/ELF/relax-arith3.s
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/MC/ELF/relax-arith4.s
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Hexagon/asmMap.s
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion test/MC/Hexagon/duplex-registers.s
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Hexagon/fixups.s
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Hexagon/iconst.s
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Hexagon/inst_cmp_eqi.ll
Original file line number Diff line number Diff line change
@@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Hexagon/inst_cmp_gti.ll
Original file line number Diff line number Diff line change
@@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Hexagon/inst_cmp_ugti.ll
Original file line number Diff line number Diff line change
@@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Hexagon/relaxed_newvalue.s
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Hexagon/two_ext.s
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Hexagon/v60-vmem.s
Original file line number Diff line number Diff line change
@@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Mips/cprestore-noreorder.s
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Mips/cprestore-reorder.s
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \
Expand Down
6 changes: 3 additions & 3 deletions test/MC/Mips/cpsetup.s
Original file line number Diff line number Diff line change
@@ -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 | \
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Mips/got-rel-expr.s
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Mips/hex-immediates.s
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Mips/higher-highest-addressing.s
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Mips/hilo-addressing.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Mips/instr-analysis.s
Original file line number Diff line number Diff line change
@@ -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 <loc1>
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Mips/micromips-el-fixup-data.s
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Mips/mips64extins.ll
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions test/MC/Mips/mips64shift.ll
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions test/MC/Mips/mips_gprel16.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/MC/Mips/nacl-mask.s
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions test/MC/X86/AlignedBundling/labeloffset.s
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/MC/X86/AlignedBundling/misaligned-bundle-group.s
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/MC/X86/AlignedBundling/misaligned-bundle.s
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/MC/X86/AlignedBundling/rodata-section.s
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading

0 comments on commit c49723b

Please sign in to comment.