aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/floatop.zig
diff options
context:
space:
mode:
authorKoakuma <koachan@protonmail.com>2022-02-15 20:22:01 +0700
committerVeikka Tuominen <git@vexu.eu>2022-02-17 14:46:04 +0200
commit755d116ecf2d221e2ad8b572c58a7d4f99163ff9 (patch)
tree91cd4f2689e323750c0f539bfb60777afcd3e3c4 /test/behavior/floatop.zig
parent02902cc099d9736d589ac4f0e0ff671d7dfa9557 (diff)
downloadzig-755d116ecf2d221e2ad8b572c58a7d4f99163ff9.tar.gz
zig-755d116ecf2d221e2ad8b572c58a7d4f99163ff9.zip
stage1: use u16 for __truncxfhf2/__extendhfxf2 on non-Arm CPUs
Non-Arm CPUs use u16 as the parameter to __extendhfxf2 and the return value of __truncxfhf2, so insert appropriate bitcasts in gen_soft_f80_widen_or_shorten. Otherwise, LLVM might crash because the functions are called in a different way than its compiler-rt definition. This fixes stage1 build on SPARCv9, and possibly other non-x86, non-Arm CPUs.
Diffstat (limited to 'test/behavior/floatop.zig')
0 files changed, 0 insertions, 0 deletions