about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2016-05-26 12:41:40 +0300
committerSimonas Kazlauskas <git@kazlauskas.me>2016-05-26 12:41:40 +0300
commit5b404523dd1741681ba411c48c3df3c4cf5b22ab (patch)
treec19c848fb70e1d4f58c263e3cfc75e180caeacc5 /src/test/codegen
parent2f0da79e4723f3535367581099dc59d1289a3c7c (diff)
downloadrust-5b404523dd1741681ba411c48c3df3c4cf5b22ab.tar.gz
rust-5b404523dd1741681ba411c48c3df3c4cf5b22ab.zip
Fix stores codegen pass
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/stores.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/codegen/stores.rs b/src/test/codegen/stores.rs
index f849a6c9b18..8c425507975 100644
--- a/src/test/codegen/stores.rs
+++ b/src/test/codegen/stores.rs
@@ -26,8 +26,8 @@ pub struct Bytes {
 #[no_mangle]
 #[rustc_no_mir] // FIXME #27840 MIR has different codegen.
 pub fn small_array_alignment(x: &mut [i8; 4], y: [i8; 4]) {
-// CHECK: [[VAR:%[0-9]+]] = bitcast [4 x i8]* %y to i32*
-// CHECK: store i32 %{{.*}}, i32* [[VAR]], align 1
+// CHECK: store i32 %{{.*}}, i32* %{{.*}}, align 1
+// CHECK: [[VAR:%[0-9]+]] = bitcast i32* %{{.*}} to [4 x i8]*
     *x = y;
 }
 
@@ -37,7 +37,7 @@ pub fn small_array_alignment(x: &mut [i8; 4], y: [i8; 4]) {
 #[no_mangle]
 #[rustc_no_mir] // FIXME #27840 MIR has different codegen.
 pub fn small_struct_alignment(x: &mut Bytes, y: Bytes) {
-// CHECK: [[VAR:%[0-9]+]] = bitcast %Bytes* %y to i32*
-// CHECK: store i32 %{{.*}}, i32* [[VAR]], align 1
+// CHECK: store i32 %{{.*}}, i32* %{{.*}}, align 1
+// CHECK: [[VAR:%[0-9]+]] = bitcast i32* %{{.*}} to %Bytes*
     *x = y;
 }