Skip to content

Commit e8107cd

Browse files
committed
Move test around
1 parent 17717c4 commit e8107cd

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

mlir/test/Target/LLVMIR/Import/call-argument-attributes.ll

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: mlir-translate -import-llvm %s | FileCheck %s
1+
; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s
22

33
; CHECK-LABEL: llvm.func @somefunc(i32, !llvm.ptr)
44
declare void @somefunc(i32, ptr)
@@ -20,3 +20,22 @@ define i16 @test_call_arg_attrs_indirect(i16 %0, ptr %1) {
2020
%3 = tail call signext i16 %1(i16 noundef signext %0)
2121
ret i16 %3
2222
}
23+
24+
; // -----
25+
26+
%struct.S = type { i8 }
27+
28+
; CHECK-LABEL: @t
29+
define void @t(i1 %0) #0 {
30+
%3 = alloca %struct.S, align 1
31+
; CHECK-NOT: llvm.call @z(%1) {no_unwind} : (!llvm.ptr) -> ()
32+
; CHECK: llvm.call @z(%1) : (!llvm.ptr) -> ()
33+
call void @z(ptr %3)
34+
ret void
35+
}
36+
37+
define linkonce_odr void @z(ptr %0) #0 {
38+
ret void
39+
}
40+
41+
attributes #0 = { nounwind }

mlir/test/Target/LLVMIR/Import/call-attributes.ll

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)