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:
10
cranelift/filetests/filetests/isa/x86/raw_bitcast.clif
Normal file
10
cranelift/filetests/filetests/isa/x86/raw_bitcast.clif
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user