Test itanium mangling of f16 and f128 - #162151
Conversation
|
|
|
@rcvalle feel free to approve this too if it looks good to you |
| FloatTy::F128 => match tcx.sess.target.arch { | ||
| Arch::PowerPC | Arch::PowerPC64 => "u9__ieee128", // "g" is used for __ibm128 | ||
| _ => "g", | ||
| }, |
There was a problem hiding this comment.
Later in this file is
rust/compiler/rustc_sanitizers/src/cfi/typeid/itanium_cxx_abi/encode.rs
Lines 555 to 558 in a433023
There was a problem hiding this comment.
Since this is minicore now, could it get a ppc test?
There was a problem hiding this comment.
No, because CFI is not supported on powerpc64.
There was a problem hiding this comment.
Ah, missed that in the description. Guess the addition is dead code then, but doesn't hurt to fix if it winds up reused elsewhere.
because "g" is used for __ibm128, __float128 gets a custom name
f1d36bd to
1bd13e5
Compare
There was a problem hiding this comment.
Ah, missed that in the description. Guess the addition is dead code then, but doesn't hurt to fix if it winds up reused elsewhere.
|
@bors r=tgross35 |
And fix the string that is used for
f128on powerpc targets, where the standard"g"is already taken by__ibm128.In clang
https://github.com/llvm/llvm-project/blob/bd5b1f58ae58cceab2cadb882cceb1d96f4ad33e/clang/lib/Basic/Targets/PPC.h#L362-L363
and GCC
https://github.com/gcc-mirror/gcc/blob/fc54ab94ad257f9ef43a7287a60c21734a7a288f/gcc/config/rs6000/rs6000.cc#L20795-L20801
From what i can tell this is not really testable for powerpc at the moment because CFI is not supported on powerpc.
r? tgross35