|
1 | 1 | ; RUN: llc < %s -mtriple=avr | FileCheck %s |
2 | 2 |
|
3 | | -%Tstats = type <{ i8, i8 }> |
4 | 3 | @ui1 = protected local_unnamed_addr global i64 zeroinitializer, align 8 |
5 | 4 | @ui2 = protected local_unnamed_addr global i64 zeroinitializer, align 8 |
6 | 5 | @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 |
8 | 7 |
|
9 | 8 | ; CHECK-LABEL: main: |
10 | | -define protected noundef i32 @main(i32 %0, ptr nocapture readnone %1) addrspace(1) #0 { |
| 9 | +define i32 @main() addrspace(1) { |
11 | 10 | entry: |
12 | 11 | store i64 94, ptr @ui1, align 8 |
13 | 12 | 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) |
15 | 14 | %11 = load i64, ptr @ui1, align 8 |
16 | 15 | %12 = load i64, ptr @ui2, align 8 |
17 | 16 |
|
|
30 | 29 | } |
31 | 30 |
|
32 | 31 | 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