Last active
February 21, 2016 20:16
-
-
Save Amanieu/f87da5f0599b343c5500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float test() { | |
unsigned long a = 0xfffffffffffffffful; | |
unsigned __int128 b = ((unsigned __int128)a << 64) | a; | |
return (float)b; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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