intel / llvm-test-suite

Other
20 stars 131 forks source link

[SYCL] Add tests for ballot_group algorithms #1698

Open Pennycook opened 1 year ago

Pennycook commented 1 year ago

This commit adds tests for using ballot_group and the following algorithms:

Pennycook commented 1 year ago

@steffenlarsen: Compiling the tests here with the compiler from https://github.com/intel/llvm/pull/8784 works, but specifying -O0 or -fno-sycl-early-optimizations causes things to blow up with a stacktrace. The compiler seems to crash before it finishes dumping the trace.

I get this error:

/llvm/include/llvm/Support/Casting.h:579: decltype(auto) llvm::cast(From*) [with To = llvm::ConstantInt; From = llvm::Value]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.

...but I can't figure out which expression it's complaining about.

EDIT: The crash is now occurring in check-sycl, because one of the tests requires -O0. See https://github.com/intel/llvm/actions/runs/4536784113/jobs/7994452272