llvm.org GIT mirror llvm / 73477b9
Prefix failing commands with not to make clear they are expected to fail. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185554 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
26 changed file(s) with 30 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s
0 ; RUN: not llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s
11
22 ; Check for error message:
33 ; CHECK: non-trivial scalar-to-vector conversion, possible invalid constraint for vector type
None ; RUN: llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s
0 ; RUN: not llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s
11
22 ; Check for error message:
33 ; CHECK: scalar-to-vector conversion failed, possible invalid constraint for vector type
None ; RUN: llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s
0 ; RUN: not llc < %s -march=arm -mcpu=cortex-a8 2>&1 | FileCheck %s
11
22 ; Check for error message:
33 ; CHECK: error: inline asm not supported yet: don't know how to handle tied indirect register inputs
0 ; RUN: llc < %s -march=r600 -show-mc-encoding -mcpu=barts | FileCheck --check-prefix=NI-CHECK %s
1 ; RUN: llc < %s -march=r600 -show-mc-encoding -mcpu=cayman | FileCheck --check-prefix=CM-CHECK %s
1 ; RUN: not llc < %s -march=r600 -show-mc-encoding -mcpu=cayman | FileCheck --check-prefix=CM-CHECK %s
22
33 ; NI-CHECK: @vtx_fetch32
44 ; NI-CHECK: VTX_READ_32 T[[GPR:[0-9]]].X, T[[GPR]].X, 0 ; encoding: [0x40,0x01,0x0[[GPR]],0x10,0x0[[GPR]],0xf0,0x5f,0x13,0x00,0x00,0x08,0x00
None ; RUN: llc < %s -march=x86-64 -mattr=-sse 2>&1 | FileCheck --check-prefix NOSSE %s
0 ; RUN: not llc < %s -march=x86-64 -mattr=-sse 2>&1 | FileCheck --check-prefix NOSSE %s
11 ; RUN: llc < %s -march=x86-64 | FileCheck %s
22
33 ; NOSSE: {{SSE register return with SSE disabled}}
None ; RUN: llc < %s -march=x86 -mcpu=i686 -mattr=-sse 2>&1 | FileCheck --check-prefix NOSSE %s
0 ; RUN: not llc < %s -march=x86 -mcpu=i686 -mattr=-sse 2>&1 | FileCheck --check-prefix NOSSE %s
11 ; RUN: llc < %s -march=x86 -mcpu=i686 -mattr=+sse | FileCheck %s
22
33 ; NOSSE: {{SSE register return with SSE disabled}}
None ; RUN: FileCheck -input-file %s %s 2>&1 | FileCheck -check-prefix DIAG %s
0 ; RUN: not FileCheck -input-file %s %s 2>&1 | FileCheck -check-prefix DIAG %s
11
22 CHECK-NOT: test
33
0 // 64 bit little endian
1 // RUN: llvm-mc -filetype=obj -triple aarch64-none-linux-gnu %s -o - | llvm-objdump -d
1 // RUN: llvm-mc -filetype=obj -triple aarch64-none-linux-gnu %s -o - | llvm-objdump -d -
22
33 // We just want to see if llvm-objdump works at all.
44 // CHECK: .text
None // RUN: llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s
0 // RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s
11
22 // Write-only
33 mrs x10, icc_eoir1_el1
None // RUN: llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s
0 // RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck %s
11 // Write-only
22 mrs x12, trcoslar
33 mrs x10, trclar
None @ RUN: llvm-mc -show-encoding -arch=arm < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ARM-ONLY
0 @ RUN: not llvm-mc -show-encoding -arch=arm < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ARM-ONLY
11 @ RUN: llvm-mc -show-encoding -triple=armv4t < %s 2>&1| FileCheck %s --check-prefix=CHECK-ARM-THUMB
22 @ RUN: llvm-mc -show-encoding -arch=arm -mcpu=cortex-a15 < %s 2>&1| FileCheck %s --check-prefix=CHECK-ARM-THUMB
3 @ RUN: llvm-mc -show-encoding -arch=arm -mcpu=cortex-m3 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
4 @ RUN: llvm-mc -show-encoding -triple=armv7m < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
5 @ RUN: llvm-mc -show-encoding -triple=armv6m < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
3 @ RUN: not llvm-mc -show-encoding -arch=arm -mcpu=cortex-m3 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
4 @ RUN: not llvm-mc -show-encoding -triple=armv7m < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
5 @ RUN: not llvm-mc -show-encoding -triple=armv6m < %s 2>&1 | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
66
77 @ Make sure correct diagnostics are given for CPUs without support for
88 @ one or other of the execution states.
None @ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ
0 @ RUN: not llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ
11 @ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=trustzone < %s | FileCheck %s -check-prefix=TZ
22
33 .syntax unified
None @ RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ
0 @ RUN: not llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ
11 @ RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=trustzone < %s | FileCheck %s -check-prefix=TZ
22
33 .syntax unified
None @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi \
0 @ RUN: not llvm-mc %s -triple=armv7-unknown-linux-gnueabi \
11 @ RUN: -filetype=obj -o /dev/null 2>&1 | FileCheck %s
22
33 @ Check the diagnostics for mismatched .fnend directive
None @ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi \
0 @ RUN: not llvm-mc %s -triple=armv7-unknown-linux-gnueabi \
11 @ RUN: -filetype=obj -o /dev/null 2>&1 | FileCheck %s
22
33 @ Check the diagnostics for the mismatched .fnstart directives.
None @ RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 < %s 2>&1 | FileCheck %s
0 @ RUN: not llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 < %s 2>&1 | FileCheck %s
11
22 hint #5
33 hint #100
None @ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 < %s 2>&1 | FileCheck %s
0 @ RUN: not llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 < %s 2>&1 | FileCheck %s
11
22 hint #5
33 hint.w #5
None # RUN: llvm-mc -triple i386-linux-gnu < %s 2>&1 | FileCheck %s -check-prefix=ELF
1 # RUN: llvm-mc -triple i386-apple-darwin < %s 2>&1 | FileCheck %s -check-prefix=DARWIN
0 # RUN: not llvm-mc -triple i386-linux-gnu < %s 2>&1 | FileCheck %s -check-prefix=ELF
1 # RUN: not llvm-mc -triple i386-apple-darwin < %s 2>&1 | FileCheck %s -check-prefix=DARWIN
22
33 .align 3
44 # ELF: error: alignment must be a power of 2
None # RUN: llvm-mc -triple i386-apple-darwin9 %s | FileCheck %s
0 # RUN: not llvm-mc -triple i386-apple-darwin9 %s | FileCheck %s
11
22 # CHECK: TEST0:
33 # CHECK: .align 1
None // RUN: not llvm-mc -triple i386-apple-darwin10 %s 2> %t.err | FileCheck %s
0 // RUN: llvm-mc -triple i386-apple-darwin10 %s | FileCheck %s
11
22 .macro test1
33 .globl "$0 $1 $2 $$3 $n"
None # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
0 # RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
11
22 # Missing .bundle_align_mode argument
33 # CHECK: error: unknown token
None # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
0 # RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
11
22 # CHECK: ERROR: Fragment can't be larger than a bundle size
33
None # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
0 # RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
11
22 # Missing .bundle_align_mode argument
33 # CHECK: error: invalid option
None # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
0 # RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
11
22 # .bundle_lock can't come without a .bundle_align_mode before it
33
None # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
0 # RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
11
22 # This test invokes .bundle_lock and then switches to a different section
33 # w/o the appropriate unlock.
None # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
0 # RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
11
22 # .bundle_unlock can't come without a .bundle_lock before it
33