Advertisement
Guest User

Untitled

a guest
Nov 25th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 1.80 KB | None | 0 0
  1. ; ModuleID = '/tmp/gcc-explorer-compiler1161025-73-1s0784r/example.cpp'
  2. source_filename = "/tmp/gcc-explorer-compiler1161025-73-1s0784r/example.cpp"
  3. target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
  4. target triple = "x86_64-unknown-linux-gnu"
  5.  
  6. ; Function Attrs: nounwind readonly uwtable
  7. define i32 @read32le(unsigned char const*)(i8* nocapture readonly) local_unnamed_addr #0 !dbg !75 {
  8.   tail call void @llvm.dbg.value(metadata i8* %0, i64 0, metadata !81, metadata !82), !dbg !83
  9.   %2 = load i8, i8* %0, align 1, !dbg !84, !tbaa !85
  10.   %3 = zext i8 %2 to i32, !dbg !84
  11.   %4 = getelementptr inbounds i8, i8* %0, i64 1, !dbg !88
  12.   %5 = load i8, i8* %4, align 1, !dbg !88, !tbaa !85
  13.   %6 = zext i8 %5 to i32, !dbg !88
  14.   %7 = shl nuw nsw i32 %6, 8, !dbg !89
  15.   %8 = or i32 %7, %3, !dbg !90
  16.   %9 = getelementptr inbounds i8, i8* %0, i64 2, !dbg !91
  17.   %10 = load i8, i8* %9, align 1, !dbg !91, !tbaa !85
  18.   %11 = zext i8 %10 to i32, !dbg !91
  19.   %12 = shl nuw nsw i32 %11, 16, !dbg !92
  20.   %13 = or i32 %8, %12, !dbg !93
  21.   %14 = getelementptr inbounds i8, i8* %0, i64 3, !dbg !94
  22.   %15 = load i8, i8* %14, align 1, !dbg !94, !tbaa !85
  23.   %16 = zext i8 %15 to i32, !dbg !94
  24.   %17 = shl nuw i32 %16, 24, !dbg !95
  25.   %18 = or i32 %13, %17, !dbg !96
  26.   ret i32 %18, !dbg !97
  27. }
  28.  
  29. ; Function Attrs: nounwind readnone
  30. declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #1
  31.  
  32. attributes #0 = { nounwind readonly uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-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" }
  33. attributes #1 = { nounwind readnone }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement