Commit 0a3861b
committed
configury: enhance short float detection with clang
With clang, short float support requires --rtlib=compiler-rt
to be passed to the linker. In order to avoid a false positive,
it is necessary have the runtime called in the test program.
The test program was hence updated with the function
below that generates a call to the __extendhfsf2() runtime function.
float extend (_Float16 v) {
return (float)v;
}
Thanks Blaise Bourdin for reporting this.
Refs: #13181
Signed-off-by: Gilles Gouaillardet <[email protected]>1 parent 32bfff1 commit 0a3861b
File tree
2 files changed
+13
-5
lines changed- config
- ompi/mpiext/shortfloat
2 files changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
54 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
0 commit comments