From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119993 invoked by alias); 24 Jun 2019 11:40:36 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 119982 invoked by uid 89); 24 Jun 2019 11:40:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=HTo:U*libc-help, knowing, HX-Languages-Length:934, H*c:alternative X-HELO: mail-vk1-f172.google.com Received: from mail-vk1-f172.google.com (HELO mail-vk1-f172.google.com) (209.85.221.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Jun 2019 11:40:35 +0000 Received: by mail-vk1-f172.google.com with SMTP id b200so470015vkf.10 for ; Mon, 24 Jun 2019 04:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Ld6Elx+xsbb2QHnkicWKRAlkKaXBaonkeO/Clc2yRzY=; b=l0a1ZH7CIRq2OZ3KQ6Ll1vJgQvpiOIdWLL8b8H+7E/3cjprvSKbmvybT39/Oioilzn vHxHM+C0tH5kzc1p+171cisIKHC/dyNvCa7UNRjtsnDXgLA8LmDNRISkGnho/DtuMagr 7OCEBBmdCWGjYuh0xG+Fryr0ZqiuKyGgeal973uKv5tPzq0hKwSbX4BE4PEdxCKvlliT n95PDnVDDB22RT54jFKTZ1zCJRBo4RM1Fq83KKprGuKC0Y9gkbay6bAbcDYYMDsvQGbY fJvV+IrSK2h3cZB5w/gGrjBPN8gf+pmhMgQB625ooN9KhqLXy1gBj+qBDDaHVtZvGICV Q6Mw== MIME-Version: 1.0 From: Faisal Riyaz Date: Mon, 24 Jun 2019 11:40:00 -0000 Message-ID: Subject: Need details about generating traps for floating point exceptions To: libc-help@sourceware.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-06/txt/msg00040.txt.bz2 Hi, I am interested in knowing more about how traps are generated when floating point exception occur. Currently, gcc for RISC-V(riscv64-unknown-elf-gcc (GCC) 8.2.0) does not generate traps on encountering floating point exceptions. I am going through glibc source code. I found .c files for functions defined in fenv.h to handle floating point exceptions but i am not able to figure out how trap is generated. Thanks Faisal