File: arg_parsing_errors.ispc

package info (click to toggle)
ispc 1.28.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 97,620 kB
  • sloc: cpp: 77,067; python: 8,303; yacc: 3,337; lex: 1,126; ansic: 631; sh: 475; makefile: 17
file content (76 lines) | stat: -rw-r--r-- 6,274 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//; RUN: not %{ispc} %s -o %t.o --nowrap --addressing=123 --x86-asm-syntax=amd --fast-math --fast-masked-vload --dwarf-version=15  --target=avx2-i32x8 --math-lib=fast2 -opt=make_me_happy -not-existing-opt %s 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_1
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 -I 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_2
//; RUN: not %{ispc} %s -o %t.o --nowrap --target 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_3
//; RUN: not %{ispc} %s -o 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_4
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 -h 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_5
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 -MMM 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_6
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 -MF 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_7
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 -MT 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_8
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --dev-stub 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_9
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --host-stub 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_10
//; RUN: not %{ispc} --nowrap --target=avx2-i32x8 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_11
//; RUN not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --debug-phase= 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_12
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --off-phase= 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_13
//; RUN not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --debug-phase=12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_14
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --off-phase=12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_15
//; RUN not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --debug-phase=2000 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_16
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --off-phase=2000 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_17
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --arch=x64 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_18
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=sse3,avx2-i32x8,gost 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_19
//; RUN: not %{ispc} %s -o %t.o --nowrap --target sse3,avx2-i32x8,gost 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_20
//; RUN: %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --arch=x86 --arch=x86_64 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_21
//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 link 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_22
//; RUN: not %{ispc} link %s 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_23
//; RUN: not %{ispc} link --emit-obj %s 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_24
//; RUN: %{ispc} %s -o %t.bc --emit-llvm && not %{ispc} link %t.bc 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_25
//; RUN: %{ispc} %s -o %t.bc --emit-llvm && %{ispc} link %t.bc -o %t_link.bc
//; RUN: %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --help
//; RUN: %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --help-dev
//; RUN: %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 --support-matrix
//; RUN: not %{ispc} 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_26

//; RUN: not %{ispc} %s -o %t.o --nowrap --target=avx2-i32x8 -not-existing-opt --quiet 2>&1 | FileCheck %s --allow-empty -check-prefix=CHECK_ERROR_QUIET

// REQUIRES: X86_ENABLED

//; CHECK_ERROR_1: Error: Addressing width "123" invalid -- only 32 and 64 are allowed.
//; CHECK_ERROR_1: Error: Invalid value for --x86-asm-syntax: "amd" -- only intel and att are allowed.
//; CHECK_ERROR_1: Error: --fast-math option has been renamed to --opt=fast-math!
//; CHECK_ERROR_1: Error: --fast-masked-vload option has been renamed to --opt=fast-masked-vload!
//; CHECK_ERROR_1: Error: Invalid value for DWARF version: "15" -- only 2, 3, 4 and 5 are allowed.
//; CHECK_ERROR_1: Error: Unknown --math-lib= option "fast2".
//; CHECK_ERROR_1: Error: Unknown option "-opt=make_me_happy".
//; CHECK_ERROR_1: Error: Unknown option "-not-existing-opt".
//; CHECK_ERROR_1: Error: Multiple input files specified on command line:

//; CHECK_ERROR_2: No path specified after -I option.
//; CHECK_ERROR_3: No target specified after --target option.
//; CHECK_ERROR_4: No output file specified after -o option.
//; CHECK_ERROR_5: No header file name specified after -h option.
//; CHECK_ERROR_6: No output file name specified after -MMM option.
//; CHECK_ERROR_7: No output file name specified after -MF option.
//; CHECK_ERROR_8: No target name specified after -MT option.
//; CHECK_ERROR_9: No output file name specified after --dev-stub option.
//; CHECK_ERROR_10: No output file name specified after --host-stub option.
//; CHECK_ERROR_11: No input file were specified. To read text from stdin use "-" as file name.
//; CHECK_ERROR_12: Empty phase list.
//; CHECK_ERROR_13: Empty phase list.
//; CHECK_ERROR_14: Phase list is too long.
//; CHECK_ERROR_15: Phase list is too long.
//; CHECK_ERROR_16: Phases must be from 0 to 1000. 2000 is incorrect.
//; CHECK_ERROR_17: Phases must be from 0 to 1000. 2000 is incorrect.
//; CHECK_ERROR_18: Error: Unsupported value for --arch, supported values are:
//; CHECK_ERROR_19: Error: Incorrect targets: sse3,gost. Choices are:
//; CHECK_ERROR_20: Error: Incorrect targets: sse3,gost. Choices are:
//; CHECK_ERROR_21: Warning: Overwriting --arch=x86 with --arch=x86-64
//; CHECK_ERROR_22: Error: Option "link" can't be used in compilation mode. Use "ispc link --help" for details
//; CHECK_ERROR_23: Unrecognized format of input file
//; CHECK_ERROR_24: Error: Unknown option "--emit-obj"
//; CHECK_ERROR_25: Warning: No output file name specified
// The next check veryfies output of ispc executable without any other command line parameters,
// so `--nowrap` was not passed, hence matching just the first word of the output.
//; CHECK_ERROR_26: Error:

//; CHECK_ERROR_QUIET-NOT: Error

uniform int i;