Skip to content

Commit

Permalink
[CIR][NFC] Fix mismatch of argument type in IR tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seven-mile committed Sep 13, 2024
1 parent bde154c commit 12d3dac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions clang/test/CIR/IR/call-op-call-conv.cir
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: FileCheck --input-file=%t.cir %s

!s32i = !cir.int<s, 32>
!fnptr = !cir.ptr<!cir.func<!s32i (!cir.ptr<!s32i>)>>
!fnptr = !cir.ptr<!cir.func<!s32i (!s32i)>>

module {
cir.func @my_add(%a: !s32i, %b: !s32i) -> !s32i cc(spir_function) {
Expand All @@ -22,6 +22,6 @@ module {
}
}

// CHECK: %{{[0-9]+}} = cir.call %arg0(%arg1) : (!cir.ptr<!cir.func<!s32i (!cir.ptr<!s32i>)>>, !s32i) -> !s32i cc(spir_kernel)
// CHECK: %{{[0-9]+}} = cir.call %arg0(%arg1) : (!cir.ptr<!cir.func<!s32i (!cir.ptr<!s32i>)>>, !s32i) -> !s32i cc(spir_function)
// CHECK: %{{[0-9]+}} = cir.call %arg0(%arg1) : (!cir.ptr<!cir.func<!s32i (!s32i)>>, !s32i) -> !s32i cc(spir_kernel)
// CHECK: %{{[0-9]+}} = cir.call %arg0(%arg1) : (!cir.ptr<!cir.func<!s32i (!s32i)>>, !s32i) -> !s32i cc(spir_function)
// CHECK: %{{[0-9]+}} = cir.try_call @my_add(%{{[0-9]+}}, %{{[0-9]+}}) ^{{.+}}, ^{{.+}} : (!s32i, !s32i) -> !s32i cc(spir_function)
4 changes: 2 additions & 2 deletions clang/test/CIR/IR/call.cir
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: cir-opt %s | FileCheck %s

!s32i = !cir.int<s, 32>
!fnptr = !cir.ptr<!cir.func<!s32i (!cir.ptr<!s32i>)>>
!fnptr = !cir.ptr<!cir.func<!s32i (!s32i)>>

module {
cir.func @ind(%fnptr: !fnptr, %a : !s32i) {
Expand All @@ -10,4 +10,4 @@ module {
}
}

// CHECK: %0 = cir.call %arg0(%arg1) : (!cir.ptr<!cir.func<!s32i (!cir.ptr<!s32i>)>>, !s32i) -> !s32i
// CHECK: %0 = cir.call %arg0(%arg1) : (!cir.ptr<!cir.func<!s32i (!s32i)>>, !s32i) -> !s32i

0 comments on commit 12d3dac

Please sign in to comment.