Home
last modified time | relevance | path

Searched +full:llvm +full:- +full:test (Results 1 – 25 of 1171) sorted by relevance

12345678910>>...47

/llvm-project/mlir/test/Conversion/FuncToLLVM/
H A Demit-c-wrappers-for-external-functions.mlir1 // RUN: mlir-opt -llvm-request-c-wrappers -convert-func-to-llvm %s | FileCheck %s
3 // CHECK: llvm.func private @res_attrs_with_memref_return() -> (!llvm.struct{{.*}} {test.returnOne})
4 // CHECK-LABEL: llvm.func @_mlir_ciface_res_attrs_with_memref_return
5 // CHECK-SAME: !llvm.ptr
6 // CHECK-NOT: test.returnOne
7 func.func private @res_attrs_with_memref_return() -> (memref<f32> {test.returnOne})
9 // CHECK: llvm.func private @res_attrs_with_value_return() -> (f32 {test.returnOne = 1 : i64})
10 // CHECK-LABEL: llvm.func @_mlir_ciface_res_attrs_with_value_return
11 // CHECK-SAME: -> (f32 {test.returnOne = 1 : i64})
12 func.func private @res_attrs_with_value_return() -> (f32 {test.returnOne = 1})
[all …]
H A Demit-c-wrappers-for-external-callers.mlir1 // RUN: mlir-opt -llvm-request-c-wrappers -convert-func-to-llvm %s | FileCheck %s
3 // CHECK: llvm.func @res_attrs_with_memref_return() -> (!llvm.struct{{.*}} {test.returnOne})
4 // CHECK-LABEL: llvm.func @_mlir_ciface_res_attrs_with_memref_return
5 // CHECK-NOT: test.returnOne
6 func.func @res_attrs_with_memref_return() -> (memref<f32> {test.returnOne}) {
11 // CHECK: llvm.func @res_attrs_with_value_return() -> (f32 {test.returnOne = 1 : i64})
12 // CHECK-LABEL: llvm.func @_mlir_ciface_res_attrs_with_value_return
13 // CHECK-SAME: -> (f32 {test.returnOne = 1 : i64})
14 func.func @res_attrs_with_value_return() -> (f32 {test.returnOne = 1}) {
19 // CHECK: llvm.func @multiple_return() -> !llvm.struct<{{.*}}>
[all …]
/llvm-project/.github/
H A Dnew-prs-labeler.yml2 - bolt/**/*
5 - clang/include/clang/CIR/**/*
6 - clang/lib/CIR/**/*
7 - clang/tools/cir-*/**/*
8 - clang/test/CIR/**/*
11 - clang/include/clang/Analysis/FlowSensitive/**/*
12 - clang/lib/Analysis/FlowSensitive/**/*
13 - clan
[all...]
/llvm-project/llvm/test/tools/llvm-reduce/
H A Dfile-output-type.test2 # RUN: rm -rf %t.dir && mkdir %t.dir && cd %t.dir
4 # RUN: llvm-as -o test-output-format.bc %p/Inputs/test-output-format.ll
7 # RUN: llvm-reduce --delta-passes=instructions --test FileCheck --test-arg %s --test-arg --input-fi…
8 # RUN: llvm-as -disable-output reduced.ll
12 # RUN: rm -f reduced.ll reduced.bc
13llvm-reduce --delta-passes=instructions --test %python --test-arg %p/Inputs/llvm-dis-and-filecheck…
14 # RUN: llvm-dis -disable-output reduced.bc
18llvm-reduce --delta-passes=instructions -o %t.0.bc --test %python --test-arg %p/Inputs/llvm-dis-an…
19 # RUN: llvm-dis -disable-output %t.0.bc
23 # RUN: rm -f reduced.ll reduced.bc
[all …]
/llvm-project/lld/test/MachO/
H A Dorder-file.s2 # RUN: rm -rf %t; split-file %s %t
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/foo.s -o %t/foo.o
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/abs.s -o %t/abs.o
6 # RUN: llvm-ar rcs %t/foo.a %t/foo.o
8 # FOO-FIRST: <_bar>:
9 # FOO-FIRST: <_main>:
11 # FOO-SECOND: <_main>:
12 # FOO-SECOND: <_bar>:
14 # RUN: %lld -lSystem -o %t/test-1 %t/test.o %t/foo.o -order_file %t/ord-1
[all …]
H A Dcommon-symbol-resolution.s2 # RUN: rm -rf %t; split-file %s %t
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/common.s -o %t/common.o
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/weak-common.s -o %t/weak-common.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/defined.s -o %t/defined.o
7 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/weak-defined.s -o %t/weak-defined.o
8 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/libfoo.s -o %t/libfoo.o
9 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o
10 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/calls-foo.s -o %t/calls-foo.o
12 # RUN: %lld -lSystem -order_file %t/order -dylib %t/libfoo.o -o %t/libfoo.dylib
14 # RUN: llvm-ar rcs %t/defined.a %t/defined.o
[all …]
H A Dlto-common-symbol-coalescing.ll5 ;; (and IMO very strange) precedence. This test documents the differences.
7 ; RUN: rm -rf %t; split-file %s %t
8 ; RUN: opt -module-summary %t/test.ll -o %t/test.o
9 ; RUN: opt -module-summary %t/same-size.ll -o %t/same-size.o
10 ; RUN: opt -module-summary %t/smaller-size.ll -o %t/smaller-size.o
11 ; RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/same-size.s -o %t/same-size-asm.o
12 ; RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/smaller-size.s -o %t/smaller-size-asm.o
17 ; RUN: %lld -dylib %t/test.o %t/smaller-size.o -order_file %t/order -o %t/test
18 ; RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s -D#SIZE=2 -D#ALIGN=8
19 ; RUN: %lld -dylib %t/smaller-size.o %t/test.o -order_file %t/order -o %t/test
[all …]
H A Dcommon-symbol-coalescing.s2 # RUN: rm -rf %t; split-file %s %t
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/same-size.s -o %t/same-size.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/smaller-size.s -o %t/smaller-size.o
7 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/zero-align.s -o %t/zero-align.o
8 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/zero-align-round-up.s -o %t/zero-align-
12 # RUN: %lld %t/test.o %t/smaller-size.o -order_file %t/order -o %t/test
13 # RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s -D#ALIGN=8
14 # RUN: %lld %t/smaller-size.o %t/test.o -order_file %t/order -o %t/test
15 # RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s -D#ALIGN=8
[all …]
/llvm-project/llvm/utils/gn/secondary/llvm/utils/llvm-lit/
H A DBUILD.gn1 import("//bolt/test/bolt_lit_site_cfg_files.gni")
2 import("//clang-tools-extra/clangd/test/clangd_lit_site_cfg_files.gni")
3 import("//clang-tools-extra/test/clang_tools_extra_lit_site_cfg_files.gni")
4 import("//clang/test/clang_lit_site_cfg_files.gni")
5 import("//lld/test/lld_lit_site_cfg_files.gni")
6 import("//lldb/test/lldb_lit_site_cfg_file
[all...]
/llvm-project/llvm/test/Verifier/
H A Dimmarg-param-attribute-invalid.ll1 ; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
3 declare void @llvm.test.immarg.intrinsic.i32(i32 immarg)
4 declare void @llvm.test.immarg.intrinsic.v2i32(<2 x i32> immarg)
5 declare void @llvm.test.immarg.intrinsic.f32(float immarg)
6 declare void @llvm.test.immarg.intrinsic.v2f32(<2 x float> immarg)
7 declare void @llvm.test.immarg.intrinsic.2ai32([2 x i32] immarg)
11 define void @call_llvm.test.immarg.intrinsic.i32(i32 %arg) {
12 ; CHECK: immarg operand has non-immediate parameter
13 ; CHECK-NEXT: i32 undef
14 ; CHECK-NEXT: call void @llvm.test.immarg.intrinsic.i32(i32 undef)
[all …]
/llvm-project/llvm/test/CodeGen/RISCV/
H A Dxcvbitmanip.ll2 ; RUN: llc -O0 -mtriple=riscv32 -mattr=+xcvbitmanip -verify-machineinstrs < %s \
3 ; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-O0
4 ; RUN: llc -O3 -mtriple=riscv32 -mattr=+xcvbitmanip -verify-machineinstrs < %s \
5 ; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-O3
7 declare i32 @llvm.riscv.cv.bitmanip.extract(i32, i32)
9 define i32 @test.cv.extractr(i32 %a, i32 %b) {
10 ; CHECK-LABEL: test.cv.extractr:
12 ; CHECK-NEXT: cv.extractr a0, a0, a1
13 ; CHECK-NEXT: ret
14 %1 = call i32 @llvm.riscv.cv.bitmanip.extract(i32 %a, i32 %b)
[all …]
H A Dxcvalu.ll2 ; RUN: llc -O0 -mtriple=riscv32 -mattr=+m -mattr=+xcvalu -verify-machineinstrs < %s \
5 declare i32 @llvm.abs.i32(i32, i1)
6 declare i32 @llvm.smin.i32(i32, i32)
7 declare i32 @llvm.smax.i32(i32, i32)
8 declare i32 @llvm
[all...]
/llvm-project/llvm/docs/
H A DTestSuiteMakefileGuide.rst2 test-suite Makefile Guide (deprecated)
11 First, all tests are executed within the LLVM object directory tree.
12 They *are not* executed inside of the LLVM source tree. This is because
13 the test suite creates temporary files during execution.
15 To run the test suite, you need to use the following steps:
17 #. Check out the ``test-suite`` module with:
19 .. code-block:: bash
21 % git clone https://github.com/llvm/llvm-test-suite.git test-suite
26 #. Configure and build ``llvm``.
28 #. Configure and build ``llvm-gcc``.
[all …]
H A DTestSuiteGuide.md1 test-suite Guide
5 --------
[all...]
H A DTestingGuide.rst2 LLVM Testing Infrastructure Guide
17 This document is the reference manual for the LLVM testing
18 infrastructure. It documents the structure of the LLVM testing
25 In order to use the LLVM testing infrastructure, you will need all of the
26 software required to build LLVM, as well as `Python <http://python.org>`_ 3.8 or
29 LLVM Testing Infrastructure Organization
32 The LLVM testing infrastructure contains three major categories of tests:
34 tests are contained inside the LLVM repository itself under ``llvm/unittests``
35 and ``llvm/tes
[all...]
/llvm-project/llvm/test/Assembler/
H A Dimmarg-param-attribute.ll1 ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
3 ; CHECK: declare void @llvm.test.immarg.intrinsic.i32(i32 immarg)
4 declare void @llvm.test.immarg.intrinsic.i32(i32 immarg)
6 ; CHECK: declare void @llvm.test.immarg.intrinsic.f32(float immarg)
7 declare void @llvm.test.immarg.intrinsic.f32(float immarg)
9 ; CHECK-LABEL: @call_llvm.test.immarg.intrinsic.i32(
10 define void @call_llvm.test.immarg.intrinsic.i32() {
11 ; CHECK: call void @llvm.test.immarg.intrinsic.i32(i32 0)
12 call void @llvm.test.immarg.intrinsic.i32(i32 0)
14 ; CHECK: call void @llvm.test.immarg.intrinsic.i32(i32 0)
[all …]
/llvm-project/llvm/
H A D.gitattributes2 test/Object/Inputs/*.a* binary
3 test/tools/dsymutil/Inputs/*.o binary
4 test/tools/dsymutil/Inputs/*.a binary
5 test/tools/dsymutil/Inputs/*.i386 binary
6 test/tools/dsymutil/Inputs/*.x86_64 binary
7 test/tools/dsymutil/Inputs/*.armv7m binary
8 test/tools/dsymutil/Inputs/*.dylib binary
9 test/tools/dsymutil/Inputs/*.dSYM binary
10 test/tools/dsymutil/Inputs/*.swiftmodule binary
11 test/tool
[all...]
/llvm-project/llvm/docs/CommandGuide/
H A Dllvm-symbolizer.rst1 llvm-symbolizer - convert addresses into source code locations
4 .. program:: llvm-symbolizer
7 -----
[all...]
/llvm-project/llvm/test/tools/llvm-ar/
H A Dmri-create-overwrite.test3 # RUN: rm -rf %t
4 # RUN: split-file %s %t
8 # RUN: touch test.a
9 # RUN: llvm-ar -M < create.mri
10 # RUN: FileCheck --input-file=test.a %s --check-prefixes=ARCH,TWO
13 # RUN: rm -f test.a
14 # RUN: touch test.a
15 # RUN: llvm-ar --format=gnu -M < createthin.mri
16 # RUN: FileCheck --input-file=test.a %s --check-prefixes=THIN,TWO
19 # RUN: rm -f test.a
[all …]
/llvm-project/llvm/test/tools/llvm-dlltool/
H A Darm64ec.test1 Test creating ARM64EC importlib.
3 RUN: split-file %s %t.dir && cd %t.dir
5 RUN: llvm-dlltool -m arm64ec -d test.def -l test.lib
6 RUN: llvm
[all...]
/llvm-project/clang/test/
H A DCMakeLists.txt1 # Test runner infrastructure for Clang. This configures the Clang test trees
2 # for use by Lit, and delegates to LLVM's lit test handlers.
62 set(CLANG_TEST_EXTRA_ARGS ${CLANG_TEST_EXTRA_ARGS} "--vg")
66 apinotes-test
67 c-index-tes
[all...]
/llvm-project/lldb/docs/resources/
H A Dtest.rst4 Test Suite Structure
5 ---------
[all...]
/llvm-project/llvm/test/Object/
H A Dnm-archive.test1 RUN: llvm-nm -a %p/Inputs/archive-test.a-coff-i386 \
2 RUN: | FileCheck %s -check-prefix COFF
4 COFF: trivial-object-test.coff-i386:
5 COFF-NEXT: 00000000 d .data
6 COFF-NEXT: 00000000 t .text
7 COFF-NEXT: 00000000 d L_.str
8 COFF-NEXT: U _SomeOtherFunction
9 COFF-NEXT: 00000000 T _main
10 COFF-NEXT: U _puts
12 RUN: llvm-nm -a -o %p/Inputs/archive-test.a-coff-i386 \
[all …]
/llvm-project/lldb/test/
H A DCMakeLists.txt1 # Test runner infrastructure for LLDB. This configures the LLDB test trees
2 # for use by Lit, and delegates to LLVM's lit test handlers.
7 "LLDB test suite requires a Python3 interpreter but none "
13 message(STATUS "Enforcing strict test requirements for LLDB")
14 # Lit uses psutil to do per-test timeouts.
35 # In order to run check-lldb-* w
[all...]
/llvm-project/llvm/test/tools/llvm-lib/
H A Darm64ec-implib.test1 Test creating ARM64EC importlib.
3 RUN: split-file %s %t.dir && cd %t.dir
4 RUN: llvm-lib -machine:arm64ec -def:test.def -out:test.lib
6 RUN: llvm-nm --print-armap test.lib | FileCheck -check-prefix=ARMAP %s
9 ARMAP-NEXT: __IMPORT_DESCRIPTOR_test in test.dll
10 ARMAP-NEXT: __NULL_IMPORT_DESCRIPTOR in test.dll
11 ARMAP-NEXT: test_NULL_THUNK_DATA in test.dll
12 ARMAP-EMPTY:
13 ARMAP-NEXT: Archive EC map
14 ARMAP-NEXT: #expname in test.dll
[all …]

12345678910>>...47