Arnaud A. de Grandmaison | 08f3240 | 2014-05-27 22:03:28 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -O3 -S | FileCheck %s |
Duncan P. N. Exon Smith | 13f5c58 | 2014-08-19 21:08:27 +0000 | [diff] [blame] | 2 | ; RUN: verify-uselistorder %s |
Tobias Grosser | 057beb8 | 2012-05-24 15:59:06 +0000 | [diff] [blame] | 3 | ; Testing half to float conversion. |
| 4 | |
| 5 | define float @abc() nounwind { |
| 6 | entry: |
| 7 | %a = alloca half, align 2 |
| 8 | %.compoundliteral = alloca float, align 4 |
| 9 | store half 0xH4C8D, half* %a, align 2 |
David Blaikie | 7c9c6ed | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 10 | %tmp = load half, half* %a, align 2 |
Tobias Grosser | 057beb8 | 2012-05-24 15:59:06 +0000 | [diff] [blame] | 11 | %conv = fpext half %tmp to float |
| 12 | ; CHECK: 0x4032340000000000 |
| 13 | ret float %conv |
| 14 | } |