File: nofpclass-invalid.ll

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (133 lines) | stat: -rw-r--r-- 4,778 bytes parent folder | download | duplicates (10)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
; RUN: rm -rf %t && split-file %s %t

; RUN: not llvm-as %t/nofpclass_0.ll -o /dev/null 2>&1 | FileCheck -check-prefix=MASKVALUE0 %s
; RUN: not llvm-as %t/nofpclass_1024.ll -o /dev/null 2>&1 | FileCheck -check-prefix=MASKVALUE1024 %s
; RUN: not llvm-as %t/nofpclass_two_numbers.ll -o /dev/null 2>&1 | FileCheck -check-prefix=TWONUMBERS %s
; RUN: not llvm-as %t/nofpclass_two_numbers_bar.ll -o /dev/null 2>&1 | FileCheck -check-prefix=TWONUMBERSBAR %s
; RUN: not llvm-as %t/nofpclass_two_numbers_neg1.ll -o /dev/null 2>&1 | FileCheck -check-prefix=MASKVALUENEG1 %s
; RUN: not llvm-as %t/nofpclass_only_keyword.ll -o /dev/null 2>&1 | FileCheck -check-prefix=ONLYKEYWORD %s
; RUN: not llvm-as %t/nofpclass_openparen.ll -o /dev/null 2>&1 | FileCheck -check-prefix=OPENPAREN %s
; RUN: not llvm-as %t/nofpclass_closeparen.ll -o /dev/null 2>&1 | FileCheck -check-prefix=CLOSEPAREN %s
; RUN: not llvm-as %t/nofpclass_emptyparens.ll -o /dev/null 2>&1 | FileCheck -check-prefix=EMPTYPARENS %s
; RUN: not llvm-as %t/nofpclass_0_missingparen.ll -o /dev/null 2>&1 | FileCheck -check-prefix=MISSINGPAREN0 %s
; RUN: not llvm-as %t/nofpclass_0_noparens.ll -o /dev/null 2>&1 | FileCheck -check-prefix=NOPARENS0 %s
; RUN: not llvm-as %t/nofpclass_1024_missing_paren.ll -o /dev/null 2>&1 | FileCheck -check-prefix=MISSINGPAREN1024 %s
; RUN: not llvm-as %t/nofpclass_neg1_missing_paren.ll -o /dev/null 2>&1 | FileCheck -check-prefix=MISSINGPAREN-NEGONE %s
; RUN: not llvm-as %t/nofpclass_1_noparens.ll -o /dev/null 2>&1 | FileCheck -check-prefix=NOPARENS-ONE %s
; RUN: not llvm-as %t/nofpclass_nan_noparens.ll -o /dev/null 2>&1 | FileCheck -check-prefix=NOPARENS-NAN %s
; RUN: not llvm-as %t/nofpclass_nnan_noparens.ll -o /dev/null 2>&1 | FileCheck -check-prefix=NOPARENS-NNAN %s
; RUN: not llvm-as %t/nofpclass_name_plus_int.ll -o /dev/null 2>&1 | FileCheck -check-prefix=NAME-PLUS-INT %s
; RUN: not llvm-as %t/nofpclass_name_follows_int.ll -o /dev/null 2>&1 | FileCheck -check-prefix=NAME-FOLLOWS-INT %s

;--- nofpclass_0.ll

; MASKVALUE0: error: invalid mask value for 'nofpclass'
define void @nofpclass_0(float nofpclass(0) %x) {
  ret void
}

;--- nofpclass_1024.ll

; MASKVALUE1024: error: invalid mask value for 'nofpclass'
define void @nofpclass_1024(float nofpclass(1024) %x) {
  ret void
}

;--- nofpclass_two_numbers.ll
; TWONUMBERS: error: expected ')'
define void @nofpclass_two_numbers(float nofpclass(2 4) %x) {
  ret void
}

;--- nofpclass_two_numbers_bar.ll
; TWONUMBERSBAR: error: expected ')'
define void @nofpclass_two_numbers_bar(float nofpclass(2|4) %x) {
  ret void
}

;--- nofpclass_two_numbers_neg1.ll
; MASKVALUENEG1: error: expected nofpclass test mask
define void @nofpclass_neg1(float nofpclass(-1) %x) {
  ret void
}

;--- nofpclass_only_keyword.ll
; ONLYKEYWORD: error: expected '('
define void @nofpclass_only_keyword(float nofpclass %x) {
  ret void
}

; FIXME: Poor diagnostic
;--- nofpclass_openparen.ll
; OPENPAREN: error: expected nofpclass test mask
define void @nofpclass_openparen(float nofpclass( %x) {
  ret void
}

;--- nofpclass_closeparen.ll
; CLOSEPAREN: error: expected '('
define void @nofpclass_closeparen(float nofpclass) %x) {
  ret void
}

;--- nofpclass_emptyparens.ll
; EMPTYPARENS: error: expected nofpclass test mask
define void @nofpclass_emptyparens(float nofpclass() %x) {
  ret void
}

; FIXME: Wrong error?
;--- nofpclass_0_missingparen.ll
; MISSINGPAREN0: error: invalid mask value for 'nofpclass'
define void @nofpclass_0_missingparen(float nofpclass(0 %x) {
  ret void
}

;--- nofpclass_0_noparens.ll
; NOPARENS0: error: expected '('
define void @nofpclass_0_noparens(float nofpclass 0 %x) {
  ret void
}

; FIXME: Wrong error
;--- nofpclass_1024_missing_paren.ll
; MISSINGPAREN1024: error: invalid mask value for 'nofpclass'
define void @nofpclass_1024_missing_paren(float nofpclass(1024 %x) {
  ret void
}

;--- nofpclass_neg1_missing_paren.ll
; MISSINGPAREN-NEGONE: error: expected nofpclass test mask
define void @nofpclass_neg1_missing_paren(float nofpclass(-1 %x) {
  ret void
}

;--- nofpclass_1_noparens.ll
; NOPARENS-ONE: error: expected '('
define void @nofpclass_1_noparens(float nofpclass 1 %x) {
  ret void
}

;--- nofpclass_nan_noparens.ll
; NOPARENS-NAN: error: expected '('
define void @nofpclass_nan_noparens(float nofpclass nan %x) {
  ret void
}

;--- nofpclass_nnan_noparens.ll
; NOPARENS-NNAN: error: expected '('
define void @nofpclass_nnan_noparens(float nofpclass nnan %x) {
  ret void
}

;--- nofpclass_name_plus_int.ll
; NAME-PLUS-INT: error: expected nofpclass test mask
define void @nofpclass_name_plus_int(float nofpclass(nan 42) %x) {
  ret void
}

;--- nofpclass_name_follows_int.ll
; NAME-FOLLOWS-INT: error: expected ')'
define void @nofpclass_name_plus_int(float nofpclass(42 nan) %x) {
  ret void
}