Add raw_bitcast instruction

Casts bits as a different type of the same width with no change to the data (unlike bitcast)
This commit is contained in:
Andrew Brown
2019-07-11 11:07:26 -07:00
committed by Dan Gohman
parent 5f0e5567c1
commit 61772e9775
5 changed files with 61 additions and 10 deletions

View File

@@ -411,6 +411,12 @@ pub fn define<'shared>(
.operands_out(vec![0])
.emit(""),
);
recipes.add_recipe(
EncodingRecipeBuilder::new("null_fpr", f_unary, 0)
.operands_in(vec![fpr])
.operands_out(vec![0])
.emit(""),
);
recipes.add_recipe(
EncodingRecipeBuilder::new("stacknull", f_unary, 0)
.operands_in(vec![stack_gpr32])