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

@@ -0,0 +1,10 @@
test binemit
target x86_64
function %test_raw_bitcast_i16x8_to_b32x4() {
ebb0:
[-, %rbx] v0 = bconst.b16 true
[-, %xmm2] v1 = scalar_to_vector.b16x8 v0
[-, %xmm2] v2 = raw_bitcast.i32x4 v1 ; bin:
return
}