|
3 | 3 | // ----- |
4 | 4 |
|
5 | 5 | llvm.func @redux_sync_i32_with_abs(%value: i32, %offset: i32) { |
6 | | - // expected-error@+1 {{'nvvm.redux.sync' op abs attribute is supported only for f32 type}} |
| 6 | + // expected-error@+1 {{abs attribute is supported only for f32 type}} |
7 | 7 | %res = nvvm.redux.sync add %value, %offset {abs = true}: i32 -> i32 |
8 | 8 | llvm.return |
9 | 9 | } |
10 | 10 |
|
11 | 11 | // ----- |
12 | 12 |
|
13 | 13 | llvm.func @redux_sync_i32_with_nan(%value: i32, %offset: i32) { |
14 | | - // expected-error@+1 {{'nvvm.redux.sync' op nan attribute is supported only for f32 type}} |
| 14 | + // expected-error@+1 {{nan attribute is supported only for f32 type}} |
15 | 15 | %res = nvvm.redux.sync add %value, %offset {nan = true}: i32 -> i32 |
16 | 16 | llvm.return |
17 | 17 | } |
18 | 18 |
|
19 | 19 | // ----- |
20 | 20 |
|
21 | 21 | llvm.func @redux_sync_f32_with_invalid_kind(%value: f32, %offset: i32) { |
22 | | - // expected-error@+1 {{'nvvm.redux.sync' op only fmin and fmax redux kinds are supported for f32 type}} |
| 22 | + // expected-error@+1 {{only fmin and fmax redux kinds are supported for f32 type}} |
23 | 23 | %res = nvvm.redux.sync add %value, %offset: f32 -> f32 |
24 | 24 | llvm.return |
25 | 25 | } |
26 | 26 |
|
27 | 27 | // ----- |
28 | 28 |
|
29 | 29 | llvm.func @redux_sync_i32_with_invalid_kind(%value: i32, %offset: i32) { |
30 | | - // expected-error@+1 {{'nvvm.redux.sync' op fmin and fmax redux kind must be used with f32 type}} |
| 30 | + // expected-error@+1 {{fmin and fmax redux kind must be used with f32 type}} |
31 | 31 | %res = nvvm.redux.sync fmin %value, %offset: i32 -> i32 |
32 | 32 | llvm.return |
33 | 33 | } |
| 34 | + |
| 35 | +// ----- |
| 36 | + |
| 37 | +llvm.func @redux_sync_non_matching_types(%value: i32, %offset: i32) { |
| 38 | + // expected-error@+1 {{failed to verify that all of {res, val} have same type}} |
| 39 | + %res = nvvm.redux.sync add %value, %offset: i32 -> f32 |
| 40 | + llvm.return |
| 41 | +} |
0 commit comments