[llvm-bugs] [Bug 47665] New: float128 argument not passed with va_arg
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 28 01:45:45 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47665
Bug ID: 47665
Summary: float128 argument not passed with va_arg
Product: clang
Version: 10.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: shibatch.sf.net at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
The following testcase shows 0 if compiled with -O1 option.
#include <stdio.h>
#include <stdarg.h>
void func(int n, ...) {
va_list ap;
va_start(ap, n);
__float128 q = va_arg(ap, __float128);
va_end(ap);
printf("%g\n", (double)q);
}
int main(void) {
__float128 q = 0.1Q;
func(0, q);
}
$ clang-10 -O1 vargf128.c
$ ./a.out
0
$ clang-10 -O0 vargf128.c
$ ./a.out
0.1
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200928/8e8a3c2b/attachment-0001.html>
More information about the llvm-bugs
mailing list