Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impala fails parsing inline assembly with ::: #90

Open
richardmembarth opened this issue Jan 14, 2022 · 0 comments
Open

Impala fails parsing inline assembly with ::: #90

richardmembarth opened this issue Jan 14, 2022 · 0 comments
Labels

Comments

@richardmembarth
Copy link
Member

Test case:

fn cuda_clock() -> u32 {
    let mut cycle_count:u32;
    asm("mov.u32 %0, %clock;" : "=r"(cycle_count) ::: "volatile");
    cycle_count
}
# > impala test.impala 
impala: anydsl/impala/src/impala/parser.cpp:1439: std::string impala::Parser::parse_str(): Assertion `false' failed.
Aborted (core dumped)

As a workaround, we can use : :: instead.

richardmembarth added a commit to AnyDSL/runtime that referenced this issue Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant