rust/library/stdarch/stdsimd-test/assert-instr-macro/Cargo.toml
Alex Crichton 24f08cd458 Enhance #[assert_instr] with constant arguments
Some intrinsics need to be invoked with constant arguments to get the right
instruction to get generated, so this commit enhances the `assert_instr` macro
to enable this ability. Namely you pass constant arguments like:

    #[assert_instr(foo, a = b)]

where this will assert that the intrinsic, when invoked with argument `a` equal
to the value `b` and all other arguments passed from the outside, will generate
the instruction `foo`.

Closes #49
2017-09-27 10:32:13 -05:00

13 lines
382 B
TOML

[package]
name = "assert-instr-macro"
version = "0.1.0"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
[lib]
proc-macro = true
[dependencies]
proc-macro2 = { version = "0.1", features = ["unstable"] }
quote = { git = 'https://github.com/dtolnay/quote' }
syn = { git = 'https://github.com/dtolnay/syn', features = ["full"] }
synom = { git = 'https://github.com/dtolnay/syn' }