Open Quuxplusone opened 7 years ago
Bugzilla Link | PR33352 |
Status | NEW |
Importance | P enhancement |
Reported by | Zixuan Wu (westion717@gmail.com) |
Reported on | 2017-06-07 22:25:45 -0700 |
Last modified on | 2017-06-11 21:27:20 -0700 |
Version | trunk |
Hardware | Other Linux |
CC | llvm-bugs@lists.llvm.org, westion717@gmail.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
The step to reproduce error.
int main(){
vector bool long long op_median = { 1, 4 };
vector bool long long op_less = { 0, 3 };
if ( ++op_less == op_median ) return 1;
return 0;
}
clang -maltivec a.c
a.c:4:3: error: statement requires expression of scalar type
('__attribute__((__vector_size__(2 * sizeof(long long)))) long long' (vector of
2 'long long' values) invalid)
if ( ++op_less == op_median ) return 1;
^ ~~~~~~~~~~~~~~~~~~~~~~
1 error generated.