about summary refs log tree commit diff
path: root/src/test/run-pass/intrinsics-integer.rs
AgeCommit message (Collapse)AuthorLines
2018-09-06Migrated slew of run-pass tests to various subdirectories of `ui/run-pass/`.Felix S. Klock II-179/+0
2018-03-26Stabilize i128_typeMark Mansi-1/+1
2018-03-16ci: Disable optimized tests for asm.jsAlex Crichton-0/+2
Since all tests are compiled with LTO effectively in Emscripten this commit disables optimizations to hopefully squeeze some more time out of the CI builders. Closes #48826
2018-03-06Add i128 tests for intrinsicsAmanieu d'Antras-1/+26
2018-02-28Add bitreverse intrinsicAmanieu d'Antras-0/+10
2017-06-08Add ctlz_nonzero & cttz_nonzero intrinsicsScott McMurray-0/+37
LLVM currently doesn't remove the "bypass if argument is zero" assembly inside branches where the value is known to be non-zero, pessimizing code that uses uN::leading_zeros
2016-01-11[breaking-change] remove negate_unsigned feature gateOliver Schneider-10/+8
2015-10-31Check unchecked_div|rem's specialisationNicholas Mazzuca-91/+82
Similarly to the simd intrinsics.
2015-04-26Remove duplicated tests for the cttz intrinsicBjörn Steinbrink-5/+0
2015-04-08Remove pretty-expanded from failing testsAlex Crichton-1/+0
This commit removes pretty-expanded from all tests that wind up calling panic! one way or another now that its internals are unstable.
2015-04-02partial set of fixes for fallout in tests/run-passFelix S. Klock II-0/+1
2015-03-23rustdoc: Replace no-pretty-expanded with pretty-expandedBrian Anderson-0/+2
Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-05Remove integer suffixes where the types in compiled code are identical.Eduard Burtescu-78/+78
2015-01-05Remove use of globs feature gate from tests.Huon Wilson-1/+1
2014-06-23librustc: Feature gate lang items and intrinsics.Patrick Walton-1/+1
If you define lang items in your crate, add `#[feature(lang_items)]`. If you define intrinsics (`extern "rust-intrinsic"`), add `#[feature(intrinsics)]`. Closes #12858. [breaking-change]
2014-04-15Use the unsigned integer types for bitwise intrinsics.Huon Wilson-97/+96
Exposing ctpop, ctlz, cttz and bswap as taking signed i8/i16/... is just exposing the internal LLVM names pointlessly (LLVM doesn't have "signed integers" or "unsigned integers", it just has sized integer types with (un)signed *operations*). These operations are semantically working with raw bytes, which the unsigned types model better.
2014-04-06Remove check-fast. Closes #4193, #8844, #6330, #7416Brian Anderson-1/+0
2014-04-04Fix inner attribute syntax from `#[foo];` to `#![foo]`Timothée Ravier-1/+1
From the 0.10 changelog: * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
2014-03-14extra: Put the nail in the coffin, delete libextraAlex Crichton-2/+0
This commit shreds all remnants of libextra from the compiler and standard distribution. Two modules, c_vec/tempfile, were moved into libstd after some cleanup, and the other modules were moved to separate crates as seen fit. Closes #8784 Closes #12413 Closes #12576
2014-02-14extern mod => extern crateAlex Crichton-1/+1
This was previously implemented, and it just needed a snapshot to go through
2014-02-11Change `xfail` directives in compiletests to `ignore`, closes #11363Florian Hahn-2/+2
2013-10-14Remove unused abi attributes.Steve Klabnik-1/+0
They've been replaced by putting the name on the extern block. #[abi = "foo"] goes to extern "foo" { } Closes #9483.
2013-10-07Fix existing privacy/visibility violationsAlex Crichton-18/+18
This commit fixes all of the fallout of the previous commit which is an attempt to refine privacy. There were a few unfortunate leaks which now must be plugged, and the most horrible one is the current `shouldnt_be_public` module now inside `std::rt`. I think that this either needs a slight reorganization of the runtime, or otherwise it needs to just wait for the external users of these modules to get replaced with their `rt` implementations. Other fixes involve making things pub which should be pub, and otherwise updating error messages that now reference privacy instead of referencing an "unresolved name" (yay!).
2013-10-06Add appropriate #[feature] directives to testsAlex Crichton-0/+2
2013-07-20librustc: Remove `pub extern` and `priv extern` from the language.Patrick Walton-1/+1
Place `pub` or `priv` on individual items instead.
2013-05-22test: Update tests to use the new syntax.Patrick Walton-1/+1
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-78/+78
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-1/+1
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-2/+2
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-77/+77
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-77/+77
2013-03-07librustc: Remove "extern mod { ... }" from librustc, librustdoc, and tests. ↵Patrick Walton-20/+22
rs=deexterning
2013-02-01check-fast fallout from removing export, r=burningtreeGraydon Hoare-1/+1
2013-01-24librustc: Make C functions unsafePatrick Walton-82/+82
2012-12-27Add support for byteswap intrinsicsJens Nockert-0/+8
Adds support for the llvm.bswap.i{8,16,32} intrinsics, which swaps the byte order from little endian to big endian, or the reverse.
2012-12-21Add support for bitcount intrinsicsJens Nockert-0/+112
Adds support for the llvm.ctpop, llvm.ctlz and llvm.cttz intrinsics.