Short-circuit for side-effecting (IO) ops
Open
bug
xlscc
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 283
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 135
Description
To add:
TEST_F(TranslatorTest, IOShortCircuitAnd) {
const std::string content = R"(
#include "/xls_builtin.h"
#pragma hls_top
void my_package(__xls_channel& in,
__xls_channel& out) {
const int zero = 0;
int v = 100;
v = zero && in.read();
out.write(1 + v);
})";
IOTest(content,
/*inputs=*/{},
/*outputs=*/{IOOpTest("out", 101, true)});
}
Contributor guide
Assessment
This issue has not been assessed yet.