Skip to content

Commit ab04e7d

Browse files
MrSidimssys-ce-bb
authored andcommitted
Add nonsemantic-shader-100/200 to X86 tests (#2005)
Currently only to DebugInfo/X86 Currently failing tests can be noticed by RUNx line Signed-off-by: Sidorov, Dmitry <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@772c7be
1 parent 3504097 commit ab04e7d

File tree

86 files changed

+789
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+789
-5
lines changed

llvm-spirv/test/DebugInfo/X86/2010-04-13-PubType.ll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
; RUN: llvm-as < %s -o %t.bc
22
; RUN: llvm-spirv %t.bc -o %t.spv
33
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
4+
; RUN: llc -O0 -asm-verbose -mtriple=x86_64-macosx -debugger-tune=gdb < %t.ll | FileCheck %s
45

6+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100
7+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
8+
; RUN: llc -O0 -asm-verbose -mtriple=x86_64-macosx -debugger-tune=gdb < %t.ll | FileCheck %s
9+
10+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200
11+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
512
; RUN: llc -O0 -asm-verbose -mtriple=x86_64-macosx -debugger-tune=gdb < %t.ll | FileCheck %s
613

714
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"

llvm-spirv/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
; RUN: llvm-as < %s -o %t.bc
22
; RUN: llvm-spirv %t.bc -o %t.spv
33
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
4-
54
; RUN: llc -mtriple=x86_64-pc-linux-gnu %t.ll -o %t -filetype=obj
65
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
76

7+
; RUNx: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100
8+
; RUNx: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
9+
; RUNx: llc -mtriple=x86_64-pc-linux-gnu %t.ll -o %t -filetype=obj
10+
; RUNx: llvm-dwarfdump -v -debug-info %t | FileCheck %s
11+
12+
; RUNx: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200
13+
; RUNx: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
14+
; RUNx: llc -mtriple=x86_64-pc-linux-gnu %t.ll -o %t -filetype=obj
15+
; RUNx: llvm-dwarfdump -v -debug-info %t | FileCheck %s
16+
817
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
918
target triple = "spir64-unknown-unknown"
1019

llvm-spirv/test/DebugInfo/X86/2011-12-16-BadStructRef.ll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
; RUN: llvm-as < %s -o %t.bc
22
; RUN: llvm-spirv %t.bc -o %t.spv
33
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
4+
; RUN: llc -mtriple=x86_64-apple-macosx10.7 %t.ll -o %t -filetype=obj
5+
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
46

7+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100
8+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
9+
; RUN: llc -mtriple=x86_64-apple-macosx10.7 %t.ll -o %t -filetype=obj
10+
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
11+
12+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200
13+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
514
; RUN: llc -mtriple=x86_64-apple-macosx10.7 %t.ll -o %t -filetype=obj
615
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
716

llvm-spirv/test/DebugInfo/X86/DIModule.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
; RUN: llvm-as < %s -o %t.bc
33
; RUN: llvm-spirv --spirv-ext=+SPV_INTEL_debug_module %t.bc -o %t.spv
44
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
5-
65
; RUN: llc -mtriple=x86_64-apple-macosx %t.ll -accel-tables=Dwarf -o %t -filetype=obj
76
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
87
; RUN: llvm-dwarfdump -verify %t

llvm-spirv/test/DebugInfo/X86/DIModuleContext.ll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
; RUN: llvm-as < %s -o %t.bc
22
; RUN: llvm-spirv --spirv-ext=+SPV_INTEL_debug_module %t.bc -o %t.spv
33
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
4+
; RUN: llc -mtriple=x86_64-apple-macosx %t.ll -o - -filetype=obj \
5+
; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s
6+
7+
; RUNx: llvm-spirv --spirv-ext=+SPV_INTEL_debug_module %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100
8+
; RUNx: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
9+
; RUNx: llc -mtriple=x86_64-apple-macosx %t.ll -o - -filetype=obj \
10+
; RUNx: | llvm-dwarfdump -debug-info - | FileCheck %s
411

12+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200
13+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
514
; RUN: llc -mtriple=x86_64-apple-macosx %t.ll -o - -filetype=obj \
615
; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s
16+
717
; CHECK: DW_TAG_module
818
; CHECK-NOT: NULL
919
; CHECK: DW_TAG_structure_type

llvm-spirv/test/DebugInfo/X86/DW_AT_byte_size.ll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
; RUN: llvm-as < %s -o %t.bc
22
; RUN: llvm-spirv %t.bc -o %t.spv
33
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
4+
; RUN: llc -mtriple=x86_64-apple-darwin %t.ll -o %t -filetype=obj
5+
; RUN: llvm-dwarfdump -all %t | FileCheck %s
46

7+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100
8+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
9+
; RUN: llc -mtriple=x86_64-apple-darwin %t.ll -o %t -filetype=obj
10+
; RUN: llvm-dwarfdump -all %t | FileCheck %s
11+
12+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200
13+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
514
; RUN: llc -mtriple=x86_64-apple-darwin %t.ll -o %t -filetype=obj
615
; RUN: llvm-dwarfdump -all %t | FileCheck %s
716

llvm-spirv/test/DebugInfo/X86/DW_AT_linkage_name.ll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
; RUN: llvm-as < %s -o %t.bc
22
; RUN: llvm-spirv %t.bc -o %t.spv
33
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
4+
; RUN: llc -mtriple=x86_64-apple-macosx %t.ll -o %t -filetype=obj
5+
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
46

7+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100
8+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
9+
; RUN: llc -mtriple=x86_64-apple-macosx %t.ll -o %t -filetype=obj
10+
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
11+
12+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200
13+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
514
; RUN: llc -mtriple=x86_64-apple-macosx %t.ll -o %t -filetype=obj
615
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
716
;

llvm-spirv/test/DebugInfo/X86/DW_AT_specification.ll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
; RUN: llvm-as < %s -o %t.bc
22
; RUN: llvm-spirv %t.bc -o %t.spv
33
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
4+
; RUN: llc -mtriple=x86_64-apple-darwin %t.ll -o %t -filetype=obj
5+
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
46

7+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100
8+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
9+
; RUN: llc -mtriple=x86_64-apple-darwin %t.ll -o %t -filetype=obj
10+
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
11+
12+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200
13+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
514
; RUN: llc -mtriple=x86_64-apple-darwin %t.ll -o %t -filetype=obj
615
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
716

llvm-spirv/test/DebugInfo/X86/DW_AT_stmt_list_sec_offset.ll

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
; RUN: llvm-as < %s -o %t.bc
22
; RUN: llvm-spirv %t.bc -o %t.spv
33
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
4+
; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj %t.ll
5+
; RUN: llvm-dwarfdump -v -all %t | FileCheck %s
6+
; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj -dwarf-version=3 %t.ll
7+
; RUN: llvm-dwarfdump -v -all %t | FileCheck %s -check-prefix=DWARF3
48

9+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100
10+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
11+
; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj %t.ll
12+
; RUN: llvm-dwarfdump -v -all %t | FileCheck %s
13+
; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj -dwarf-version=3 %t.ll
14+
; RUN: llvm-dwarfdump -v -all %t | FileCheck %s -check-prefix=DWARF3
15+
16+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200
17+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
518
; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj %t.ll
619
; RUN: llvm-dwarfdump -v -all %t | FileCheck %s
720
; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj -dwarf-version=3 %t.ll

llvm-spirv/test/DebugInfo/X86/Fortran-DIModule.ll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22
; RUN: llvm-as < %s -o %t.bc
33
; RUN: llvm-spirv --spirv-ext=+SPV_INTEL_debug_module %t.bc -o %t.spv
44
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
5+
; RUN: llc -mtriple=x86_64-unknown-linux-gnu %t.ll -filetype=obj -o - | \
6+
; RUN: llvm-dwarfdump - | FileCheck %s
57

8+
; RUNx: llvm-spirv --spirv-ext=+SPV_INTEL_debug_module %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100
9+
; RUNx: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
10+
; RUNx: llc -mtriple=x86_64-unknown-linux-gnu %t.ll -filetype=obj -o - | \
11+
; RUNx: llvm-dwarfdump - | FileCheck %s
12+
13+
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200
14+
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll
615
; RUN: llc -mtriple=x86_64-unknown-linux-gnu %t.ll -filetype=obj -o - | \
716
; RUN: llvm-dwarfdump - | FileCheck %s
817

0 commit comments

Comments
 (0)