brintos

brintos / llvm-project-archived public Read only

0
0
Text · 987 B · 6432928 Raw
29 lines · plain
1// RUN: mlir-opt %s -split-input-file -verify-diagnostics2 3// -----4// Unrecognized token: missing calibrated type maximum5// 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 bracket11// 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 type16// 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 < 022// 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 == 027// expected-error@+1 {{illegal min and max: (1.000000e+00:1.000000e+00)}}28!qalias = !quant.calibrated<f32<1.0:1.0>>29