19 lines · plain
1// RUN: mlir-opt %s -split-input-file -verify-diagnostics2 3 4wasmssa.func @extend_low_64() -> i32 {5 %0 = wasmssa.const 10 : i326 // expected-error@+1 {{extend op can only take 8, 16 or 32 bits. Got 64}}7 %1 = wasmssa.extend 64 low bits from %0: i328 wasmssa.return %1 : i329}10 11// -----12 13wasmssa.func @extend_too_much() -> i32 {14 %0 = wasmssa.const 10 : i3215 // expected-error@+1 {{trying to extend the 32 low bits from a 'i32' value is illegal}}16 %1 = wasmssa.extend 32 low bits from %0: i3217 wasmssa.return %1 : i3218}19