Skip to content

Commit 445f05f

Browse files
committed
- requested fixes
1 parent f61df65 commit 445f05f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/test/CodeGen/AVR/issue-163015.ll

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
; RUN: llc < %s -mtriple=avr | FileCheck %s
22

3-
%Tstats = type <{ i8, i8 }>
43
@ui1 = protected local_unnamed_addr global i64 zeroinitializer, align 8
54
@ui2 = protected local_unnamed_addr global i64 zeroinitializer, align 8
65
@failed = private unnamed_addr addrspace(1) constant [12 x i8] c"test failed\00"
7-
@stats = external protected global %Tstats, align 1
6+
@stats2 = external protected global i16, align 1
87

98
; CHECK-LABEL: main:
10-
define protected noundef i32 @main(i32 %0, ptr nocapture readnone %1) addrspace(1) #0 {
9+
define i32 @main() addrspace(1) {
1110
entry:
1211
store i64 94, ptr @ui1, align 8
1312
store i64 53, ptr @ui2, align 8
14-
tail call addrspace(1) void @reportFailureWithDetails(i16 ptrtoint (ptr addrspace(1) @failed to i16), i16 11, i8 2, i16 32, ptr nocapture nonnull swiftself dereferenceable(2) @stats)
13+
tail call addrspace(1) void @foo(i16 ptrtoint (ptr addrspace(1) @failed to i16), i16 11, i8 2, i16 32, ptr @stats2)
1514
%11 = load i64, ptr @ui1, align 8
1615
%12 = load i64, ptr @ui2, align 8
1716

@@ -30,5 +29,4 @@ entry:
3029
}
3130

3231
declare protected void @expect(i64, i64, i16, i16, i8, i16) local_unnamed_addr addrspace(1) #0
33-
declare protected void @reportFailureWithDetails(i16, i16, i8, i16, ptr nocapture swiftself dereferenceable(2)) local_unnamed_addr addrspace(1) #0
34-
attributes #0 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
32+
declare protected void @foo(i16, i16, i8, i16, i16) local_unnamed_addr addrspace(1) #0

0 commit comments

Comments
 (0)