[llvm-bugs] [Bug 47199] New: Using -ftrapv-handler with __int128 arithmetic generates broken IR
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Aug 16 23:31:33 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47199
Bug ID: 47199
Summary: Using -ftrapv-handler with __int128 arithmetic
generates broken IR
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: craig.topper at gmail.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Using -ftrapv-handler with __int128 arithmetic causes clang to emit a sext i128
to i64. For example this
__int128 foo(__int128 x) {
return -x;
}
https://godbolt.org/z/5EPK5d
--
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/20200817/d0ade0f7/attachment-0001.html>
More information about the llvm-bugs
mailing list