I can't seem to get messages to the forum. Here's a problem in J806 a=:'abcdefghijklmnopqrstuvwxyz' A=:'ABCDEFGHIJKLMNOPQRSTUVWXYZ' aA=:a,:A c=:'Pear Kiwi ' d=:'Peach Fig ' fruits=:>;:c,d fruits /: <./aA i."1 2 fruits Fig Kiwi Peach Pear alpha=: 13 :'y/:<./x i."1 2 y' aA alpha fruits Fig Kiwi Peach Pear alpha ] /: [: <./ i."1 2 alpha1=: 3 :'y /: <./x i."1 _ y' aA alpha1 fruits |domain error: alpha1 | aA alpha1 fruits |[-19] c:\users\linda\j64-806-user\temp\32.ijs
Linda -----Original Message----- From: Programming <[email protected]> On Behalf Of Henry Rich Sent: Monday, August 6, 2018 11:01 PM To: [email protected] Subject: Re: [Jprogramming] g420fg NaN error Thanks. I guess we have to figure out how to convince clang to create the right code then, eh? Henry Rich On 8/6/2018 10:59 PM, Bill Heagy wrote: > And yes, both parts fail (assuming you're talking about the failing > line in g420fg) > > On 2018-08-06 10:50 PM, Bill Heagy wrote: >> clang with -O0 fixes it too. >> >> On 2018-08-06 10:44 PM, Bill Heagy wrote: >>> Building with gcc works ok. I'll try clang/-O0 >>> >>> On 2018-08-06 10:01 PM, bill lam wrote: >>>> Just a guess, recently we switched from gcc to clang. clang is too >>>> smart in optimization that it short circuit some code that deals >>>> with NaN, I've put some inline asm to teach clang register flags >>>> need checking. This works in the past. >>>> >>>> Can you try build and test with -O0 or with gcc? >>>> >>>> On Tue, Aug 7, 2018, 9:48 AM Henry Rich <[email protected]> wrote: >>>> >>>>> This baffles me. I wonder if there is some compiler interaction >>>>> with _clearfp(). In case so, I have pushed out another change >>>>> that puts a couple of memory fetches between the clearfp()s. Would >>>>> you please build that & report back? If it fails on the same >>>>> line, please try the two parts individually & see if they both >>>>> fail. >>>>> >>>>> Henry Rich >>>>> >>>>> >>>>> On 8/6/2018 6:13 PM, Bill Heagy wrote: >>>>>> 32-bit again? >>>>>> >>>>>> ...... >>>>>> 1 >>>>>> 'domain error' -: +/@:*"1~ etx u: 'abc' >>>>>> 1 >>>>>> >>>>>> NB. Test for NaN >>>>>> 0 _ 1 (+/@:*"1 -: +/@:*"_"1) _ 0 2 NB. removable NaN >>>>>> |NaN error >>>>>> | 0 _ 1 (+/@:*"1-:+/@:*"_"1)_ 0 2 [-189] >>>>>> |/home/wheagy/git/jsource/test/g420fg.ijs >>>>>> >>>>>> >>>>>> JVERSION >>>>>> Engine: j806/j32/linux >>>>>> Beta: GPL3/2018-08-06T17:48:48 >>>>>> Library: 8.05.14 >>>>>> Platform: Linux 32 >>>>>> Installer: unknown >>>>>> InstallPath: /home/wheagy/tmp/jbld/j32 >>>>>> Contact: [email protected] >>>>>> ----------------------------------------------------------------- >>>>>> ----- >>>>>> >>>>>> For information about J forums see >>>>>> https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2F >>>>>> www.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7Cfb5e1b8d7389 >>>>>> 4302518708d5fc1213e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7 >>>>>> C636692076924154782&sdata=8ng0NsK6fDHNyHxFHDGodInyA06LwkK2E7P >>>>>> ONZ8VIxQ%3D&reserved=0 >>>>> >>>>> >>>>> --- >>>>> This email has been checked for viruses by AVG. >>>>> https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2F >>>>> www.avg.com&data=02%7C01%7C%7Cfb5e1b8d73894302518708d5fc1213e5 >>>>> %7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636692076924154782&a >>>>> mp;sdata=ykorUuO91wyYG%2BX16TPgEW3v0KmVfEyqolqRELw5ZuQ%3D&rese >>>>> rved=0 >>>>> >>>>> ------------------------------------------------------------------ >>>>> ---- >>>>> >>>>> For information about J forums see >>>>> https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fw >>>>> ww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7Cfb5e1b8d738943 >>>>> 02518708d5fc1213e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C63 >>>>> 6692076924154782&sdata=8ng0NsK6fDHNyHxFHDGodInyA06LwkK2E7PONZ8 >>>>> VIxQ%3D&reserved=0 >>>> ------------------------------------------------------------------- >>>> --- For information about J forums see >>>> https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww >>>> w.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7Cfb5e1b8d73894302 >>>> 518708d5fc1213e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C63669 >>>> 2076924154782&sdata=8ng0NsK6fDHNyHxFHDGodInyA06LwkK2E7PONZ8VIxQ >>>> %3D&reserved=0 >>>> >>> -------------------------------------------------------------------- >>> -- For information about J forums see >>> https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww >>> .jsoftware.com%2Fforums.htm&data=02%7C01%7C%7Cfb5e1b8d7389430251 >>> 8708d5fc1213e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C63669207 >>> 6924154782&sdata=8ng0NsK6fDHNyHxFHDGodInyA06LwkK2E7PONZ8VIxQ%3D& >>> amp;reserved=0 >> --------------------------------------------------------------------- >> - For information about J forums see >> https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww. >> jsoftware.com%2Fforums.htm&data=02%7C01%7C%7Cfb5e1b8d738943025187 >> 08d5fc1213e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C63669207692 >> 4154782&sdata=8ng0NsK6fDHNyHxFHDGodInyA06LwkK2E7PONZ8VIxQ%3D& >> reserved=0 > ---------------------------------------------------------------------- > For information about J forums see > https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.j > software.com%2Fforums.htm&data=02%7C01%7C%7Cfb5e1b8d73894302518708 > d5fc1213e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C63669207692415 > 4782&sdata=8ng0NsK6fDHNyHxFHDGodInyA06LwkK2E7PONZ8VIxQ%3D&rese > rved=0 ---------------------------------------------------------------------- For information about J forums see https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7Cfb5e1b8d73894302518708d5fc1213e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636692076924154782&sdata=8ng0NsK6fDHNyHxFHDGodInyA06LwkK2E7PONZ8VIxQ%3D&reserved=0 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
