diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-10-06 10:25:35 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-11-19 02:43:32 +0200 |
| commit | cdeb4b0d258c19f57ee6fb089126656e18324367 (patch) | |
| tree | 39b1e45990bf63df626bebe3c020360f2df5356c /src/test/codegen/adjustments.rs | |
| parent | f1b7cd99254dd11ff7370fe423cca6fd8046f7d2 (diff) | |
| download | rust-cdeb4b0d258c19f57ee6fb089126656e18324367.tar.gz rust-cdeb4b0d258c19f57ee6fb089126656e18324367.zip | |
rustc: encode scalar pairs in layout ABI.
Diffstat (limited to 'src/test/codegen/adjustments.rs')
| -rw-r--r-- | src/test/codegen/adjustments.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/codegen/adjustments.rs b/src/test/codegen/adjustments.rs index 525a1f5310c..2b35d454739 100644 --- a/src/test/codegen/adjustments.rs +++ b/src/test/codegen/adjustments.rs @@ -24,9 +24,9 @@ pub fn helper(_: usize) { pub fn no_op_slice_adjustment(x: &[u8]) -> &[u8] { // We used to generate an extra alloca and memcpy for the block's trailing expression value, so // check that we copy directly to the return value slot -// CHECK: %0 = insertvalue { [0 x i8], [0 x i8]*, [0 x i8], [[USIZE]], [0 x i8] } undef, [0 x i8]* %x.0, 1 -// CHECK: %1 = insertvalue { [0 x i8], [0 x i8]*, [0 x i8], [[USIZE]], [0 x i8] } %0, [[USIZE]] %x.1, 3 -// CHECK: ret { [0 x i8], [0 x i8]*, [0 x i8], [[USIZE]], [0 x i8] } %1 +// CHECK: %0 = insertvalue { [0 x i8]*, [[USIZE]] } undef, [0 x i8]* %x.0, 0 +// CHECK: %1 = insertvalue { [0 x i8]*, [[USIZE]] } %0, [[USIZE]] %x.1, 1 +// CHECK: ret { [0 x i8]*, [[USIZE]] } %1 { x } } |
