Skip to content

Instantly share code, notes, and snippets.

@Amanieu
Last active February 21, 2016 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Amanieu/f87da5f0599b343c5500 to your computer and use it in GitHub Desktop.
Save Amanieu/f87da5f0599b343c5500 to your computer and use it in GitHub Desktop.
float test() {
unsigned long a = 0xfffffffffffffffful;
unsigned __int128 b = ((unsigned __int128)a << 64) | a;
return (float)b;
}
; ModuleID = 'test.c'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind readnone uwtable
define float @test() #0 {
ret float undef
}
attributes #0 = { nounwind readnone uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
!llvm.ident = !{!0}
!0 = !{!"clang version 3.7.1 (tags/RELEASE_371/final)"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment