1// RUN: mlir-opt %s -split-input-file -verify-diagnostics 2 3// ----- 4// Unrecognized token: missing calibrated type maximum 5// expected-error@+2 {{calibrated values must be present}} 6// expected-error@+1 {{expected ':'}} 7!qalias = !quant.calibrated<f32<-0.998>> 8 9// ----- 10// Unrecognized token: missing closing angle bracket 11// expected-error@+1 {{unbalanced '<' character in pretty dialect name}} 12!qalias = !quant.calibrated<f32<-0.998:1.232> 13 14// ----- 15// Unrecognized expressed type: integer type 16// expected-error@+2 {{invalid kind of type specified}} 17// expected-error@+1 {{expecting float expressed type}} 18!qalias = !quant.calibrated<i8<-4:3>> 19 20// ----- 21// Illegal storage min/max: max - min < 0 22// expected-error@+1 {{illegal min and max: (1.000000e+00:-1.000000e+00)}} 23!qalias = !quant.calibrated<f32<1.0:-1.0>> 24 25// ----- 26// Illegal storage min/max: max - min == 0 27// expected-error@+1 {{illegal min and max: (1.000000e+00:1.000000e+00)}} 28!qalias = !quant.calibrated<f32<1.0:1.0>> 29