llvm.org GIT mirror llvm / 2599294
[LLVM] Remove unwanted --check-prefix=CHECK from unit tests. NFC. Summary: Removed unwanted --check-prefix=CHECK from numerous unit tests. Reviewers: t.p.northover, dblaikie, uweigand, MatzeB, tstellarAMD, mcrosier Subscribers: mcrosier, dsanders Differential Revision: http://reviews.llvm.org/D19279 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266834 91177308-0d34-0410-b5e6-96231b3b80d8 Mandeep Singh Grang 3 years ago
69 changed file(s) with 74 addition(s) and 74 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=neon | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=neon | FileCheck %s
11
22 define void @test_store_f128(fp128* %ptr, fp128 %val) #0 {
33 ; CHECK-LABEL: test_store_f128
None ; RUN: llc -mtriple=aarch64-linux-gnu -disable-post-ra -verify-machineinstrs -o - %s | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -mtriple=aarch64-linux-gnu -disable-post-ra -verify-machineinstrs -o - %s | FileCheck %s
11 ; RUN: llc -mtriple=arm64-apple-ios -disable-post-ra -verify-machineinstrs -o - %s | FileCheck %s --check-prefix=CHECK-MACHO
22 ; RUN: llc -mtriple=aarch64-none-linux-gnu -disable-post-ra -mattr=-fp-armv8 -verify-machineinstrs < %s | FileCheck --check-prefix=CHECK-NOFP-ARM64 %s
33
None ; RUN: llc -mtriple=aarch64-none-linux-gnu -disable-post-ra -verify-machineinstrs < %s | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -mtriple=aarch64-none-linux-gnu -disable-post-ra -verify-machineinstrs < %s | FileCheck %s
11 ; RUN: llc -mtriple=aarch64-none-linux-gnu -disable-post-ra -verify-machineinstrs < %s | FileCheck %s --check-prefix=CHECK-REG
22
33
None ; RUN: llc -mtriple=aarch64-none-linux-gnu < %s | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -mtriple=aarch64-none-linux-gnu < %s | FileCheck %s
11
22 ; First, a simple example from Clang. The registers could plausibly be
33 ; different, but probably won't be.
None ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
11
22 @var32 = global i32 0
33 @var64 = global i64 0
None ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -mcpu=cyclone | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -mcpu=cyclone | FileCheck %s
11 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -mattr=-fp-armv8 | FileCheck --check-prefix=CHECK-NOFP %s
22
33 @var32 = global i32 0
0 ; RUN: llc < %s -mtriple=aarch64-apple-ios | FileCheck %s
1 ; RUN: llc < %s -mtriple=aarch64-apple-ios -enable-shrink-wrap=true | FileCheck --check-prefix=CHECK %s
1 ; RUN: llc < %s -mtriple=aarch64-apple-ios -enable-shrink-wrap=true | FileCheck %s
22 ; Shrink wrapping currently does not kick in because we have a TLS CALL
33 ; in the entry block and it will clobber the link register.
44
None ; RUN: llc -verify-machineinstrs -o - %s -mtriple=arm64-apple-ios7.0 -aarch64-atomic-cfg-tidy=0 | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -verify-machineinstrs -o - %s -mtriple=arm64-apple-ios7.0 -aarch64-atomic-cfg-tidy=0 | FileCheck %s
11 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -mattr=-fp-armv8 -aarch64-atomic-cfg-tidy=0 | FileCheck --check-prefix=CHECK-NOFP %s
22
33 define i32 @test_select_i32(i1 %bit, i32 %a, i32 %b) {
None ; RUN: llc -disable-peephole -aarch64-atomic-cfg-tidy=0 -verify-machineinstrs -mtriple=aarch64-apple-darwin < %s | FileCheck --check-prefix=CHECK %s
0 ; RUN: llc -disable-peephole -aarch64-atomic-cfg-tidy=0 -verify-machineinstrs -mtriple=aarch64-apple-darwin < %s | FileCheck %s
11 ; RUN: llc -disable-peephole -fast-isel -fast-isel-abort=1 -aarch64-atomic-cfg-tidy=0 -verify-machineinstrs -mtriple=aarch64-apple-darwin < %s | FileCheck --check-prefix=CHECK --check-prefix=FAST %s
22
33 define i32 @icmp_eq_i8(i8 zeroext %a) {
None ; RUN: llc -verify-machineinstrs -o - %s -mtriple=aarch64-none-linux-gnu -mcpu=cyclone | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -verify-machineinstrs -o - %s -mtriple=aarch64-none-linux-gnu -mcpu=cyclone | FileCheck %s
11
22 @varfloat = global float 0.0
33 @vardouble = global double 0.0
None ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -disable-post-ra | FileCheck --check-prefix=CHECK %s
0 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -disable-post-ra | FileCheck %s
11 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -mattr=-fp-armv8 -disable-post-ra | FileCheck --check-prefix=CHECK-NOFP %s
22
33 %myStruct = type { i64 , i8, i32 }
None ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
11 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -mattr=-neon | FileCheck --check-prefix=CHECK-NONEON %s
22 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu -mattr=-fp-armv8 | FileCheck --check-prefix=CHECK-NOFP %s
33 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64_be-none-linux-gnu | FileCheck --check-prefix=CHECK-BE %s
None ; RUN: llc -verify-machineinstrs -o - %s -mtriple=arm64-apple-ios7.0 | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -verify-machineinstrs -o - %s -mtriple=arm64-apple-ios7.0 | FileCheck %s
11
22 define i64 @test0() {
33 ; CHECK-LABEL: test0:
None ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=+neon | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=+neon | FileCheck %s
11
22 define <8 x i8> @movi8b() {
33 ; CHECK-LABEL: movi8b:
None ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=+neon | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=+neon | FileCheck %s
11
22 %struct.int8x8x2_t = type { [2 x <8 x i8>] }
33 %struct.int16x4x2_t = type { [2 x <4 x i16>] }
None ; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs -mattr=+load-store-opt -enable-misched < %s | FileCheck --check-prefix=CHECK %s
1 ; RUN: llc -march=amdgcn -mcpu=bonaire -verify-machineinstrs -mattr=+load-store-opt -enable-misched < %s | FileCheck --check-prefix=CHECK %s
0 ; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs -mattr=+load-store-opt -enable-misched < %s | FileCheck %s
1 ; RUN: llc -march=amdgcn -mcpu=bonaire -verify-machineinstrs -mattr=+load-store-opt -enable-misched < %s | FileCheck %s
22
33 ; This test is for a bug in the machine scheduler where stores without
44 ; an underlying object would be moved across the barrier. In this
None ;RUN: llc -march=amdgcn -mcpu=verde < %s | FileCheck %s --check-prefix=CHECK
0 ;RUN: llc -march=amdgcn -mcpu=verde < %s | FileCheck %s
11
22 ; Test a simple uniform loop that lives inside non-uniform control flow.
33
0 ; RUN: llc < %s -mtriple=armv7k-apple-watchos2.0 | FileCheck %s
1 ; RUN: llc < %s -mtriple=armv7k-apple-watchos2.0 -enable-shrink-wrap=true | FileCheck --check-prefix=CHECK %s
1 ; RUN: llc < %s -mtriple=armv7k-apple-watchos2.0 -enable-shrink-wrap=true | FileCheck %s
22 ; RUN: llc < %s -mtriple=armv7-apple-ios8.0 | FileCheck %s
3 ; RUN: llc < %s -mtriple=armv7-apple-ios8.0 -enable-shrink-wrap=true | FileCheck --check-prefix=CHECK %s
3 ; RUN: llc < %s -mtriple=armv7-apple-ios8.0 -enable-shrink-wrap=true | FileCheck %s
44
55 ; RUN: llc < %s -mtriple=armv7k-apple-watchos2.0 -O0 | FileCheck --check-prefix=CHECK-O0 --check-prefix=WATCH-O0 %s
66 ; RUN: llc < %s -mtriple=armv7-apple-ios8.0 -O0 | FileCheck --check-prefix=CHECK-O0 --check-prefix=IOS-O0 %s
None ; RUN: llc -mattr=+fp16 < %s | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -mattr=+fp16 < %s | FileCheck %s
11
22 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
33 target triple = "armv7a--none-eabi"
0 ; RUN: llc -mtriple=armv8 -mcpu=cyclone < %s | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOTSWIFT
1 ; RUN: llc -mtriple=armv8 -mcpu=swift < %s | FileCheck %s --check-prefix=CHECK
1 ; RUN: llc -mtriple=armv8 -mcpu=swift < %s | FileCheck %s
22 ; RUN: llc -mtriple=armv8 -mcpu=cortex-a57 < %s | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOTSWIFT
33
44 declare arm_aapcs_vfpcc void @take_vec64(<2 x i32>)
None ; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=CHECK
0 ; RUN: llc -march=mipsel < %s | FileCheck %s
11 ; RUN: llc -march=mips64el < %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK64
22
33 ; CHECK-LABEL: mul5_32:
None ; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -enable-shrink-wrap=true %s -o - | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -enable-shrink-wrap=true %s -o - | FileCheck %s
11 ;
22 ; Test the use of a non-R0 register to save/restore the LR in function
33 ; prologue/epilogue.
None ; RUN: llc < %s -mtriple=powerpc-apple-darwin -march=ppc32 -verify-machineinstrs | FileCheck %s --check-prefix=CHECK
1 ; RUN: llc < %s -mtriple=powerpc-apple-darwin -march=ppc64 -verify-machineinstrs | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc < %s -mtriple=powerpc-apple-darwin -march=ppc32 -verify-machineinstrs | FileCheck %s
1 ; RUN: llc < %s -mtriple=powerpc-apple-darwin -march=ppc64 -verify-machineinstrs | FileCheck %s
22 ; RUN: llc < %s -mtriple=powerpc-apple-darwin -mcpu=440 | FileCheck %s --check-prefix=PPC440
33
44 ; Fences
0 ; Test variable-sized allocas and addresses based on them in cases where
11 ; stack arguments are needed.
22 ;
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-A
55 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-B
66 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-C
0 ; Test 8-bit atomic additions.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 16-bit atomic additions.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 8-bit atomic ANDs.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 16-bit atomic ANDs.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 8-bit atomic min/max operations.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 8-bit atomic min/max operations.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 8-bit atomic NANDs.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 16-bit atomic NANDs.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 8-bit atomic ORs.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 16-bit atomic ORs.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 8-bit atomic subtractions.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 16-bit atomic subtractions.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 8-bit atomic exchange.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT
44
55 ; Check exchange with a variable.
0 ; Test 16-bit atomic exchange.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT
44
55 ; Check exchange with a variable.
0 ; Test 8-bit atomic XORs.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
0 ; Test 16-bit atomic XORs.
11 ;
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
33 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT1
44 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CHECK-SHIFT2
55
None ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s -check-prefix=CHECK
0 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s
11
22 define void @foo() !prof !1 {
33 ; Test if a cold block in a loop will be placed at the end of the function
None ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s -check-prefix=CHECK
0 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s
11
22 define void @foo() {
33 ; Test that when determining the edge probability from a node in an inner loop
None ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s -check-prefix=CHECK
0 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s
11 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux -precise-rotation-cost < %s | FileCheck %s -check-prefix=CHECK-PROFILE
22
33 define void @foo() {
None ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s -check-prefix=CHECK
0 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s
11 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux -precise-rotation-cost < %s | FileCheck %s -check-prefix=CHECK-PROFILE
22
33 define void @foo() {
None ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s -check-prefix=CHECK
0 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s
11 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux -outline-optional-branches < %s | FileCheck %s -check-prefix=CHECK-OUTLINE
22
33 define void @foo(i32 %t1, i32 %t2, i32 %t3) {
None ; RUN: llc < %s -mtriple=i686-windows | FileCheck %s -check-prefix=CHECK
0 ; RUN: llc < %s -mtriple=i686-windows | FileCheck %s
11 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s -check-prefix=LINUX64
22
33 declare void @param1(i32 %a)
None ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s -check-prefix=CHECK
0 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
11 ; RUN: llc < %s -mtriple=x86_64-linux -sink-insts-to-avoid-spills | FileCheck %s -check-prefix=SINK
22
33 ; Ensure that we sink copy-like instructions into loops to avoid register
None ; RUN: llc < %s -mtriple=x86_64-apple-darwin -no-integrated-as | FileCheck %s -check-prefix=CHECK
0 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -no-integrated-as | FileCheck %s
11
22 ;CHECK: foo2
33 ;CHECK: movq ___stack_chk_guard@GOTPCREL(%rip), [[R0:%[a-z0-9]+]]
None ; RUN: llc -mtriple=i686-pc-gnu-linux < %s | FileCheck %s -check-prefix=CHECK
0 ; RUN: llc -mtriple=i686-pc-gnu-linux < %s | FileCheck %s
11 ; RUN: llc -mtriple=i686-pc-gnu-linux -print-machineinstrs=expand-isel-pseudos %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK-JT-PROB
22
33
None ; RUN: llc %s -o - | FileCheck %s --check-prefix=CHECK
0 ; RUN: llc %s -o - | FileCheck %s
11 ;
22 ; Note: This test cannot be merged with the shrink-wrapping tests
33 ; because the booleans set on the command line take precedence on
0 ; RUN: llc -O0 -filetype=asm -mtriple=armv7-linux-gnuehabi < %s \
1 ; RUN: | FileCheck %s --check-prefix=CHECK
1 ; RUN: | FileCheck %s
22 ; RUN: llc -O0 -filetype=asm -mtriple=armv7-linux-gnuehabi -emulated-tls < %s \
33 ; RUN: | FileCheck %s --check-prefix=EMU
44
None ; RUN: opt < %s -asan -asan-module -asan-instrument-allocas=1 -S | FileCheck %s --check-prefix=CHECK
0 ; RUN: opt < %s -asan -asan-module -asan-instrument-allocas=1 -S | FileCheck %s
11
22 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
33 target triple = "x86_64-apple-macosx10.10.0"
0 ; Test -sanitizer-coverage-experimental-trace-compares=1
1 ; RUN: opt < %s -sancov -sanitizer-coverage-level=1 -sanitizer-coverage-experimental-trace-compares=1 -S | FileCheck %s --check-prefix=CHECK
1 ; RUN: opt < %s -sancov -sanitizer-coverage-level=1 -sanitizer-coverage-experimental-trace-compares=1 -S | FileCheck %s
22
33 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
44 target triple = "x86_64-unknown-linux-gnu"
0 ; Test -sanitizer-coverage-experimental-trace-compares=1 (instrumenting a switch)
1 ; RUN: opt < %s -sancov -sanitizer-coverage-level=1 -sanitizer-coverage-experimental-trace-compares=1 -S | FileCheck %s --check-prefix=CHECK
1 ; RUN: opt < %s -sancov -sanitizer-coverage-level=1 -sanitizer-coverage-experimental-trace-compares=1 -S | FileCheck %s
22
33 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
44 target triple = "x86_64-unknown-linux-gnu"
0 @ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t
1 @ RUN: FileCheck --check-prefix=CHECK < %t %s
1 @ RUN: FileCheck < %t %s
22
33 @ Check the diagnostics for .pad directive.
44
0 @ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t
1 @ RUN: FileCheck --check-prefix=CHECK < %t %s
1 @ RUN: FileCheck < %t %s
22
33 @ Check the diagnostics for .personality directive.
44
0 @ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t
1 @ RUN: FileCheck --check-prefix=CHECK < %t %s
1 @ RUN: FileCheck < %t %s
22
33 @ Check the diagnostics for .save directive
44
0 @ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t
1 @ RUN: FileCheck --check-prefix=CHECK < %t %s
1 @ RUN: FileCheck < %t %s
22
33 @ Check the diagnostics for .setfp directive.
44
0 @ RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi < %s 2> %t
1 @ RUN: FileCheck --check-prefix=CHECK < %t %s
1 @ RUN: FileCheck < %t %s
22
33 @ Check the diagnostics for .vsave directive
44
None @ RUN: not llvm-mc -triple thumbv7a-none-eabi -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK
1 @ RUN: not llvm-mc -triple thumbv7m-none-eabi -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK
0 @ RUN: not llvm-mc -triple thumbv7a-none-eabi -show-encoding < %s 2>&1 | FileCheck %s
1 @ RUN: not llvm-mc -triple thumbv7m-none-eabi -show-encoding < %s 2>&1 | FileCheck %s
22
33 @ Thumb2 LDRS?[BH] are not valid when Rt == PC (these encodings are used for
44 @ preload hints).
None // RUN: llvm-mc -triple x86_64-unknown-unknown-elf %s | FileCheck %s --check-prefix=CHECK
1 // RUN: llvm-mc -triple x86_64-unknown-darwin %s | FileCheck %s --check-prefix=CHECK
0 // RUN: llvm-mc -triple x86_64-unknown-unknown-elf %s | FileCheck %s
1 // RUN: llvm-mc -triple x86_64-unknown-darwin %s | FileCheck %s
22 // RUN: llvm-mc -triple x86_64-pc-windows-msvc %s | FileCheck %s --check-prefix=MSVC
33
44 .data
None # RUN: not llvm-mc -disassemble %s -triple=thumbv7em 2>&1 | FileCheck --check-prefix=CHECK %s
0 # RUN: not llvm-mc -disassemble %s -triple=thumbv7em 2>&1 | FileCheck %s
11 # RUN: not llvm-mc -disassemble %s -triple=thumbv7m 2>&1 | FileCheck --check-prefix=CHECK --check-prefix=CHECK-V7M %s
22
33 #------------------------------------------------------------------------------
0 # RUN: llvm-mc %s -filetype=obj -triple=mipsel-unknown-linux \
11 # RUN: -mattr=micromips | llvm-readobj -r \
2 # RUN: | FileCheck %s -check-prefix=CHECK
2 # RUN: | FileCheck %s
33 # CHECK: Relocations [
44 # CHECK: 0x0 R_MIPS_32 bar 0x0
55 # CHECK: 0x4 R_MIPS_32 L1 0x0
0 # RUN: llvm-mc -arch=mips -mcpu=mips32r2 -filetype=obj %s -o - | \
11 # RUN: llvm-readobj -sections -section-data - | \
2 # RUN: FileCheck %s -check-prefix=CHECK
2 # RUN: FileCheck %s
33 mfc0 $16, $15, 1
44 mfc0 $16, $16, 1
55
None ; RUN: opt < %s -indvars -S | FileCheck %s --check-prefix=CHECK
0 ; RUN: opt < %s -indvars -S | FileCheck %s
11
22 declare i1 @b()
33
None ; RUN: opt -S -simplifycfg < %s | FileCheck -check-prefix=CHECK %s
0 ; RUN: opt -S -simplifycfg < %s | FileCheck %s
11 ; RUN: opt -S -default-data-layout="p:32:32-p1:16:16" -simplifycfg < %s | FileCheck -check-prefix=CHECK -check-prefix=DL %s
22
33 declare void @foo1()
88 REGENERATE: $ clang -o a.out -fprofile-instr-generate $CFE_TESTDIR/c-general.c
99 REGENERATE: $ LLVM_PROFILE_FILE=$TESTDIR/Inputs/c-general.profraw ./a.out
1010
11 RUN: llvm-profdata show %p/Inputs/c-general.profraw -o - | FileCheck %s -check-prefix=CHECK
11 RUN: llvm-profdata show %p/Inputs/c-general.profraw -o - | FileCheck %s
1212 RUN: llvm-profdata show %p/Inputs/c-general.profraw -o - --function=switches | FileCheck %s -check-prefix=SWITCHES -check-prefix=CHECK
1313
1414 SWITCHES-LABEL: Counters:
0 RUN: grep '^ADDR:' %s | sed -s 's/ADDR: //' \
11 RUN: | llvm-symbolizer -obj="%p/Inputs/test.exe" \
2 RUN: | FileCheck %s --check-prefix=CHECK
2 RUN: | FileCheck %s
33 RUN: grep '^ADDR:' %s | sed -s 's/ADDR: //' \
44 RUN: | llvm-symbolizer -obj="%p/Inputs/test.exe" -demangle=false \
55 RUN: | FileCheck %s --check-prefix=CHECK-NO-DEMANGLE
0 // REQUIRES: x86_64-linux
11 // RUN: %host_cc -O0 -g %s -o %t 2>&1
2 // RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s --check-prefix=CHECK
2 // RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s
33
44 #include
55