Anastasia added inline comments.

================
Comment at: clang/test/CodeGenOpenCL/spirv32_target.cl:12
+kernel void foo(global long *arg) {
+  int res1[sizeof(my_st)  == 12 ? 1 : -1];
+  int res2[sizeof(void *) ==  4 ? 1 : -1];
----------------
Are these lines tested somehow? You could change this into C++ for OpenCL test 
and use `static_assert` or find some other ways to test this...

However, this testing seems to overlap with the lines at the end... Could you 
please elaborate on the intent of this test?

Also if you don't plan this to be fundamentally different from testing of 64bit 
triple I think this should be merged with `spirv64_target.cl`. It will make 
things easier for the maintenance and further evolution.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109144/new/

https://reviews.llvm.org/D109144

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to