.clif Test Case
function %f13(f32x4) -> i32x4 {
block0(v0: f32x4):
v1 = fcvt_to_uint.i32x4 v0
return v1
}
Steps to Reproduce
Compiling this causes an unreachable case to be reached:
|
// Since this branch is also guarded by a check for vector types |
|
// neither Opcode::FcvtToUint nor Opcode::FcvtToSint can reach here |
|
// due to vector varients not existing. The first two branches will |
|
// cover all reachable cases. |
|
unreachable!(); |
Expected Results
Either an error or a successful compilation.
Actual Results
Panic
Versions and Environment
Cranelift version or commit: 0c2e049
Operating system: linux
Architecture: x86_64
.clifTest CaseSteps to Reproduce
Compiling this causes an unreachable case to be reached:
wasmtime/cranelift/codegen/src/isa/x64/lower.rs
Lines 800 to 804 in 380db48
Expected Results
Either an error or a successful compilation.
Actual Results
Panic
Versions and Environment
Cranelift version or commit: 0c2e049
Operating system: linux
Architecture: x86_64