rust/tests/mir-opt/const_prop
Ulrich Weigand 6885733c41 Fix mir-opt tests for big-endian platforms
The test cases src/test/mir-opt/building/custom/consts.rs and
src/test/mir-opt/const_prop/mutable_variable_no_prop.rs are
currently failing on big-endian platforms as the binary encoding
of some constants is hard-coded in the MIR test files.  Fix this
by choosing constant values that have the same encoding on big-
and little-endian platforms.

The test case src/test/mir-opt/issues/issue_75439.rs is failing
as well, but since the purpose of the test is to validate handling
of big-endian integer encodings on a little-endian platform, it does
not make much sense to run it on big-endian platforms in the first
place - we can just ignore it there.

Fixed part of https://github.com/rust-lang/rust/issues/105383.
2023-01-12 18:05:30 +01:00
..
aggregate.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
aggregate.main.PreCodegen.after.mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
aggregate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array_index.main.ConstProp.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array_index.main.ConstProp.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array_index.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad_op_div_by_zero.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad_op_div_by_zero.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad_op_mod_by_zero.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad_op_mod_by_zero.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad_op_unsafe_oob_for_slices.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
boolean_identities.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
boolean_identities.test.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
boxes.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
boxes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cast.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cast.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
checked_add.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
checked_add.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const_prop_fails_gracefully.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const_prop_fails_gracefully.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
control_flow_simplification.hello.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
control_flow_simplification.hello.PreCodegen.before.mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
control_flow_simplification.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
discriminant.main.ConstProp.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
discriminant.main.ConstProp.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
discriminant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
indirect.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
indirect.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
invalid_constant.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
invalid_constant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue_66971.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue_66971.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue_67019.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue_67019.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
large_array_index.main.ConstProp.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
large_array_index.main.ConstProp.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
large_array_index.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mult_by_zero.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mult_by_zero.test.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_aggregate_mut_ref.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_aggregate_mut_ref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_aggregate_partial_read.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_aggregate_partial_read.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_aggregate.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_aggregate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_no_prop.main.ConstProp.diff Fix mir-opt tests for big-endian platforms 2023-01-12 18:05:30 +01:00
mutable_variable_no_prop.rs Fix mir-opt tests for big-endian platforms 2023-01-12 18:05:30 +01:00
mutable_variable_unprop_assign.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable_unprop_assign.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable_variable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
optimizes_into_variable.main.ConstProp.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
optimizes_into_variable.main.ConstProp.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
optimizes_into_variable.main.PreCodegen.after.32bit.mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
optimizes_into_variable.main.PreCodegen.after.64bit.mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
optimizes_into_variable.main.ScalarReplacementOfAggregates.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
optimizes_into_variable.main.ScalarReplacementOfAggregates.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
optimizes_into_variable.main.SimplifyLocals-final.after.32bit.mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
optimizes_into_variable.main.SimplifyLocals-final.after.64bit.mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
optimizes_into_variable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
read_immutable_static.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
read_immutable_static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ref_deref_project.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ref_deref_project.main.PromoteTemps.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ref_deref_project.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ref_deref.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ref_deref.main.PromoteTemps.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ref_deref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reify_fn_ptr.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reify_fn_ptr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat.main.ConstProp.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat.main.ConstProp.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
return_place.add.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
return_place.add.PreCodegen.before.mir Move /src/test to /tests 2023-01-11 09:32:08 +00:00
return_place.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
scalar_literal_propagation.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
scalar_literal_propagation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice_len.main.ConstProp.32bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice_len.main.ConstProp.64bit.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice_len.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
switch_int.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
switch_int.main.SimplifyConstCondition-after-const-prop.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
switch_int.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tuple_literal_propagation.main.ConstProp.diff Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tuple_literal_propagation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00