You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
708 B
29 lines
708 B
// RUN: mlir-opt -allow-unregistered-dialect %s -split-input-file | FileCheck %s
|
|
|
|
// -----
|
|
// CHECK-LABEL: parseFullySpecified
|
|
// CHECK: !quant.any<i8<-8:7>:f32>
|
|
!qalias = type !quant.any<i8<-8:7>:f32>
|
|
func @parseFullySpecified() -> !qalias {
|
|
%0 = "foo"() : () -> !qalias
|
|
return %0 : !qalias
|
|
}
|
|
|
|
// -----
|
|
// CHECK-LABEL: parseNoExpressedType
|
|
// CHECK: !quant.any<i8<-8:7>>
|
|
!qalias = type !quant.any<i8<-8:7>>
|
|
func @parseNoExpressedType() -> !qalias {
|
|
%0 = "foo"() : () -> !qalias
|
|
return %0 : !qalias
|
|
}
|
|
|
|
// -----
|
|
// CHECK-LABEL: parseOnlyStorageType
|
|
// CHECK: !quant.any<i8>
|
|
!qalias = type !quant.any<i8>
|
|
func @parseOnlyStorageType() -> !qalias {
|
|
%0 = "foo"() : () -> !qalias
|
|
return %0 : !qalias
|
|
}
|