Skip to content

Commit 5f0f0a0

Browse files
committed
Allow all kinds of integers
1 parent 8eb5364 commit 5f0f0a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class LLVM_PowFI<string func> :
111111
[Pure], /*requiresFastmath=*/1> {
112112
let arguments =
113113
(ins LLVM_ScalarOrVectorOf<LLVM_AnyFloat>:$val,
114-
AnyI32:$power,
114+
AnyInteger:$power,
115115
DefaultValuedAttr<LLVM_FastmathFlagsAttr, "{}">:$fastmathFlags);
116116
let assemblyFormat = "`(` operands `)` attr-dict `:` "
117117
"functional-type(operands, results)";

mlir/test/Target/LLVMIR/llvmir-invalid.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ llvm.func @ternary_float_intr_wrong_type(%arg0 : f32, %arg1 : f32, %arg2 : i32)
147147
// -----
148148

149149
llvm.func @powi_intr_wrong_type(%arg0 : f32, %arg1 : f32) -> f32 {
150-
// expected-error @below{{op operand #1 must be 32-bit integer, but got 'f32'}}
150+
// expected-error @below{{op operand #1 must be integer, but got 'f32'}}
151151
%0 = "llvm.intr.powi"(%arg0, %arg1) : (f32, f32) -> f32
152152
llvm.return %0 : f32
153153
}

0 commit comments

Comments
 (0)