Skip to content

Commit 502e060

Browse files
author
bjjwwang
committed
add test2
1 parent e367768 commit 502e060

File tree

1 file changed

+37
-0
lines changed
  • Assignment-4/Tests/testcases/sse

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
; ModuleID = 'test2.ll'
2+
source_filename = "test2.c"
3+
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
4+
target triple = "aarch64-unknown-linux-gnu"
5+
6+
; Function Attrs: noinline nounwind uwtable
7+
define dso_local i32 @main() #0 {
8+
entry:
9+
%div = sdiv i32 10, 5
10+
%rem = srem i32 10, 5
11+
%cmp = icmp eq i32 %div, 2
12+
br i1 %cmp, label %land.rhs, label %land.end
13+
14+
land.rhs: ; preds = %entry
15+
%cmp1 = icmp eq i32 %rem, 0
16+
br label %land.end
17+
18+
land.end: ; preds = %land.rhs, %entry
19+
%0 = phi i1 [ false, %entry ], [ %cmp1, %land.rhs ]
20+
call void @svf_assert(i1 noundef %0)
21+
ret i32 0
22+
}
23+
24+
declare void @svf_assert(i1 noundef) #1
25+
26+
attributes #0 = { noinline nounwind uwtable "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+fp-armv8,+neon,+outline-atomics,+v8a,-fmv" }
27+
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+fp-armv8,+neon,+outline-atomics,+v8a,-fmv" }
28+
29+
!llvm.module.flags = !{!0, !1, !2, !3, !4}
30+
!llvm.ident = !{!5}
31+
32+
!0 = !{i32 1, !"wchar_size", i32 4}
33+
!1 = !{i32 8, !"PIC Level", i32 2}
34+
!2 = !{i32 7, !"PIE Level", i32 2}
35+
!3 = !{i32 7, !"uwtable", i32 2}
36+
!4 = !{i32 7, !"frame-pointer", i32 1}
37+
!5 = !{!"clang version 16.0.4 (https://github.com/bjjwwang/LLVM-compile aed81d25b4818ed2645b53ffaed7664c1437b458)"}

0 commit comments

Comments
 (0)