[Builtins] Implement f2h/h2f by jumping to trunc/extend.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 14 May 2015 00:50:28 +0000 (00:50 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 14 May 2015 00:50:28 +0000 (00:50 +0000)
commit9a43d5be2f37c728d67dda5cb65ae3edda7a20e0
tree39ce83c3f05a996d4945e9b09f04e8e40b272526
parentb2d643146fd7c8540e907ceb38d799a060de87fa
[Builtins] Implement f2h/h2f by jumping to trunc/extend.

Follow-up to r237161; seems like we can't use aliases, but we
can do better than duplicating the bodies, especially when that
body, after inlining, isn't as small as it looks.

Better approaches welcome.  Perhaps the best thing is just to have
an #ifndef __APPLE__ over the GNUEABI names, since they're not used
there.

llvm-svn: 237323
compiler-rt/lib/builtins/extendhfsf2.c
compiler-rt/lib/builtins/truncsfhf2.c