2018-12-10 00:24:05 +00:00
|
|
|
; ModuleID = 'i65.c'
|
|
|
|
source_filename = "i65.c"
|
2018-12-09 23:54:13 +00:00
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-pc-linux-gnu"
|
|
|
|
|
2018-12-10 00:33:34 +00:00
|
|
|
@.str = private unnamed_addr constant [24 x i8] c"(%lu + %lu) >> 1 = %lu\0A\00", align 1
|
2018-12-09 23:54:13 +00:00
|
|
|
|
|
|
|
; Function Attrs: noinline nounwind optnone sspstrong uwtable
|
|
|
|
define dso_local i32 @main(i32, i8**) #0 {
|
|
|
|
%3 = alloca i32, align 4
|
|
|
|
%4 = alloca i32, align 4
|
|
|
|
%5 = alloca i8**, align 8
|
2018-12-10 00:24:05 +00:00
|
|
|
%6 = alloca i65, align 8
|
|
|
|
%7 = alloca i65, align 8
|
|
|
|
%8 = alloca i65, align 8
|
2018-12-09 23:54:13 +00:00
|
|
|
store i32 0, i32* %3, align 4
|
|
|
|
store i32 %0, i32* %4, align 4
|
|
|
|
store i8** %1, i8*** %5, align 8
|
2018-12-10 00:33:34 +00:00
|
|
|
store i65 -9223372036854775808, i65* %6, align 8
|
|
|
|
store i65 -9223372036854775808, i65* %7, align 8
|
2018-12-10 00:24:05 +00:00
|
|
|
%9 = load i65, i65* %6, align 8
|
|
|
|
%10 = load i65, i65* %7, align 8
|
|
|
|
%11 = add i65 %9, %10
|
2018-12-10 00:33:34 +00:00
|
|
|
%12 = lshr i65 %11, 1
|
|
|
|
store i65 %12, i65* %8, align 8
|
|
|
|
%13 = load i65, i65* %6, align 8
|
|
|
|
%14 = load i65, i65* %7, align 8
|
|
|
|
%15 = load i65, i65* %8, align 8
|
2018-12-10 00:24:05 +00:00
|
|
|
%16 = trunc i65 %13 to i64
|
|
|
|
%17 = trunc i65 %14 to i64
|
2018-12-10 00:33:34 +00:00
|
|
|
%18 = trunc i65 %15 to i64
|
|
|
|
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i32 0, i32 0), i64 %16, i64 %17, i64 %18)
|
2018-12-09 23:54:13 +00:00
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @printf(i8*, ...) #1
|
|
|
|
|
|
|
|
attributes #0 = { noinline nounwind optnone sspstrong uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
|
|
|
attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
|
|
|
|
|
|
|
!llvm.module.flags = !{!0, !1, !2}
|
|
|
|
!llvm.ident = !{!3}
|
|
|
|
|
|
|
|
!0 = !{i32 1, !"wchar_size", i32 4}
|
|
|
|
!1 = !{i32 7, !"PIC Level", i32 2}
|
|
|
|
!2 = !{i32 7, !"PIE Level", i32 2}
|
|
|
|
!3 = !{!"clang version 7.0.0 (tags/RELEASE_700/final)"}
|