mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-23 19:59:57 +00:00
Revert r265817
lld tests need to be addressed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265822 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c49723bd27
commit
df06a070e7
@ -1,4 +1,4 @@
|
||||
;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 | llvm-mc -triple=thumbv7-linux-gnueabi -filetype=obj | llvm-objdump -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
|
||||
|
||||
|
@ -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 --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
|
||||
;RUN: llvm-objdump -triple=armv7 -d %t | FileCheck %s --check-prefix=ARM
|
||||
;RUN: llvm-objdump -triple=thumbv7 -d %t | FileCheck %s --check-prefix=THUMB
|
||||
|
||||
define hidden i32 @bah(i8* %start) #0 align 2 {
|
||||
%1 = ptrtoint i8* %start to i32
|
||||
|
@ -1,10 +1,10 @@
|
||||
;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
|
||||
;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
|
||||
;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 --print-imm-hex=false -triple thumbv5-none-linux-gnueabi -disassemble - > %t
|
||||
;RUN: llc < %s -mtriple=thumbv5-none-linux-gnueabi -verify-machineinstrs -filetype=obj | llvm-objdump -triple thumbv5-none-linux-gnueabi -disassemble - > %t
|
||||
;RUN: cat %t | FileCheck %s --check-prefix=THUMB1
|
||||
;RUN: cat %t | FileCheck %s --check-prefix=T1POST
|
||||
|
||||
|
@ -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 --print-imm-hex=false -triple=thumbv6-apple-darwin -d %t | FileCheck %s
|
||||
; RUN: llvm-objdump -triple=thumbv6-apple-darwin -d %t | FileCheck %s
|
||||
|
||||
@__bar = external hidden global i8*
|
||||
@__baz = external hidden global i8*
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc -march=hexagon --filetype=obj < %s -o - | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
; RUN: llc -march=hexagon --filetype=obj < %s -o - | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define i32 @cmpeq(i32 %i) #0 {
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llc -march=hexagon -filetype=obj < %s | llvm-objdump --print-imm-hex=false -d -r - | FileCheck %s
|
||||
; RUN: llc -march=hexagon -filetype=obj < %s | llvm-objdump -d -r - | FileCheck %s
|
||||
|
||||
declare void @bar()
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llc -march=mipsel -filetype=obj --disable-machine-licm -mattr=micromips < %s -o - \
|
||||
; RUN: | llvm-objdump --print-imm-hex=false -no-show-raw-insn -arch mipsel -mcpu=mips32r2 -mattr=micromips -d - \
|
||||
; RUN: | llvm-objdump -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.
|
||||
|
@ -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 --print-imm-hex=false -triple=thumbv6-apple-ios -d %t | FileCheck %s --check-prefix=CHECK --check-prefix=IOS
|
||||
; RUN: llvm-objdump -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 --print-imm-hex=false -triple=thumbv6-none-eabi -d %t | FileCheck %s --check-prefix=CHECK --check-prefix=EABI
|
||||
; RUN: llvm-objdump -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() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
; RUN: llvm-as < %s >%t1
|
||||
; RUN: llvm-lto -exported-symbol=_main -set-merged-module -o %t2 %t1
|
||||
; RUN: llvm-objdump -d %t2 | FileCheck %s
|
||||
; RUN: llvm-objdump --print-imm-hex=false -d %t2 | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-apple-macosx10.10.0"
|
||||
|
@ -2,8 +2,7 @@
|
||||
@ RUN: | llvm-readobj -r - | FileCheck %s -check-prefix CHECK-RELOCATION
|
||||
|
||||
@ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \
|
||||
@ RUN: | llvm-objdump --print-imm-hex=false -d - | FileCheck %s \
|
||||
@ RUN: -check-prefix CHECK-ENCODING
|
||||
@ RUN: | llvm-objdump -d - | FileCheck %s -check-prefix CHECK-ENCODING
|
||||
|
||||
.syntax unified
|
||||
.text
|
||||
|
@ -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 --print-imm-hex=false -d -r -triple thumbv7m-none-eabi %t | FileCheck --check-prefix=CHECK-ELF %s
|
||||
@ RUN: llvm-objdump -d -r -triple thumbv7m-none-eabi %t | FileCheck --check-prefix=CHECK-ELF %s
|
||||
|
||||
.global func1
|
||||
_func1:
|
||||
|
@ -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 --print-imm-hex=false -d -r -triple thumbv7m-none-macho %t | FileCheck --check-prefix=CHECK-MACHO %s
|
||||
@ RUN: llvm-objdump -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 --print-imm-hex=false -d -r -triple thumbv7m-none-eabi %t | FileCheck --check-prefix=CHECK-ELF %s
|
||||
@ RUN: llvm-objdump -d -r -triple thumbv7m-none-eabi %t | FileCheck --check-prefix=CHECK-ELF %s
|
||||
|
||||
.global func1
|
||||
_func1:
|
||||
|
@ -1,5 +1,5 @@
|
||||
@ RUN: llvm-mc -triple thumbv7-apple-darwin -filetype=obj -o %t.o %s
|
||||
@ RUN: llvm-objdump --print-imm-hex=false -triple thumbv7-apple-darwin -d %t.o | FileCheck %s
|
||||
@ RUN: llvm-objdump -triple thumbv7-apple-darwin -d %t.o | FileCheck %s
|
||||
|
||||
.thumb
|
||||
start:
|
||||
|
@ -1,4 +1,4 @@
|
||||
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
// Test that we correctly relax these instructions into versions that use
|
||||
// 16 or 32 bit immediate values.
|
||||
|
@ -1,4 +1,4 @@
|
||||
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
// Test that we avoid relaxing these instructions and instead generate versions
|
||||
// that use 8-bit immediate values.
|
||||
|
@ -1,4 +1,4 @@
|
||||
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
// Test that we correctly relax these instructions into versions that use
|
||||
// 16 or 32 bit immediate values.
|
||||
|
@ -1,4 +1,4 @@
|
||||
// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-objdump -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
#RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
# Make sure that the assembler mapped instructions are being handled correctly.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
#RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
.text
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mc -arch=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
# RUN: llvm-mc -arch=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
.text
|
||||
# CHECK-LABEL: 0:
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d -r - | FileCheck %s
|
||||
# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump -d -r - | FileCheck %s
|
||||
|
||||
a:
|
||||
# CHECK: r0 = add(r0, #0)
|
||||
|
@ -1,5 +1,5 @@
|
||||
;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \
|
||||
;; RUN: | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
;; RUN: | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
define i1 @foo (i32 %a)
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \
|
||||
;; RUN: | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
;; RUN: | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
define i1 @foo (i32 %a)
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \
|
||||
;; RUN: | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
;; RUN: | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
define i1 @foo (i32 %a)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s
|
||||
# Make sure relaxation doesn't hinder newvalue calculation
|
||||
|
||||
#CHECK: r18 = add(r2, #-6)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
# RUN: llvm-mc -triple=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
# verify two extenders generated during relaxation
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: llvm-mc -triple=hexagon -mcpu=hexagonv60 -filetype=obj %s | \
|
||||
#RUN: llvm-objdump --print-imm-hex=false -triple=hexagon -mcpu=hexagonv60 -d - | \
|
||||
#RUN: llvm-objdump -triple=hexagon -mcpu=hexagonv60 -d - | \
|
||||
#RUN: FileCheck %s
|
||||
|
||||
#CHECK: 292cc11b { vmem(r12++#1) = v27 }
|
||||
|
@ -2,7 +2,7 @@
|
||||
# RUN: FileCheck %s
|
||||
|
||||
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -relocation-model=pic -filetype=obj -o -| \
|
||||
# RUN: llvm-objdump --print-imm-hex=false -d -r -arch=mips - | \
|
||||
# RUN: llvm-objdump -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 | \
|
||||
|
@ -2,7 +2,7 @@
|
||||
# RUN: FileCheck %s
|
||||
|
||||
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 -relocation-model=pic -filetype=obj -o -| \
|
||||
# RUN: llvm-objdump --print-imm-hex=false -d -r -arch=mips - | \
|
||||
# RUN: llvm-objdump -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 | \
|
||||
|
@ -1,19 +1,19 @@
|
||||
# RUN: llvm-mc -triple mips64-unknown-unknown -target-abi o32 -filetype=obj -o - %s | \
|
||||
# RUN: llvm-objdump --print-imm-hex=false -d -r -arch=mips64 - | \
|
||||
# RUN: llvm-objdump -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 --print-imm-hex=false -d -r -t -arch=mips64 - | \
|
||||
# RUN: llvm-objdump -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 --print-imm-hex=false -d -r -t -arch=mips64 - | \
|
||||
# RUN: llvm-objdump -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 | \
|
||||
|
@ -2,7 +2,7 @@
|
||||
# as an argument of the %got relocation.
|
||||
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s \
|
||||
# RUN: | llvm-objdump --print-imm-hex=false -d -r - | FileCheck %s
|
||||
# RUN: | llvm-objdump -d -r - | FileCheck %s
|
||||
|
||||
.text
|
||||
foo:
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: llvm-mc -filetype=obj %s -triple=mips-unknown-linux \
|
||||
# RUN: | llvm-objdump -d - | FileCheck %s
|
||||
# RUN: | llvm-objdump -d --print-imm-hex - | FileCheck %s
|
||||
|
||||
# CHECK: jal 0x20
|
||||
# CHECK: addiu $sp, $sp, -0x20
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips64el-unknown-linux -mcpu=mips64r2 %s \
|
||||
# RUN: | llvm-objdump --print-imm-hex=false -disassemble -triple mips64el - | FileCheck %s
|
||||
# RUN: | llvm-objdump -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
|
||||
|
@ -2,7 +2,7 @@
|
||||
# RUN: | FileCheck %s -check-prefix=CHECK-ENC
|
||||
|
||||
# RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s \
|
||||
# RUN: | llvm-objdump --print-imm-hex=false -disassemble - | FileCheck %s -check-prefix=CHECK-INSTR
|
||||
# RUN: | llvm-objdump -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o - \
|
||||
# RUN: | llvm-objdump --print-imm-hex=false -d - | FileCheck %s
|
||||
# RUN: | llvm-objdump -d - | FileCheck %s
|
||||
|
||||
# CHECK: foo:
|
||||
# CHECK-NEXT: 0: 0c 00 00 02 jal 8 <loc1>
|
||||
|
@ -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 --print-imm-hex=false %t.o -triple mipsel -mattr=+micromips -d | FileCheck %s
|
||||
# RUN: llvm-objdump %t.o -triple mipsel -mattr=+micromips -d | FileCheck %s
|
||||
|
||||
# Check that fixup data is written in the microMIPS specific little endian
|
||||
# byte order.
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -target-abi=n64 %s -o - \
|
||||
; RUN: | llvm-objdump --print-imm-hex=false -disassemble -triple mips64el -mattr +mips64r2 - \
|
||||
; RUN: | llvm-objdump -disassemble -triple mips64el -mattr +mips64r2 - \
|
||||
; RUN: | FileCheck %s
|
||||
|
||||
define i64 @dext(i64 %i) nounwind readnone {
|
||||
|
@ -1,8 +1,8 @@
|
||||
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -disable-mips-delay-filler %s -o - \
|
||||
; RUN: | llvm-objdump --print-imm-hex=false -disassemble -triple mips64el - | FileCheck %s
|
||||
; RUN: | llvm-objdump -disassemble -triple mips64el - | FileCheck %s
|
||||
|
||||
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - \
|
||||
; RUN: | llvm-objdump --print-imm-hex=false -disassemble -triple mips64el - | FileCheck %s
|
||||
; RUN: | llvm-objdump -disassemble -triple mips64el - | FileCheck %s
|
||||
|
||||
define i64 @f3(i64 %a0) nounwind readnone {
|
||||
entry:
|
||||
|
@ -4,10 +4,10 @@
|
||||
// field.
|
||||
|
||||
// RUN: llvm-mc -mcpu=mips32r2 -triple=mipsel-pc-linux -filetype=obj -relocation-model=static %s -o - \
|
||||
// RUN: | llvm-objdump --print-imm-hex=false -disassemble -mattr +mips32r2 - \
|
||||
// RUN: | llvm-objdump -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 --print-imm-hex=false -disassemble -mattr +mips32r2 - \
|
||||
// RUN: | llvm-objdump -disassemble -mattr +mips32r2 - \
|
||||
// RUN: | FileCheck %s
|
||||
|
||||
.text
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-nacl %s \
|
||||
# RUN: | llvm-objdump --print-imm-hex=false -triple mipsel -disassemble -no-show-raw-insn - \
|
||||
# RUN: | llvm-objdump -triple mipsel -disassemble -no-show-raw-insn - \
|
||||
# RUN: | FileCheck %s
|
||||
|
||||
# This test tests that address-masking sandboxing is added when given assembly
|
||||
|
@ -1,9 +1,9 @@
|
||||
# RUN: llvm-mc -triple=i686-linux -filetype=obj %s -o - | \
|
||||
# RUN: llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn -r - | FileCheck %s
|
||||
# RUN: llvm-objdump -disassemble -no-show-raw-insn -r - | FileCheck %s
|
||||
# RUN: llvm-mc -triple=i686-nacl -filetype=obj %s -o - | \
|
||||
# RUN: llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn -r - | FileCheck %s
|
||||
# RUN: llvm-objdump -disassemble -no-show-raw-insn -r - | FileCheck %s
|
||||
# RUN: llvm-mc -triple=i686-nacl -filetype=obj -mc-relax-all %s -o - | \
|
||||
# RUN: llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn -r - | FileCheck %s
|
||||
# RUN: llvm-objdump -disassemble -no-show-raw-insn -r - | FileCheck %s
|
||||
|
||||
.bundle_align_mode 5
|
||||
.text
|
||||
|
@ -1,8 +1,8 @@
|
||||
# RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - \
|
||||
# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - \
|
||||
# RUN: | llvm-objdump -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 --print-imm-hex=false -disassemble -no-show-raw-insn - \
|
||||
# RUN: | llvm-objdump -disassemble -no-show-raw-insn - \
|
||||
# RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-RELAX %s
|
||||
|
||||
.text
|
||||
|
@ -1,8 +1,8 @@
|
||||
# RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - \
|
||||
# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - \
|
||||
# RUN: | llvm-objdump -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 --print-imm-hex=false -disassemble -no-show-raw-insn - \
|
||||
# RUN: | llvm-objdump -disassemble -no-show-raw-insn - \
|
||||
# RUN: | FileCheck -check-prefix=CHECK -check-prefix=CHECK-RELAX %s
|
||||
|
||||
.text
|
||||
|
@ -1,7 +1,7 @@
|
||||
# RUN: llvm-mc -triple=i686-nacl -filetype=obj %s -o - \
|
||||
# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - | FileCheck %s
|
||||
# RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s
|
||||
# RUN: llvm-mc -triple=i686-nacl -filetype=obj -mc-relax-all %s -o - \
|
||||
# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - | FileCheck %s
|
||||
# RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck %s
|
||||
|
||||
.bundle_align_mode 5
|
||||
.text
|
||||
|
@ -1,7 +1,7 @@
|
||||
# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \
|
||||
# RUN: | llvm-objdump --print-imm-hex=false -disassemble -no-show-raw-insn - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-OPT %s
|
||||
# RUN: | llvm-objdump -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 --print-imm-hex=false -disassemble -no-show-raw-insn - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-RELAX %s
|
||||
# RUN: | llvm-objdump -disassemble -no-show-raw-insn - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-RELAX %s
|
||||
|
||||
# Test simple NOP insertion for single instructions.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t
|
||||
// RUN: llvm-objdump --print-imm-hex=false -d %t | FileCheck %s
|
||||
// RUN: llvm-objdump -d %t | FileCheck %s
|
||||
|
||||
//PR18303
|
||||
.global edata
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-mc -filetype=obj %s -triple=x86_64-apple-darwin9 | llvm-objdump -d - | FileCheck %s
|
||||
# RUN: llvm-mc -filetype=obj %s -triple=x86_64-apple-darwin9 | llvm-objdump -d --print-imm-hex - | FileCheck %s
|
||||
|
||||
# CHECK: movabsq $0x7fffffffffffffff, %rcx
|
||||
movabsq $0x7fffffffffffffff, %rcx
|
||||
|
@ -1,4 +1,4 @@
|
||||
RUN: llvm-objdump --print-imm-hex=false -disassemble -triple mips64el -mattr +mips64r2 %p/../Inputs/dext-test.elf-mips64r2 \
|
||||
RUN: llvm-objdump -disassemble -triple mips64el -mattr +mips64r2 %p/../Inputs/dext-test.elf-mips64r2 \
|
||||
RUN: | FileCheck %s
|
||||
|
||||
CHECK: Disassembly of section .text:
|
||||
|
@ -1,4 +1,4 @@
|
||||
RUN: llvm-objdump --print-imm-hex=false -d -mattr=micromips %p/../Inputs/micro-mips.elf-mipsel \
|
||||
RUN: llvm-objdump -d -mattr=micromips %p/../Inputs/micro-mips.elf-mipsel \
|
||||
RUN: | FileCheck %s
|
||||
|
||||
CHECK: foo:
|
||||
|
@ -1,14 +1,14 @@
|
||||
RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.coff-i386 \
|
||||
RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.coff-i386 \
|
||||
RUN: | FileCheck %s -check-prefix COFF-i386
|
||||
RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.coff-x86-64 \
|
||||
RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.coff-x86-64 \
|
||||
RUN: | FileCheck %s -check-prefix COFF-x86-64
|
||||
RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.macho-i386 \
|
||||
RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.macho-i386 \
|
||||
RUN: | FileCheck %s -check-prefix MACHO-i386
|
||||
RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.macho-x86-64 \
|
||||
RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.macho-x86-64 \
|
||||
RUN: | FileCheck %s -check-prefix MACHO-x86-64
|
||||
RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.elf-i386 \
|
||||
RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.elf-i386 \
|
||||
RUN: | FileCheck %s -check-prefix ELF-i386
|
||||
RUN: llvm-objdump --print-imm-hex=false -d -r %p/../Inputs/trivial-object-test.elf-x86-64 \
|
||||
RUN: llvm-objdump -d -r %p/../Inputs/trivial-object-test.elf-x86-64 \
|
||||
RUN: | FileCheck %s -check-prefix ELF-x86-64
|
||||
|
||||
COFF-i386: file format COFF-i386
|
||||
|
@ -1,10 +1,10 @@
|
||||
RUN: llvm-objdump --print-imm-hex=false -d %p/../Inputs/trivial-object-test.coff-i386 \
|
||||
RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.coff-i386 \
|
||||
RUN: | FileCheck %s -check-prefix COFF-i386
|
||||
RUN: llvm-objdump --print-imm-hex=false -d %p/../Inputs/trivial-object-test.coff-x86-64 \
|
||||
RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.coff-x86-64 \
|
||||
RUN: | FileCheck %s -check-prefix COFF-x86-64
|
||||
RUN: llvm-objdump --print-imm-hex=false -d %p/../Inputs/trivial-object-test.elf-i386 \
|
||||
RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.elf-i386 \
|
||||
RUN: | FileCheck %s -check-prefix ELF-i386
|
||||
RUN: llvm-objdump --print-imm-hex=false -d %p/../Inputs/trivial-object-test.elf-x86-64 \
|
||||
RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.elf-x86-64 \
|
||||
RUN: | FileCheck %s -check-prefix ELF-x86-64
|
||||
|
||||
COFF-i386: file format COFF-i386
|
||||
|
@ -1,7 +1,7 @@
|
||||
// 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
|
||||
// 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
|
||||
|
||||
OBJ: 000000000000001c adrp x0, L_.str@PAGE
|
||||
OBJ: 0000000000000020 add x0, x0, L_.str@PAGEOFF
|
||||
|
@ -1,5 +1,5 @@
|
||||
// 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
|
||||
// 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
|
||||
|
||||
OBJ: 00000006 movw r3, :lower16:((54-14)-4)
|
||||
OBJ: 0000000a movt r3, :upper16:((54-14)-4)
|
||||
|
@ -1,4 +1,4 @@
|
||||
// RUN: llvm-objdump --print-imm-hex=false -d %p/Inputs/disassemble.dll.coff-i386 | \
|
||||
// RUN: llvm-objdump -d %p/Inputs/disassemble.dll.coff-i386 | \
|
||||
// RUN: FileCheck %s
|
||||
|
||||
// CHECK-LABEL: g:
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Check that target displacement has '0x' prefix
|
||||
# to accent hex format of the number.
|
||||
|
||||
# RUN: llvm-objdump --print-imm-hex=false -d %p/Inputs/hello.exe.macho-i386 | FileCheck %s
|
||||
# RUN: llvm-objdump -d %p/Inputs/hello.exe.macho-i386 | FileCheck %s
|
||||
|
||||
# CHECK: 1f47: e8 00 00 00 00 calll 0 <_main+0xC>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# RUN: llvm-objdump -m -d %p/Inputs/hello.obj.macho-x86_64 -no-show-raw-insn -no-leading-addr | FileCheck %s
|
||||
# RUN: llvm-objdump -m -d %p/Inputs/hello.obj.macho-x86_64 -no-show-raw-insn -print-imm-hex -no-leading-addr | FileCheck %s
|
||||
|
||||
# CHECK: (__TEXT,__text) section
|
||||
# CHECK: _main:
|
||||
|
@ -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 | FileCheck %s
|
||||
# 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
|
||||
|
||||
# CHECK: (__TEXT,__text) section
|
||||
# CHECK: start:
|
||||
|
@ -1,4 +1,4 @@
|
||||
# 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
|
||||
# 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
|
||||
|
||||
.section __FOO, __bar
|
||||
_foo:
|
||||
|
@ -1,14 +1,14 @@
|
||||
// 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-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-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 %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 -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
|
||||
// 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
|
||||
|
||||
OBJ: 0000000000000008 leaq L_.str(%rip), %rax ## literal pool for: "Hello world\n"
|
||||
OBJ: 0000000000000026 callq _printf
|
||||
|
@ -1,6 +1,6 @@
|
||||
RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -d -m -no-show-raw-insn -full-leading-addr -arch all \
|
||||
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: | 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 -arch i386 \
|
||||
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: | 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
|
||||
|
@ -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 --print-imm-hex=false -macho -objc-meta-data \
|
||||
# RUN: llvm-objdump -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 --print-imm-hex=false -macho -objc-meta-data \
|
||||
# RUN: llvm-objdump -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 --print-imm-hex=false -macho -objc-meta-data \
|
||||
# RUN: llvm-objdump -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 --print-imm-hex=false -macho -objc-meta-data \
|
||||
# RUN: llvm-objdump -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 --print-imm-hex=false -macho -objc-meta-data \
|
||||
# RUN: llvm-objdump -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 --print-imm-hex=false -macho -objc-meta-data \
|
||||
# RUN: llvm-objdump -macho -objc-meta-data \
|
||||
# RUN: %p/Inputs/malformed-machos/mem-crup-0261.macho
|
||||
|
||||
# RUN: llvm-objdump --print-imm-hex=false -macho -disassemble \
|
||||
# RUN: llvm-objdump -macho -disassemble \
|
||||
# RUN: %p/Inputs/malformed-machos/mem-crup-0337.macho \
|
||||
# RUN: | FileCheck -check-prefix=m0337 %s
|
||||
|
||||
|
@ -177,8 +177,7 @@ PrivateHeadersShort("p", cl::desc("Alias for --private-headers"),
|
||||
|
||||
cl::opt<bool>
|
||||
llvm::PrintImmHex("print-imm-hex",
|
||||
cl::desc("Use hex format for immediate values"),
|
||||
cl::init(true));
|
||||
cl::desc("Use hex format for immediate values"));
|
||||
|
||||
cl::opt<bool> PrintFaultMaps("fault-map-section",
|
||||
cl::desc("Display contents of faultmap section"));
|
||||
|
Loading…
Reference in New Issue
Block a user